]> 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)
commit869166681dd5c69c2ec333588b14a2dfc677d829
treeb72459fa91fee9d6848186b22c3ae5a964cf9746
parentb65797db4f8c111c765a97f71654574b5fa4accb
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