/kernel/linux/linux-5.10/include/net/ |
H A D | xdp_sock.h | 40 struct xdp_sock *xsk_map[]; 43 struct xdp_sock { struct 44 /* struct sock must be the first member of struct xdp_sock */ 79 int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp); 80 int __xsk_map_redirect(struct xdp_sock *xs, struct xdp_buff *xdp); 83 static inline struct xdp_sock *__xsk_map_lookup_elem(struct bpf_map *map, in __xsk_map_lookup_elem() 87 struct xdp_sock *xs; in __xsk_map_lookup_elem() 98 static inline int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_generic_rcv() 103 static inline int __xsk_map_redirect(struct xdp_sock *xs, struct xdp_buff *xdp) in __xsk_map_redirect() 112 static inline struct xdp_sock *__xsk_map_lookup_ele [all...] |
H A D | xsk_buff_pool.h | 17 struct xdp_sock; 85 struct xsk_buff_pool *xp_create_and_assign_umem(struct xdp_sock *xs, 89 int xp_assign_dev_shared(struct xsk_buff_pool *pool, struct xdp_sock *umem_xs, 96 void xp_add_xsk(struct xsk_buff_pool *pool, struct xdp_sock *xs); 97 void xp_del_xsk(struct xsk_buff_pool *pool, struct xdp_sock *xs);
|
H A D | xdp_sock_drv.h | 9 #include <net/xdp_sock.h>
|
/kernel/linux/linux-5.10/net/xdp/ |
H A D | xsk.h | 27 /* Nodes are linked in the struct xdp_sock map_list field, and used to 34 struct xdp_sock **map_entry; 37 static inline struct xdp_sock *xdp_sk(struct sock *sk) in xdp_sk() 39 return (struct xdp_sock *)sk; in xdp_sk() 42 void xsk_map_try_sock_delete(struct xsk_map *map, struct xdp_sock *xs, 43 struct xdp_sock **map_entry);
|
H A D | xsk.c | 48 struct xdp_sock *xs; in xsk_set_tx_need_wakeup() 75 struct xdp_sock *xs; in xsk_clear_tx_need_wakeup() 151 static int __xsk_rcv_zc(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len) in __xsk_rcv_zc() 186 static int __xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len, in __xsk_rcv() 214 static bool xsk_tx_writeable(struct xdp_sock *xs) in xsk_tx_writeable() 222 static bool xsk_is_bound(struct xdp_sock *xs) in xsk_is_bound() 232 static int xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp, in xsk_rcv() 250 static void xsk_flush(struct xdp_sock *xs) in xsk_flush() 257 int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_generic_rcv() 268 int __xsk_map_redirect(struct xdp_sock *x [all...] |
H A D | xskmap.c | 8 #include <net/xdp_sock.h> 26 struct xdp_sock **map_entry) in xsk_map_node_alloc() 52 static void xsk_map_sock_add(struct xdp_sock *xs, struct xsk_map_node *node) in xsk_map_sock_add() 59 static void xsk_map_sock_delete(struct xdp_sock *xs, in xsk_map_sock_delete() 60 struct xdp_sock **map_entry) in xsk_map_sock_delete() 166 struct xdp_sock *xs, *old_xs, **map_entry; in xsk_map_update_elem() 186 xs = (struct xdp_sock *)sock->sk; in xsk_map_update_elem() 225 struct xdp_sock *old_xs, **map_entry; in xsk_map_delete_elem() 241 void xsk_map_try_sock_delete(struct xsk_map *map, struct xdp_sock *xs, in xsk_map_try_sock_delete() 242 struct xdp_sock **map_entr in xsk_map_try_sock_delete() [all...] |
H A D | xsk_diag.c | 10 #include <net/xdp_sock.h> 17 static int xsk_diag_put_info(const struct xdp_sock *xs, struct sk_buff *nlskb) in xsk_diag_put_info() 35 static int xsk_diag_put_rings_cfg(const struct xdp_sock *xs, in xsk_diag_put_rings_cfg() 47 static int xsk_diag_put_umem(const struct xdp_sock *xs, struct sk_buff *nlskb) in xsk_diag_put_umem() 79 static int xsk_diag_put_stats(const struct xdp_sock *xs, struct sk_buff *nlskb) in xsk_diag_put_stats() 97 struct xdp_sock *xs = xdp_sk(sk); in xsk_diag_fill()
|
H A D | xsk_buff_pool.c | 4 #include <net/xdp_sock.h> 11 void xp_add_xsk(struct xsk_buff_pool *pool, struct xdp_sock *xs) in xp_add_xsk() 23 void xp_del_xsk(struct xsk_buff_pool *pool, struct xdp_sock *xs) in xp_del_xsk() 44 struct xsk_buff_pool *xp_create_and_assign_umem(struct xdp_sock *xs, in xp_create_and_assign_umem() 201 int xp_assign_dev_shared(struct xsk_buff_pool *pool, struct xdp_sock *umem_xs, in xp_assign_dev_shared()
|
H A D | xsk_queue.h | 11 #include <net/xdp_sock.h>
|
/kernel/linux/linux-6.6/net/xdp/ |
H A D | xsk.h | 27 /* Nodes are linked in the struct xdp_sock map_list field, and used to 34 struct xdp_sock __rcu **map_entry; 37 static inline struct xdp_sock *xdp_sk(struct sock *sk) in xdp_sk() 39 return (struct xdp_sock *)sk; in xdp_sk() 42 void xsk_map_try_sock_delete(struct xsk_map *map, struct xdp_sock *xs, 43 struct xdp_sock __rcu **map_entry);
|
H A D | xskmap.c | 8 #include <net/xdp_sock.h> 16 struct xdp_sock __rcu **map_entry) in xsk_map_node_alloc() 42 static void xsk_map_sock_add(struct xdp_sock *xs, struct xsk_map_node *node) in xsk_map_sock_add() 49 static void xsk_map_sock_delete(struct xdp_sock *xs, in xsk_map_sock_delete() 50 struct xdp_sock __rcu **map_entry) in xsk_map_sock_delete() 165 struct xdp_sock __rcu **map_entry; in xsk_map_update_elem() 166 struct xdp_sock *xs, *old_xs; in xsk_map_update_elem() 186 xs = (struct xdp_sock *)sock->sk; in xsk_map_update_elem() 225 struct xdp_sock __rcu **map_entry; in xsk_map_delete_elem() 226 struct xdp_sock *old_x in xsk_map_delete_elem() [all...] |
H A D | xsk.c | 51 struct xdp_sock *xs; in xsk_set_tx_need_wakeup() 78 struct xdp_sock *xs; in xsk_clear_tx_need_wakeup() 139 static int __xsk_rcv_zc(struct xdp_sock *xs, struct xdp_buff_xsk *xskb, u32 len, in __xsk_rcv_zc() 156 static int xsk_rcv_zc(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len) in xsk_rcv_zc() 227 static int __xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len) in __xsk_rcv() 295 static bool xsk_tx_writeable(struct xdp_sock *xs) in xsk_tx_writeable() 303 static bool xsk_is_bound(struct xdp_sock *xs) in xsk_is_bound() 313 static int xsk_rcv_check(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len) in xsk_rcv_check() 330 static void xsk_flush(struct xdp_sock *xs) in xsk_flush() 337 int xsk_generic_rcv(struct xdp_sock *x [all...] |
H A D | xsk_diag.c | 10 #include <net/xdp_sock.h> 17 static int xsk_diag_put_info(const struct xdp_sock *xs, struct sk_buff *nlskb) in xsk_diag_put_info() 35 static int xsk_diag_put_rings_cfg(const struct xdp_sock *xs, in xsk_diag_put_rings_cfg() 47 static int xsk_diag_put_umem(const struct xdp_sock *xs, struct sk_buff *nlskb) in xsk_diag_put_umem() 79 static int xsk_diag_put_stats(const struct xdp_sock *xs, struct sk_buff *nlskb) in xsk_diag_put_stats() 97 struct xdp_sock *xs = xdp_sk(sk); in xsk_diag_fill()
|
H A D | xsk_buff_pool.c | 4 #include <net/xdp_sock.h> 11 void xp_add_xsk(struct xsk_buff_pool *pool, struct xdp_sock *xs) in xp_add_xsk() 23 void xp_del_xsk(struct xsk_buff_pool *pool, struct xdp_sock *xs) in xp_del_xsk() 45 int xp_alloc_tx_descs(struct xsk_buff_pool *pool, struct xdp_sock *xs) in xp_alloc_tx_descs() 55 struct xsk_buff_pool *xp_create_and_assign_umem(struct xdp_sock *xs, in xp_create_and_assign_umem() 228 int xp_assign_dev_shared(struct xsk_buff_pool *pool, struct xdp_sock *umem_xs, in xp_assign_dev_shared()
|
H A D | xsk_queue.h | 11 #include <net/xdp_sock.h>
|
/kernel/linux/linux-6.6/include/net/ |
H A D | xdp_sock.h | 44 struct xdp_sock __rcu *xsk_map[]; 47 struct xdp_sock { struct 48 /* struct sock must be the first member of struct xdp_sock */ 90 int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp); 91 int __xsk_map_redirect(struct xdp_sock *xs, struct xdp_buff *xdp); 96 static inline int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_generic_rcv() 101 static inline int __xsk_map_redirect(struct xdp_sock *xs, struct xdp_buff *xdp) in __xsk_map_redirect()
|
H A D | xsk_buff_pool.h | 18 struct xdp_sock; 101 struct xsk_buff_pool *xp_create_and_assign_umem(struct xdp_sock *xs, 105 int xp_assign_dev_shared(struct xsk_buff_pool *pool, struct xdp_sock *umem_xs, 107 int xp_alloc_tx_descs(struct xsk_buff_pool *pool, struct xdp_sock *xs); 112 void xp_add_xsk(struct xsk_buff_pool *pool, struct xdp_sock *xs); 113 void xp_del_xsk(struct xsk_buff_pool *pool, struct xdp_sock *xs);
|
H A D | xdp_sock_drv.h | 9 #include <net/xdp_sock.h>
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/ |
H A D | ice.h | 41 #include <net/xdp_sock.h>
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/ |
H A D | ice.h | 50 #include <net/xdp_sock.h>
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/ |
H A D | i40e.h | 39 #include <net/xdp_sock.h>
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/i40e/ |
H A D | i40e.h | 39 #include <net/xdp_sock.h>
|
/kernel/linux/linux-5.10/net/core/ |
H A D | filter.c | 61 #include <net/xdp_sock.h> 4084 struct xdp_sock *xs = fwd; in xdp_do_generic_redirect_map() 6569 BUILD_BUG_ON(sizeof_field(struct xdp_sock, FIELD) > \ in bpf_xdp_sock_convert_ctx_access() 6571 *insn++ = BPF_LDX_MEM(BPF_FIELD_SIZEOF(struct xdp_sock, FIELD),\ in bpf_xdp_sock_convert_ctx_access() 6573 offsetof(struct xdp_sock, FIELD)); \ in bpf_xdp_sock_convert_ctx_access()
|
/kernel/linux/linux-6.6/net/core/ |
H A D | filter.c | 62 #include <net/xdp_sock.h> 7241 BUILD_BUG_ON(sizeof_field(struct xdp_sock, FIELD) > \ in bpf_xdp_sock_convert_ctx_access() 7243 *insn++ = BPF_LDX_MEM(BPF_FIELD_SIZEOF(struct xdp_sock, FIELD),\ in bpf_xdp_sock_convert_ctx_access() 7245 offsetof(struct xdp_sock, FIELD)); \ in bpf_xdp_sock_convert_ctx_access()
|