[Bug 273046] xn: xen netfront does LRO even if packet forwarding is enabled

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 12 Aug 2023 11:57:01 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273046

--- Comment #1 from dfr@rabson.org ---
I tried to fix this today by adding logic to stop requesting LRO from the
backend when forwarding is enabled. Unfortunately, the code which sets up
features for the backend runs long before the value of net.inet.ip.forwarding
is set (via sysctl.conf in my test). If LRO is disabled manually, the driver
re-initialises the backend state.

There seems to be no way for the driver to detect changes to the forwarding
state. The linux kernel seems to actively disable LRO on all devices when
forwarding is enabled.

Also, we have confirmed that a similar issue of slow network throughput for vmm
jails affects the vtnet driver for VMs running as guests on Proxmox hosts which
can also be mitigated by disabling LRO. Perhaps a better assignee for this
should be freebsd-net?

-- 
You are receiving this mail because:
You are the assignee for the bug.