]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
virtio-net: add missing virtqueue kick when flushing packets
authorJason Wang <jasowang@redhat.com>
Fri, 13 Apr 2018 06:58:25 +0000 (14:58 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Tue, 12 Jun 2018 06:28:55 +0000 (02:28 -0400)
commit3c93c06c0c19eff40f4d5f99c3a2b371bf110dba
tree4521c88b36c134f5fab8d4b93f504e4f41c339bc
parentb5b2fbf86d992eb129229c63138debf10e70100d
virtio-net: add missing virtqueue kick when flushing packets

BugLink: http://bugs.launchpad.net/bugs/1775483
[ Upstream commit 9267c430c6b6f4c0120e3c6bb847313d633f02a6 ]

We tends to batch submitting packets during XDP_TX. This requires to
kick virtqueue after a batch, we tried to do it through
xdp_do_flush_map() which only makes sense for devmap not XDP_TX. So
explicitly kick the virtqueue in this case.

Reported-by: Kimitoshi Takahashi <ktaka@nii.ac.jp>
Tested-by: Kimitoshi Takahashi <ktaka@nii.ac.jp>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Fixes: 186b3c998c50 ("virtio-net: support XDP_REDIRECT")
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/virtio_net.c