xsk: Move driver interface to xdp_sock_drv.h
authorMagnus Karlsson <magnus.karlsson@intel.com>
Wed, 20 May 2020 19:20:51 +0000 (21:20 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 22 May 2020 00:31:26 +0000 (17:31 -0700)
commita71506a4fda92a39c8ece119876bc7ccde6d3c9d
treef250c0691192d4a2157ee7cbf1543cdd302692a3
parentd20a1676df7e4c3c23d73299159811a50e4854bc
xsk: Move driver interface to xdp_sock_drv.h

Move the AF_XDP zero-copy driver interface to its own include file
called xdp_sock_drv.h. This, hopefully, will make it more clear for
NIC driver implementors to know what functions to use for zero-copy
support.

v4->v5: Fix -Wmissing-prototypes by include header file. (Jakub)

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200520192103.355233-4-bjorn.topel@gmail.com
15 files changed:
drivers/net/ethernet/intel/i40e/i40e_main.c
drivers/net/ethernet/intel/i40e/i40e_xsk.c
drivers/net/ethernet/intel/ice/ice_xsk.c
drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c
drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c
drivers/net/ethernet/mellanox/mlx5/core/en/xsk/rx.h
drivers/net/ethernet/mellanox/mlx5/core/en/xsk/tx.h
drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c
include/net/xdp_sock.h
include/net/xdp_sock_drv.h [new file with mode: 0644]
net/ethtool/channels.c
net/ethtool/ioctl.c
net/xdp/xdp_umem.h
net/xdp/xsk.c
net/xdp/xsk_queue.c