svn commit: r317585 - head/sys/net
Alexander Motin
mav at FreeBSD.org
Sat Apr 29 08:29:01 UTC 2017
Author: mav
Date: Sat Apr 29 08:28:59 2017
New Revision: 317585
URL: https://svnweb.freebsd.org/changeset/base/317585
Log:
Propagate IFCAP_LRO from trunk to vlan interface.
False positive here cost nothing, while false negative may lead to some
confusions.
MFC after: 2 weeks
Sponsored by: iXsystems, Inc.
Modified:
head/sys/net/if_vlan.c
Modified: head/sys/net/if_vlan.c
==============================================================================
--- head/sys/net/if_vlan.c Sat Apr 29 07:59:09 2017 (r317584)
+++ head/sys/net/if_vlan.c Sat Apr 29 08:28:59 2017 (r317585)
@@ -1591,6 +1591,16 @@ vlan_capabilities(struct ifvlan *ifv)
}
/*
+ * If the parent interface can do LRO and checksum offloading on
+ * VLANs, then guess it may do LRO on VLANs. False positive here
+ * cost nothing, while false negative may lead to some confusions.
+ */
+ if (p->if_capabilities & IFCAP_VLAN_HWCSUM)
+ cap |= p->if_capabilities & IFCAP_LRO;
+ if (p->if_capenable & IFCAP_VLAN_HWCSUM)
+ ena |= p->if_capenable & IFCAP_LRO;
+
+ /*
* If the parent interface can offload TCP connections over VLANs then
* propagate its TOE capability to the VLAN interface.
*
More information about the svn-src-all
mailing list