aboutsummaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorRick Macklem <rmacklem@FreeBSD.org>2014-04-15 21:48:35 +0000
committerRick Macklem <rmacklem@FreeBSD.org>2014-04-15 21:48:35 +0000
commitbd9fd667c40125890c225d47386dd56b566f828c (patch)
tree980d728965057747b656d4b5712625e11971ad7b /sys/net
parent380174cbe4bd906d3e39a0ab7350142224d474ef (diff)
downloadsrc-bd9fd667c40125890c225d47386dd56b566f828c.tar.gz
src-bd9fd667c40125890c225d47386dd56b566f828c.zip
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. Reviewed by: glebius MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=264517
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_vlan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c
index 75699fb8ff25..00d99ed777bf 100644
--- a/sys/net/if_vlan.c
+++ b/sys/net/if_vlan.c
@@ -1511,6 +1511,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) {