summaryrefslogtreecommitdiff
path: root/include/net/xdp.h
diff options
context:
space:
mode:
authorJesper Dangaard Brouer <brouer@redhat.com>2018-04-17 17:45:52 +0300
committerDavid S. Miller <davem@davemloft.net>2018-04-17 17:50:28 +0300
commitcac320c850efb25480cd0f71383b84ec61c0e138 (patch)
treedac73f69c98d6c8e086f023022ceac112377fcab /include/net/xdp.h
parent1ffcbc8537d0bc32aaca7000cb9c904ec4b6300f (diff)
downloadlinux-cac320c850efb25480cd0f71383b84ec61c0e138.tar.xz
virtio_net: convert to use generic xdp_frame and xdp_return_frame API
The virtio_net driver assumes XDP frames are always released based on page refcnt (via put_page). Thus, is only queues the XDP data pointer address and uses virt_to_head_page() to retrieve struct page. Use the XDP return API to get away from such assumptions. Instead queue an xdp_frame, which allow us to use the xdp_return_frame API, when releasing the frame. V8: Avoid endianness issues (found by kbuild test robot) V9: Change __virtnet_xdp_xmit from bool to int return value (found by Dan Carpenter) Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/xdp.h')
0 files changed, 0 insertions, 0 deletions