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)
commit902540342096af8a13351f6a22bfdd7a8e19ffd2
treee11f5b7bc76f539a64bdf7eec608963ab953027f
parentdce5bd6140a436e3348f6d13a1efb6e6c5a89acd
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