/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_parse_tcp_hdr_opt.c | 36 static int parse_hdr_opt(const struct xdp_md *xdp, struct hdr_opt_state *state) in parse_hdr_opt() 82 int xdp_ingress_v6(struct xdp_md *xdp) in xdp_ingress_v6()
|
H A D | test_xdp_loop.c | 74 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4() 147 static __always_inline int handle_ipv6(struct xdp_md *xdp) in handle_ipv6() 208 int _xdp_tx_iptunnel(struct xdp_md *xdp) in _xdp_tx_iptunnel()
|
H A D | test_xdp.c | 78 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4() 151 static __always_inline int handle_ipv6(struct xdp_md *xdp) in handle_ipv6() 212 int _xdp_tx_iptunnel(struct xdp_md *xdp) in _xdp_tx_iptunnel()
|
H A D | xdp_tx.c | 7 int xdp_tx(struct xdp_md *xdp) in xdp_tx()
|
H A D | xdp_dummy.c | 8 int xdp_dummy_prog(struct xdp_md *ctx) in xdp_dummy_prog()
|
H A D | metadata_unused.c | 10 int prog(struct xdp_md *ctx) in prog()
|
H A D | test_xdp_link.c | 9 int xdp_handler(struct xdp_md *xdp) in xdp_handler()
|
H A D | metadata_used.c | 10 int prog(struct xdp_md *ctx) in prog()
|
H A D | verifier_xdp.c | 20 : __imm_const(xdp_md_ingress_ifindex, offsetof(struct xdp_md, ingress_ifindex)) in xdp_using_ifindex_from_netdev()
|
H A D | test_bpf_nf.c | 51 struct nf_conn *bpf_xdp_ct_alloc(struct xdp_md *, struct bpf_sock_tuple *, u32, 53 struct nf_conn *bpf_xdp_ct_lookup(struct xdp_md *, struct bpf_sock_tuple *, u32, 224 int nf_xdp_ct_test(struct xdp_md *ctx) in nf_xdp_ct_test()
|
H A D | test_xdp_context_test_run.c | 6 int xdp_context(struct xdp_md *xdp) in xdp_context()
|
H A D | test_xdp_devmap_helpers.c | 9 int xdpdm_devlog(struct xdp_md *ctx) in xdpdm_devlog()
|
H A D | test_map_in_map_invalid.c | 21 int xdp_noop0(struct xdp_md *ctx) in xdp_noop0()
|
H A D | test_xdp_adjust_tail_shrink.c | 13 int _xdp_adjust_tail_shrink(struct xdp_md *xdp) in _xdp_adjust_tail_shrink()
|
H A D | test_xdp_adjust_tail_grow.c | 6 int _xdp_adjust_tail_grow(struct xdp_md *xdp) in _xdp_adjust_tail_grow()
|
H A D | test_xdp_dynptr.c | 77 static __always_inline int handle_ipv4(struct xdp_md *xdp, struct bpf_dynptr *xdp_ptr) in handle_ipv4() 159 static __always_inline int handle_ipv6(struct xdp_md *xdp, struct bpf_dynptr *xdp_ptr) in handle_ipv6() 231 int _xdp_tx_iptunnel(struct xdp_md *xdp) in _xdp_tx_iptunnel()
|
H A D | test_xdp_update_frags.c | 14 int xdp_adjust_frags(struct xdp_md *xdp) in xdp_adjust_frags()
|
H A D | test_xdp_bpf2bpf.c | 50 meta.pkt_len = bpf_xdp_get_buff_len((struct xdp_md *)xdp); in BPF_PROG()
|
H A D | test_xdp_meta.c | 32 int ing_xdp(struct xdp_md *ctx) in ing_xdp()
|
H A D | vrf_socket_lookup.c | 77 int xdp_socket_lookup(struct xdp_md *xdp) in xdp_socket_lookup()
|
/openbmc/linux/net/bpf/ |
H A D | test_run.c | 1086 static int xdp_convert_md_to_buff(struct xdp_md *xdp_md, struct xdp_buff *xdp) in xdp_convert_md_to_buff() argument 1092 if (!xdp_md) in xdp_convert_md_to_buff() 1095 if (xdp_md->egress_ifindex != 0) in xdp_convert_md_to_buff() 1098 ingress_ifindex = xdp_md->ingress_ifindex; in xdp_convert_md_to_buff() 1099 rx_queue_index = xdp_md->rx_queue_index; in xdp_convert_md_to_buff() 1124 xdp->data = xdp->data_meta + xdp_md->data; in xdp_convert_md_to_buff() 1132 static void xdp_convert_buff_to_md(struct xdp_buff *xdp, struct xdp_md *xdp_md) in xdp_convert_buff_to_md() argument 1134 if (!xdp_md) in xdp_convert_buff_to_md() 1140 if (xdp_md->ingress_ifindex) in xdp_convert_buff_to_md() 1158 struct xdp_md *ctx; in bpf_prog_test_run_xdp() [all …]
|
/openbmc/linux/samples/bpf/ |
H A D | xdp_tx_iptunnel_kern.c | 77 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4() 152 static __always_inline int handle_ipv6(struct xdp_md *xdp) in handle_ipv6() 216 int _xdp_tx_iptunnel(struct xdp_md *xdp) in _xdp_tx_iptunnel()
|
H A D | xdp2skb_meta_kern.c | 32 int _xdp_mark(struct xdp_md *ctx) in _xdp_mark()
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | xdp_dummy.c | 8 int xdp_dummy_prog(struct xdp_md *ctx) in xdp_dummy_prog()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | bpf_kfuncs.h | 17 extern int bpf_dynptr_from_xdp(struct xdp_md *xdp, __u64 flags,
|