diff options
author | Xuan Zhuo <xuanzhuo@linux.alibaba.com> | 2021-03-10 05:24:45 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-10 23:45:14 +0300 |
commit | 97c2c69e1926260c78c7f1c0b2c987934f1dc7a1 (patch) | |
tree | a74a737cc75efcf3a1a7c7b21df03caf79d954e6 /drivers/isdn/mISDN | |
parent | 0bb3262c0248d44aea3be31076f44beb82a7b120 (diff) | |
download | linux-97c2c69e1926260c78c7f1c0b2c987934f1dc7a1.tar.xz |
virtio-net: support XDP when not more queues
The number of queues implemented by many virtio backends is limited,
especially some machines have a large number of CPUs. In this case, it
is often impossible to allocate a separate queue for
XDP_TX/XDP_REDIRECT, then xdp cannot be loaded to work, even xdp does
not use the XDP_TX/XDP_REDIRECT.
This patch allows XDP_TX/XDP_REDIRECT to run by reuse the existing SQ
with __netif_tx_lock() hold when there are not enough queues.
Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Reviewed-by: Dust Li <dust.li@linux.alibaba.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/mISDN')
0 files changed, 0 insertions, 0 deletions