xdp: introduce xdp_return_frame API and use in cpumap
authorJesper Dangaard Brouer <brouer@redhat.com>
Tue, 17 Apr 2018 14:45:26 +0000 (16:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Apr 2018 14:50:27 +0000 (10:50 -0400)
commit5ab073ffd326480a6185d096e9703f62ef92b86c
treea9bcc39ce68cb8ace1f00cf3de8e0276b27845d5
parent5168d73201898c581d0503434ee9743cfc8f964b
xdp: introduce xdp_return_frame API and use in cpumap

Introduce an xdp_return_frame API, and convert over cpumap as
the first user, given it have queued XDP frame structure to leverage.

V3: Cleanup and remove C99 style comments, pointed out by Alex Duyck.
V6: Remove comment that id will be added later (Req by Alex Duyck)
V8: Rename enum mem_type to xdp_mem_type (found by kbuild test robot)

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/xdp.h
kernel/bpf/cpumap.c
net/core/xdp.c