(Resent in reply to the v7 review; I answered the v6 mail by mistake.) > - [Medium] This is a hardware-dependent DMA bound.
Tested on an I350 (7.3.1), with one VF on the same host in another network namespace at MTU 9000, sending to the PF: - PF at MTU 1500 with an XDP program attached, so the PF pool limit is 1526 (global RLPML 9728 with VFs), with Rx timestamping off and on: frames of up to 1526 bytes without FCS reach the PF, frames of 1527 bytes and more do not. The MAC compares the frame without FCS with VMOLR.RLPML, so it writes at most the maximum frame size plus the 16-byte header, which is what igb_xsk_frame_fits() checks against the XSK frame. - The same with xdpsock in zero-copy mode with 2 KiB chunks on PF queue 0: 1500-byte pings from the VF arrive on queue 0; 1600, 3000 and 8000 byte pings add nothing there but the background traffic. - A 3000-byte broadcast or IPv6 multicast from the VF does not reach the PF either; 500-byte ones do. - With the PF at MTU 9000 (pool limit 9728) and no XDP, pings of 1600 to 8000 bytes from the VF are answered, and the same 3000-byte frames sent to a MAC address on the wire do leave the VF. So on the I350 the internal switch applies the PF pool's VMOLR.RLPML to VF-to-PF loopback and to replication as well, at the exact limit. The VF's own SET_LPE limit is written to the VF's pool only. The 2 KiB build_skb rings already depend on this limit: with VFs the global RLPML is 9728, and only the PF pool limit keeps a frame inside the half page, also for frames from a VF. This patch makes XSK rings depend on it in the same way. I have no 82576 to test this on.
