On 2021/03/04 0:29, Maciej Fijalkowski wrote:
Currently, veth_xmit() would call the skb_record_rx_queue() only when
there is XDP program loaded on peer interface in native mode.
If peer has XDP prog in generic mode, then netif_receive_generic_xdp()
has a call to netif_get_rxqueue(skb), so for multi-queue veth it will
not be possible to grab a correct rxq.
To fix that, store queue_mapping independently of XDP prog presence on
peer interface.
Fixes: 638264dc9022 ("veth: Support per queue XDP ring")
Signed-off-by: Maciej Fijalkowski <maciej.fijalkow...@intel.com>
I did like this in order to keep the default behavior for non-xdp case,
but generic XDP should behave the same as native XDP, so
Acked-by: Toshiaki Makita <toshiaki.maki...@gmail.com>