]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
if_vlan: do not enable LRO for bridge interaces
authorPaul Vixie <paul@redbarn.org>
Fri, 11 Aug 2023 18:17:16 +0000 (20:17 +0200)
committerKristof Provost <kp@FreeBSD.org>
Fri, 11 Aug 2023 22:50:37 +0000 (00:50 +0200)
commit5f11a33ceeb385477cb22d9ad5941061c5a26be9
tree9ffccca9273dbf822f9bcd91833ba905070335ac
parent765ad5b28d3fa272208aedc3047a6a3dff561037
if_vlan: do not enable LRO for bridge interaces

If the parent interface is not a bridge and 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. According to Wikipedia:

"LRO should not operate on machines acting as routers, as it breaks
the end-to-end principle and can significantly impact performance."

The same reasoning applies to machines acting as bridges.

PR: 254596
MFC after: 3 weeks
sys/net/if_vlan.c