Searched refs:xdp_sock (Results 1 – 11 of 11) sorted by relevance
| /linux-6.15/net/xdp/ |
| H A D | xsk.h | 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 | 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_xs; in xsk_map_delete_elem() 248 void xsk_map_try_sock_delete(struct xsk_map *map, struct xdp_sock *xs, in xsk_map_try_sock_delete() [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() 391 struct xdp_sock *xs, *tmp; in __xsk_map_flush() 407 struct xdp_sock *xs; in xsk_tx_release() 422 struct xdp_sock *xs; in xsk_tx_peek_desc() 481 struct xdp_sock *xs; in xsk_tx_peek_release_desc_batch() 781 struct xdp_sock *xs = xdp_sk(sk); in __xsk_generic_xmit() 906 struct xdp_sock *xs = xdp_sk(sk); in __xsk_sendmsg() 948 struct xdp_sock *xs = xdp_sk(sk); in __xsk_recvmsg() 1199 struct xdp_sock *umem_xs; in xsk_bind() [all …]
|
| H A D | xsk_diag.c | 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 | 13 void xp_add_xsk(struct xsk_buff_pool *pool, struct xdp_sock *xs) in xp_add_xsk() 25 void xp_del_xsk(struct xsk_buff_pool *pool, struct xdp_sock *xs) in xp_del_xsk() 47 int xp_alloc_tx_descs(struct xsk_buff_pool *pool, struct xdp_sock *xs) in xp_alloc_tx_descs() 57 struct xsk_buff_pool *xp_create_and_assign_umem(struct xdp_sock *xs, in xp_create_and_assign_umem() 251 int xp_assign_dev_shared(struct xsk_buff_pool *pool, struct xdp_sock *umem_xs, in xp_assign_dev_shared()
|
| /linux-6.15/include/net/ |
| H A D | xdp_sock.h | 45 struct xdp_sock __rcu *xsk_map[]; 48 struct xdp_sock { struct 124 int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp); 125 int __xsk_map_redirect(struct xdp_sock *xs, struct xdp_buff *xdp); 206 static inline int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_generic_rcv() 211 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 | 19 struct xdp_sock; 104 struct xsk_buff_pool *xp_create_and_assign_umem(struct xdp_sock *xs, 108 int xp_assign_dev_shared(struct xsk_buff_pool *pool, struct xdp_sock *umem_xs, 110 int xp_alloc_tx_descs(struct xsk_buff_pool *pool, struct xdp_sock *xs); 115 void xp_add_xsk(struct xsk_buff_pool *pool, struct xdp_sock *xs); 116 void xp_del_xsk(struct xsk_buff_pool *pool, struct xdp_sock *xs);
|
| /linux-6.15/Documentation/bpf/ |
| H A D | map_xskmap.rst | 82 XSK entry references of type ``struct xdp_sock *`` can be retrieved using the 103 associated ``struct xdp_sock`` instance. 117 Returns ``struct xdp_sock *`` or negative error in case of failure.
|
| /linux-6.15/Documentation/networking/ |
| H A D | af_xdp.rst | 301 SEC("xdp_sock") int xdp_sock_prog(struct xdp_md *ctx) 561 SEC("xdp_sock") int xdp_sock_prog(struct xdp_md *ctx)
|
| /linux-6.15/net/core/ |
| H A D | filter.c | 7410 BUILD_BUG_ON(sizeof_field(struct xdp_sock, FIELD) > \ in bpf_xdp_sock_convert_ctx_access() 7412 *insn++ = BPF_LDX_MEM(BPF_FIELD_SIZEOF(struct xdp_sock, FIELD),\ in bpf_xdp_sock_convert_ctx_access() 7414 offsetof(struct xdp_sock, FIELD)); \ in bpf_xdp_sock_convert_ctx_access()
|
| /linux-6.15/ |
| H A D | MAINTAINERS | 26531 F: include/net/xdp_sock*
|