diff options
| author | Anton Protopopov <a.s.protopopov@gmail.com> | 2026-08-10 12:07:25 +0000 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-08-17 14:20:34 -0700 |
| commit | d09c98a6da215bce2173a292e4b95c8de6ea5d51 (patch) | |
| tree | 2bba389009c2706efcaf8ec08a38a253942165b9 /tools/perf/scripts/python | |
| parent | 7f16289b91eb316f170a6bd22d32e6c632f6a5b6 (diff) | |
virtio_net: Fix resize of the RX ring
When a AF_XDP socket is attached, the virtnet_rx_resize
should resize the rq->xsk_buffs XSK buffer array. Otherwise,
when the size grows, the virtnet_rx_resume() causes a write
past the end of the array. This is easily reproducable with
ethtool -G ens3 rx 32
./xdpsock -i eth0 -q 0 -r -z &
ethtool -G eth0 rx 256
Fixes: e9f3962441c0 ("virtio_net: xsk: rx: support fill with xsk buffer")
Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com>
Link: https://patch.msgid.link/20260810120728.47445-1-a.s.protopopov@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
