From a54326376af297e38afd4198c82690c12c6bd2a8 Mon Sep 17 00:00:00 2001 From: rmacklem Date: Tue, 6 May 2014 02:49:31 +0000 Subject: 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. --- sys/net/if_vlan.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/net') diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index b7f1197..e9216db 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -1509,6 +1509,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) { -- cgit v1.1