Home
last modified time | relevance | path

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

/linux/net/xdp/
H A Dxsk.h20 /* Nodes are linked in the struct xdp_sock map_list field, and used to
27 struct xdp_sock __rcu **map_entry;
30 static inline struct xdp_sock *xdp_sk(struct sock *sk)
32 return (struct xdp_sock *)sk;
35 void xsk_map_try_sock_delete(struct xsk_map *map, struct xdp_sock *xs,
36 struct xdp_sock __rcu **map_entry);
H A Dxskmap.c16 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()
229 struct xdp_sock __rcu **map_entry; in xsk_map_delete_elem()
230 struct xdp_sock *old_xs; in xsk_map_delete_elem()
252 void xsk_map_try_sock_delete(struct xsk_map *map, struct xdp_sock *xs, in xsk_map_try_sock_delete()
[all …]
H A Dxsk.c63 struct xdp_sock *xs; in xsk_set_tx_need_wakeup()
90 struct xdp_sock *xs; in xsk_clear_tx_need_wakeup()
191 static int __xsk_rcv_zc(struct xdp_sock *xs, struct xdp_buff_xsk *xskb, u32 len, in __xsk_rcv_zc()
208 static void __xsk_rcv_zc_safe(struct xdp_sock *xs, struct xdp_buff_xsk *xskb, in __xsk_rcv_zc_safe()
219 static int xsk_rcv_zc(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len) in xsk_rcv_zc()
296 static int __xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len) in __xsk_rcv()
365 static bool xsk_tx_writeable(struct xdp_sock *xs) in xsk_tx_writeable()
373 static void __xsk_tx_release(struct xdp_sock *xs) in __xsk_tx_release()
380 static bool xsk_is_bound(struct xdp_sock *xs) in xsk_is_bound()
390 static bool xsk_dev_queue_valid(const struct xdp_sock *x in xsk_dev_queue_valid()
[all...]
H A Dxsk_diag.c10 #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 Dxsk_buff_pool.c6 #include <net/xdp_sock.h>
15 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()
45 int xp_alloc_tx_descs(struct xsk_buff_pool *pool, struct xdp_sock *xs) in xp_alloc_tx_descs()
54 struct xsk_buff_pool *xp_create_and_assign_umem(struct xdp_sock *xs, in xp_create_and_assign_umem()
268 int xp_assign_dev_shared(struct xsk_buff_pool *pool, struct xdp_sock *umem_xs, in xp_assign_dev_shared()
/linux/include/net/
H A Dxdp_sock.h45 struct xdp_sock __rcu *xsk_map[];
48 struct xdp_sock { struct
125 int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp);
126 int __xsk_map_redirect(struct xdp_sock *xs, struct xdp_buff *xdp);
208 static inline int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_generic_rcv()
213 static inline int __xsk_map_redirect(struct xdp_sock *xs, struct xdp_buff *xdp) in __xsk_map_redirect()
/linux/Documentation/bpf/
H A Dmap_xskmap.rst82 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/Documentation/networking/
H A Daf_xdp.rst298 SEC("xdp_sock") int xdp_sock_prog(struct xdp_md *ctx)
566 SEC("xdp_sock") int xdp_sock_prog(struct xdp_md *ctx)
/linux/net/core/
H A Dfilter.c62 #include <net/xdp_sock.h>
7647 BUILD_BUG_ON(sizeof_field(struct xdp_sock, FIELD) > \ in BPF_CALL_5()
7649 *insn++ = BPF_LDX_MEM(BPF_FIELD_SIZEOF(struct xdp_sock, FIELD),\ in BPF_CALL_5()
7651 offsetof(struct xdp_sock, FIELD)); \
/linux/
H A DMAINTAINERS29388 F: include/net/xdp_sock*