Home
last modified time | relevance | path

Searched refs:xdp_sock (Results 1 – 10 of 10) sorted by relevance

/linux-6.1.9/include/net/
Dxdp_sock.h41 struct xdp_sock __rcu *xsk_map[];
44 struct xdp_sock { struct
80 int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp); argument
81 int __xsk_map_redirect(struct xdp_sock *xs, struct xdp_buff *xdp);
86 static inline int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_generic_rcv()
91 static inline int __xsk_map_redirect(struct xdp_sock *xs, struct xdp_buff *xdp) in __xsk_map_redirect()
Dxsk_buff_pool.h18 struct xdp_sock;
94 struct xsk_buff_pool *xp_create_and_assign_umem(struct xdp_sock *xs,
98 int xp_assign_dev_shared(struct xsk_buff_pool *pool, struct xdp_sock *umem_xs,
100 int xp_alloc_tx_descs(struct xsk_buff_pool *pool, struct xdp_sock *xs);
105 void xp_add_xsk(struct xsk_buff_pool *pool, struct xdp_sock *xs);
106 void xp_del_xsk(struct xsk_buff_pool *pool, struct xdp_sock *xs);
/linux-6.1.9/net/xdp/
Dxsk.h34 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);
Dxsk.c49 struct xdp_sock *xs; in xsk_set_tx_need_wakeup()
76 struct xdp_sock *xs; in xsk_clear_tx_need_wakeup()
137 static int __xsk_rcv_zc(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len) in __xsk_rcv_zc()
172 static int __xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in __xsk_rcv()
199 static bool xsk_tx_writeable(struct xdp_sock *xs) in xsk_tx_writeable()
207 static bool xsk_is_bound(struct xdp_sock *xs) in xsk_is_bound()
217 static int xsk_rcv_check(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_rcv_check()
229 static void xsk_flush(struct xdp_sock *xs) in xsk_flush()
236 int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_generic_rcv()
250 static int xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_rcv()
[all …]
Dxskmap.c17 struct xdp_sock __rcu **map_entry) in xsk_map_node_alloc()
39 static void xsk_map_sock_add(struct xdp_sock *xs, struct xsk_map_node *node) in xsk_map_sock_add()
46 static void xsk_map_sock_delete(struct xdp_sock *xs, in xsk_map_sock_delete()
47 struct xdp_sock __rcu **map_entry) in xsk_map_sock_delete()
157 struct xdp_sock __rcu **map_entry; in xsk_map_update_elem()
158 struct xdp_sock *xs, *old_xs; in xsk_map_update_elem()
178 xs = (struct xdp_sock *)sock->sk; in xsk_map_update_elem()
217 struct xdp_sock __rcu **map_entry; in xsk_map_delete_elem()
218 struct xdp_sock *old_xs; in xsk_map_delete_elem()
240 void xsk_map_try_sock_delete(struct xsk_map *map, struct xdp_sock *xs, in xsk_map_try_sock_delete()
[all …]
Dxsk_diag.c17 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()
Dxsk_buff_pool.c11 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()
215 int xp_assign_dev_shared(struct xsk_buff_pool *pool, struct xdp_sock *umem_xs, in xp_assign_dev_shared()
/linux-6.1.9/Documentation/networking/
Daf_xdp.rst301 SEC("xdp_sock") int xdp_sock_prog(struct xdp_md *ctx)
468 SEC("xdp_sock") int xdp_sock_prog(struct xdp_md *ctx)
/linux-6.1.9/net/core/
Dfilter.c7012 BUILD_BUG_ON(sizeof_field(struct xdp_sock, FIELD) > \ in bpf_xdp_sock_convert_ctx_access()
7014 *insn++ = BPF_LDX_MEM(BPF_FIELD_SIZEOF(struct xdp_sock, FIELD),\ in bpf_xdp_sock_convert_ctx_access()
7016 offsetof(struct xdp_sock, FIELD)); \ in bpf_xdp_sock_convert_ctx_access()
/linux-6.1.9/
DMAINTAINERS22444 F: include/net/xdp_sock*