svn commit: r318331 - stable/11/sys/net
Alexander Motin
mav at FreeBSD.org
Tue May 16 00:34:54 UTC 2017
Author: mav
Date: Tue May 16 00:34:53 2017
New Revision: 318331
URL: https://svnweb.freebsd.org/changeset/base/318331
Log:
MFC r317585: Propagate IFCAP_LRO from trunk to vlan interface.
False positive here cost nothing, while false negative may lead to some
confusions.
Modified:
stable/11/sys/net/if_vlan.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/net/if_vlan.c
==============================================================================
--- stable/11/sys/net/if_vlan.c Tue May 16 00:33:46 2017 (r318330)
+++ stable/11/sys/net/if_vlan.c Tue May 16 00:34:53 2017 (r318331)
@@ -1583,6 +1583,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-stable-11
mailing list