Fix bogus packet length calculation in the RX/LRO path, which can lead to
authormglocker <mglocker@openbsd.org>
Thu, 15 Feb 2024 10:56:53 +0000 (10:56 +0000)
committermglocker <mglocker@openbsd.org>
Thu, 15 Feb 2024 10:56:53 +0000 (10:56 +0000)
commitf9a50133950223365bb0571109ed6af39253da36
tree69de839a6610ba0fa48ed9784299f650009ca308
parent2bd5848b8d4f33f9030f5b12ef0f4d3bc548eefd
Fix bogus packet length calculation in the RX/LRO path, which can lead to
TSO tagging forwarded packets which shouldn't.  This will also fix the em(4)
watchdog timeouts seen after the em(4) TSO commit.

Thanks to Hrvoje Popovski for providing the infrastructure the reproduce
the issue, and test the fix.

Discussed with bluhm@.  OK claudio@
sys/dev/pci/if_ix.c