git: DragonFly_RELEASE_5_0 if_vtnet - Handle missing IFCAP_VLAN_* flags nicer. Comment IFCAP_LOR stuff.

Imre Vadasz ivadasz at crater.dragonflybsd.org
Sun Oct 22 02:24:25 PDT 2017


commit d2565295f6d8d86a3b9e236a3a650a2b77ef0c15
Author: Imre Vadász <imre at vdsz.com>
Date:   Tue Oct 17 22:06:23 2017 +0200

    if_vtnet - Handle missing IFCAP_VLAN_* flags nicer. Comment IFCAP_LOR stuff.
    
    * The if_vtnet driver used to define the IFCAP_LRO, IFCAP_VLAN_HWFILTER and
      IFCAP_VLAN_HWTSO flags itself, to make the code from FreeBSD build.
      Instead define IFCAP_VLAN_HWFILTER and IFCAP_VLAN_HWTSO to 0, when they
      are not defined already. This allows the code to build, but all checks
      for the flags fail. (Inspired by the vmxnet3 driver port).
    
    * The IFCAP_LRO flag is unavailable in DragonFly, but the LRO offload seems
      to work somehow.
    
    * According to the virtio specification, LRO support should be possible
      without rx checksum support as well.

Summary of changes:
 sys/dev/virtual/virtio/net/if_vtnet.c    | 26 +++++++++++++++-----------
 sys/dev/virtual/virtio/net/if_vtnetvar.h | 13 +++++++++++++
 2 files changed, 28 insertions(+), 11 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d2565295f6d8d86a3b9e236a3a650a2b77ef0c15


-- 
DragonFly BSD source repository


More information about the Commits mailing list