On Wed, 11 Nov 2026 00:30:01 +0900 Haishuang Yan wrote:
With an XDP program attached, virtnet_xdp_set() adds nr_cpu_ids queue
pairs for XDP_TX and raises curr_queue_pairs and real_num_rx_queues to
match. virtnet_xsk_pool_enable() accepts any queue below
curr_queue_pairs, so an AF_XDP zero-copy socket can be bound to one of
them.
Alright. I still think that auto-changing real_num_rx_queues
to use Rx queues from queue pairs allocated for XDP Tx is fruitcake
behavior. But the bandaid is simple enough so whatever.