On Tue, 10 Jun 2025 22:18:32 +0700 Bui Quang Minh wrote:
Okay, I meant the copies in the driver - virtio callsYes, I mean generic XDP = do_xdp_generic(). I mean that we can linearizeFurthermore, we are in the zerocopy so we cannot linearize byGeneric XDP == do_xdp_generic(), here I think you mean the normal XDP
allocating a large enough buffer to cover the whole frame then copy the
frame data to it. That's not zerocopy anymore. Also, XDP socket zerocopy
receive has assumption that the packet it receives must from the umem
pool. AFAIK, the generic XDP path is for copy mode only.
patch in the virtio driver? If so then no, XDP is very much not
expected to copy each frame before processing.
the frame if needed (like in netif_skb_check_for_xdp()) in copy mode for
XDP socket but not in zerocopy mode.
xdp_linearize_page() in a few places, for normal XDP.
The "metal" in the name refers to the AWS instance type that hostsThis is only slightly related to you patch but while we talk aboutmetal-drv-hw means the NETIF is the real NIC, right?
multi-buf - in the netdev CI the test which sends ping while XDP
multi-buf program is attached is really flaky :(
https://netdev.bots.linux.dev/contest.html?executor=vmksft-drv-hw&test=ping-py.ping-test-xdp-native-mb&ld-cases=1
the runner. The test runs in a VM over virtio, more details:
https://github.com/linux-netdev/nipa/wiki/Running-driver-tests-on-virtio