]> git.baikalelectronics.ru Git - kernel.git/commit
xsk: expose xdp_umem_get_{data,dma} to drivers
authorBjörn Töpel <bjorn.topel@intel.com>
Tue, 28 Aug 2018 12:44:27 +0000 (14:44 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 29 Aug 2018 19:25:53 +0000 (12:25 -0700)
commitb5e7beb1fb743a20e6062884cb4bab97a58d2f47
treee11f5b7bc76f539a64bdf7eec608963ab953027f
parenta10fe1b8c48b339ccb3a5d94a0b6a7f84f6f210f
xsk: expose xdp_umem_get_{data,dma} to drivers

Move the xdp_umem_get_{data,dma} functions to include/net/xdp_sock.h,
so that the upcoming zero-copy implementation in the Ethernet drivers
can utilize them.

Also, supply some dummy function implementations for
CONFIG_XDP_SOCKETS=n configs.

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/net/xdp_sock.h
net/xdp/xdp_umem.h