Home
last modified time | relevance | path

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

/Linux-v4.19/include/net/
Dxdp_sock.h50 struct xdp_sock { struct
72 int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp); argument
73 int xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp);
74 void xsk_flush(struct xdp_sock *xs);
75 bool xsk_is_setup_for_bpf_map(struct xdp_sock *xs);
83 static inline int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_generic_rcv()
88 static inline int xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_rcv()
93 static inline void xsk_flush(struct xdp_sock *xs) in xsk_flush()
97 static inline bool xsk_is_setup_for_bpf_map(struct xdp_sock *xs) in xsk_is_setup_for_bpf_map()
/Linux-v4.19/kernel/bpf/
Dxskmap.c14 struct xdp_sock **xsk_map;
38 cost = (u64)m->map.max_entries * sizeof(struct xdp_sock *); in xsk_map_alloc()
60 sizeof(struct xdp_sock *), in xsk_map_alloc()
82 struct xdp_sock *xs; in xsk_map_free()
113 struct xdp_sock *__xsk_map_lookup_elem(struct bpf_map *map, u32 key) in __xsk_map_lookup_elem()
116 struct xdp_sock *xs; in __xsk_map_lookup_elem()
126 struct xdp_sock *xs) in __xsk_map_redirect()
146 struct xdp_sock *xs, *tmp; in __xsk_map_flush()
165 struct xdp_sock *xs, *old_xs; in xsk_map_update_elem()
185 xs = (struct xdp_sock *)sock->sk; in xsk_map_update_elem()
[all …]
/Linux-v4.19/net/xdp/
Dxsk.c33 static struct xdp_sock *xdp_sk(struct sock *sk) in xdp_sk()
35 return (struct xdp_sock *)sk; in xdp_sk()
38 bool xsk_is_setup_for_bpf_map(struct xdp_sock *xs) in xsk_is_setup_for_bpf_map()
56 static int __xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len) in __xsk_rcv()
83 static int __xsk_rcv_zc(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len) in __xsk_rcv_zc()
93 int xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_rcv()
106 void xsk_flush(struct xdp_sock *xs) in xsk_flush()
112 int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_generic_rcv()
151 struct xdp_sock *xs; in xsk_umem_consume_tx_done()
164 struct xdp_sock *xs; in xsk_umem_consume_tx()
[all …]
Dxdp_umem.h26 void xdp_add_sk_umem(struct xdp_umem *umem, struct xdp_sock *xs);
27 void xdp_del_sk_umem(struct xdp_umem *umem, struct xdp_sock *xs);
Dxdp_umem.c22 void xdp_add_sk_umem(struct xdp_umem *umem, struct xdp_sock *xs) in xdp_add_sk_umem()
31 void xdp_del_sk_umem(struct xdp_umem *umem, struct xdp_sock *xs) in xdp_del_sk_umem()
/Linux-v4.19/include/linux/
Dbpf.h754 struct xdp_sock;
755 struct xdp_sock *__xsk_map_lookup_elem(struct bpf_map *map, u32 key);
757 struct xdp_sock *xs);
760 struct xdp_sock;
761 static inline struct xdp_sock *__xsk_map_lookup_elem(struct bpf_map *map, in __xsk_map_lookup_elem()
768 struct xdp_sock *xs) in __xsk_map_redirect()
/Linux-v4.19/net/core/
Dfilter.c3206 struct xdp_sock *xs = fwd; in __bpf_tx_xdp_map()
3361 struct xdp_sock *xs = fwd; in xdp_do_generic_redirect_map()