]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit69f511156f388a6922f4fe04a1c055e1b2b09f2b
treea9bcc39ce68cb8ace1f00cf3de8e0276b27845d5
parentf40db039e5d8a254e810e1f6aa10800c1cdfc471
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