summaryrefslogtreecommitdiff
path: root/kernel/bpf/cpumap.c
diff options
context:
space:
mode:
authorJesper Dangaard Brouer <brouer@redhat.com>2018-04-17 16:45:52 +0200
committerDavid S. Miller <davem@davemloft.net>2018-04-17 10:50:28 -0400
commitcac320c850efb25480cd0f71383b84ec61c0e138 (patch)
treedac73f69c98d6c8e086f023022ceac112377fcab /kernel/bpf/cpumap.c
parent1ffcbc8537d0bc32aaca7000cb9c904ec4b6300f (diff)
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 'kernel/bpf/cpumap.c')
0 files changed, 0 insertions, 0 deletions