mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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.
This commit is contained in:
parent
90c4a1e4c0
commit
59150e9141
1 changed files with 10 additions and 0 deletions
|
|
@ -1590,6 +1590,16 @@ vlan_capabilities(struct ifvlan *ifv)
|
|||
hwa |= p->if_hwassist & CSUM_TSO;
|
||||
}
|
||||
|
||||
/*
|
||||
* 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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue