]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
vhost_net: use XDP helpers
authorMatteo Croce <mcroce@microsoft.com>
Fri, 14 May 2021 18:39:54 +0000 (20:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 May 2021 22:20:10 +0000 (15:20 -0700)
commit224bf7db5518d804932c0c78b1206ebb21f43d6a
tree328d2f0ad4d1a349cb9b9bd672a0ef9040a49292
parent082294f294f6de4b50be0af354adb83e45816db4
vhost_net: use XDP helpers

Make use of the xdp_{init,prepare}_buff() helpers instead of
an open-coded version.

Also, the field xdp->rxq was never set, so pass NULL to xdp_init_buff()
to clear it.

Signed-off-by: Matteo Croce <mcroce@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/net.c