diff options
author | Björn Töpel <bjorn.topel@intel.com> | 2020-05-20 21:20:52 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-05-22 02:31:26 +0200 |
commit | 89e4a376e3a3dab639a3947a6c7cf5d461d1aa4c (patch) | |
tree | 394e656862e6d530f0975ba246f2fa28a4f92c59 /net/xdp/xsk_queue.h | |
parent | xsk: Move driver interface to xdp_sock_drv.h (diff) | |
download | linux-89e4a376e3a3dab639a3947a6c7cf5d461d1aa4c.tar.xz linux-89e4a376e3a3dab639a3947a6c7cf5d461d1aa4c.zip |
xsk: Move defines only used by AF_XDP internals to xsk.h
Move the XSK_NEXT_PG_CONTIG_{MASK,SHIFT}, and
XDP_UMEM_USES_NEED_WAKEUP defines from xdp_sock.h to the AF_XDP
internal xsk.h file. Also, start using the BIT{,_ULL} macro instead of
explicit shifts.
Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200520192103.355233-5-bjorn.topel@gmail.com
Diffstat (limited to 'net/xdp/xsk_queue.h')
-rw-r--r-- | net/xdp/xsk_queue.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/xdp/xsk_queue.h b/net/xdp/xsk_queue.h index 648733ec24ac..a322a7dac58c 100644 --- a/net/xdp/xsk_queue.h +++ b/net/xdp/xsk_queue.h @@ -10,6 +10,8 @@ #include <linux/if_xdp.h> #include <net/xdp_sock.h> +#include "xsk.h" + struct xdp_ring { u32 producer ____cacheline_aligned_in_smp; u32 consumer ____cacheline_aligned_in_smp; |