]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_net: Factor out the logic to determine xdp sq
authorToshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Mon, 23 Jul 2018 14:36:07 +0000 (23:36 +0900)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Jul 2018 19:53:37 +0000 (12:53 -0700)
commit472c6eabf07921da89e96f1e6fd9bc98b627e7ac
treeb72459fa91fee9d6848186b22c3ae5a964cf9746
parentfd64c0f25799b8b27a19329b0dd2f86accfbfccc
virtio_net: Factor out the logic to determine xdp sq

Make sure to use the same logic in all places to determine xdp sq. This
is useful for xdp counters which the following commit will introduce as
well.

Signed-off-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c