Searched refs:xdp_sock (Results 1 – 10 of 10) sorted by relevance
| /Linux-v5.4/kernel/bpf/ |
| D | xskmap.c | 14 struct xdp_sock **xsk_map; 33 struct xdp_sock **map_entry) in xsk_map_node_alloc() 59 static void xsk_map_sock_add(struct xdp_sock *xs, struct xsk_map_node *node) in xsk_map_sock_add() 66 static void xsk_map_sock_delete(struct xdp_sock *xs, in xsk_map_sock_delete() 67 struct xdp_sock **map_entry) in xsk_map_sock_delete() 102 cost = (u64)m->map.max_entries * sizeof(struct xdp_sock *); in xsk_map_alloc() 120 sizeof(struct xdp_sock *), in xsk_map_alloc() 163 struct xdp_sock *__xsk_map_lookup_elem(struct bpf_map *map, u32 key) in __xsk_map_lookup_elem() 166 struct xdp_sock *xs; in __xsk_map_lookup_elem() 176 struct xdp_sock *xs) in __xsk_map_redirect() [all …]
|
| /Linux-v5.4/include/net/ |
| D | xdp_sock.h | 76 struct xdp_sock **map_entry; 79 struct xdp_sock { struct 111 int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp); argument 112 int xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp); 113 void xsk_flush(struct xdp_sock *xs); 114 bool xsk_is_setup_for_bpf_map(struct xdp_sock *xs); 133 void xsk_map_try_sock_delete(struct xsk_map *map, struct xdp_sock *xs, 134 struct xdp_sock **map_entry); 222 static inline int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_generic_rcv() 227 static inline int xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_rcv() [all …]
|
| /Linux-v5.4/net/xdp/ |
| D | xsk.c | 34 bool xsk_is_setup_for_bpf_map(struct xdp_sock *xs) in xsk_is_setup_for_bpf_map() 70 struct xdp_sock *xs; in xsk_set_tx_need_wakeup() 97 struct xdp_sock *xs; in xsk_clear_tx_need_wakeup() 141 static int __xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len) in __xsk_rcv() 179 static int __xsk_rcv_zc(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len) in __xsk_rcv_zc() 189 static bool xsk_is_bound(struct xdp_sock *xs) in xsk_is_bound() 199 int xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_rcv() 215 void xsk_flush(struct xdp_sock *xs) in xsk_flush() 221 int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_generic_rcv() 275 struct xdp_sock *xs; in xsk_umem_consume_tx_done() [all …]
|
| D | xsk.h | 20 static inline struct xdp_sock *xdp_sk(struct sock *sk) in xdp_sk() 22 return (struct xdp_sock *)sk; in xdp_sk()
|
| D | xdp_umem.h | 17 void xdp_add_sk_umem(struct xdp_umem *umem, struct xdp_sock *xs); 18 void xdp_del_sk_umem(struct xdp_umem *umem, struct xdp_sock *xs);
|
| 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() 84 struct xdp_sock *xs = xdp_sk(sk); in xsk_diag_fill()
|
| D | xdp_umem.c | 26 void xdp_add_sk_umem(struct xdp_umem *umem, struct xdp_sock *xs) in xdp_add_sk_umem() 38 void xdp_del_sk_umem(struct xdp_umem *umem, struct xdp_sock *xs) in xdp_del_sk_umem()
|
| /Linux-v5.4/include/linux/ |
| D | bpf.h | 976 struct xdp_sock; 977 struct xdp_sock *__xsk_map_lookup_elem(struct bpf_map *map, u32 key); 979 struct xdp_sock *xs); 982 struct xdp_sock; 983 static inline struct xdp_sock *__xsk_map_lookup_elem(struct bpf_map *map, in __xsk_map_lookup_elem() 990 struct xdp_sock *xs) in __xsk_map_redirect()
|
| /Linux-v5.4/Documentation/networking/ |
| D | af_xdp.rst | 229 SEC("xdp_sock") int xdp_sock_prog(struct xdp_md *ctx)
|
| /Linux-v5.4/net/core/ |
| D | filter.c | 3538 struct xdp_sock *xs = fwd; in __bpf_tx_xdp_map() 3670 struct xdp_sock *xs = fwd; in xdp_do_generic_redirect_map() 5770 BUILD_BUG_ON(FIELD_SIZEOF(struct xdp_sock, FIELD) > \ in bpf_xdp_sock_convert_ctx_access() 5772 *insn++ = BPF_LDX_MEM(BPF_FIELD_SIZEOF(struct xdp_sock, FIELD),\ in bpf_xdp_sock_convert_ctx_access() 5774 offsetof(struct xdp_sock, FIELD)); \ in bpf_xdp_sock_convert_ctx_access()
|