diff options
author | Jason Wang <jasowang@redhat.com> | 2018-04-13 09:58:25 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-13 18:26:40 +0300 |
commit | 9267c430c6b6f4c0120e3c6bb847313d633f02a6 (patch) | |
tree | 2626b951ac295e8dbf8f156fbc2d63fd281514d9 /drivers/net/xen-netback | |
parent | 2290482379278e0254e6edfdb681d88359143fd1 (diff) | |
download | linux-9267c430c6b6f4c0120e3c6bb847313d633f02a6.tar.xz |
virtio-net: add missing virtqueue kick when flushing packets
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>
Diffstat (limited to 'drivers/net/xen-netback')
0 files changed, 0 insertions, 0 deletions