svn commit: r265291 - stable/9/sys/net
Rick Macklem
rmacklem at FreeBSD.org
Sat May 3 23:42:01 UTC 2014
Author: rmacklem
Date: Sat May 3 23:42:00 2014
New Revision: 265291
URL: http://svnweb.freebsd.org/changeset/base/265291
Log:
MFC: r264517
Vlan did not set the value of if_hw_tsomax, so when vlan
was stacked on top of a network interface that set if_hw_tsomax,
tcp_output() would see the default value instead of the value
set by the network interface. This patch modifies vlan so that
it sets if_hw_tsomax to the value of the parent interface.
Modified:
stable/9/sys/net/if_vlan.c
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/net/ (props changed)
Modified: stable/9/sys/net/if_vlan.c
==============================================================================
--- stable/9/sys/net/if_vlan.c Sat May 3 22:27:24 2014 (r265290)
+++ stable/9/sys/net/if_vlan.c Sat May 3 23:42:00 2014 (r265291)
@@ -1501,6 +1501,8 @@ vlan_capabilities(struct ifvlan *ifv)
* propagate the hardware-assisted flag. TSO on VLANs
* does not necessarily require hardware VLAN tagging.
*/
+ if (p->if_hw_tsomax > 0)
+ ifp->if_hw_tsomax = p->if_hw_tsomax;
if (p->if_capabilities & IFCAP_VLAN_HWTSO)
ifp->if_capabilities |= p->if_capabilities & IFCAP_TSO;
if (p->if_capenable & IFCAP_VLAN_HWTSO) {
More information about the svn-src-stable-9
mailing list