git: if_vtnet - Handle missing IFCAP_VLAN_* flags nicer. Comment IFCAP_LOR stuff.
Imre Vadasz
ivadasz at crater.dragonflybsd.org
Tue Oct 17 15:42:00 PDT 2017
commit d07f5241eb2c4ceea221840fae247bb2e2a47f5e
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/d07f5241eb2c4ceea221840fae247bb2e2a47f5e
--
DragonFly BSD source repository
More information about the Commits
mailing list