]> www.infradead.org Git - users/dwmw2/linux.git/commit
virtio_net: rx remove premapped failover code
authorXuan Zhuo <xuanzhuo@linux.alibaba.com>
Tue, 29 Oct 2024 08:46:15 +0000 (16:46 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 5 Nov 2024 10:37:41 +0000 (11:37 +0100)
commitfb22437c1ba37fc54eff949023923cc7887aaaa1
tree389285cd3cc9a60bd5ca3034f7186c36e2c2fea8
parent47008bb51c3e11c187dacc17af334bdca97c2dca
virtio_net: rx remove premapped failover code

Now, the premapped mode can be enabled unconditionally.

So we can remove the failover code for merge and small mode.

The virtnet_rq_xxx() helper would be only used if the mode is using pre
mapping. A check is added to prevent misusing of these API.

Tested-by: Darren Kenny <darren.kenny@oracle.com>
Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/virtio_net.c