Home
last modified time | relevance | path

Searched refs:xdp_md (Results 26 – 50 of 83) sorted by relevance

1234

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_parse_tcp_hdr_opt.c36 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 Dtest_xdp_loop.c74 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 Dtest_xdp.c78 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 Dxdp_tx.c7 int xdp_tx(struct xdp_md *xdp) in xdp_tx()
H A Dxdp_dummy.c8 int xdp_dummy_prog(struct xdp_md *ctx) in xdp_dummy_prog()
H A Dmetadata_unused.c10 int prog(struct xdp_md *ctx) in prog()
H A Dtest_xdp_link.c9 int xdp_handler(struct xdp_md *xdp) in xdp_handler()
H A Dmetadata_used.c10 int prog(struct xdp_md *ctx) in prog()
H A Dverifier_xdp.c20 : __imm_const(xdp_md_ingress_ifindex, offsetof(struct xdp_md, ingress_ifindex)) in xdp_using_ifindex_from_netdev()
H A Dtest_bpf_nf.c51 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 Dtest_xdp_context_test_run.c6 int xdp_context(struct xdp_md *xdp) in xdp_context()
H A Dtest_xdp_devmap_helpers.c9 int xdpdm_devlog(struct xdp_md *ctx) in xdpdm_devlog()
H A Dtest_map_in_map_invalid.c21 int xdp_noop0(struct xdp_md *ctx) in xdp_noop0()
H A Dtest_xdp_adjust_tail_shrink.c13 int _xdp_adjust_tail_shrink(struct xdp_md *xdp) in _xdp_adjust_tail_shrink()
H A Dtest_xdp_adjust_tail_grow.c6 int _xdp_adjust_tail_grow(struct xdp_md *xdp) in _xdp_adjust_tail_grow()
H A Dtest_xdp_dynptr.c77 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 Dtest_xdp_update_frags.c14 int xdp_adjust_frags(struct xdp_md *xdp) in xdp_adjust_frags()
H A Dtest_xdp_bpf2bpf.c50 meta.pkt_len = bpf_xdp_get_buff_len((struct xdp_md *)xdp); in BPF_PROG()
H A Dtest_xdp_meta.c32 int ing_xdp(struct xdp_md *ctx) in ing_xdp()
H A Dvrf_socket_lookup.c77 int xdp_socket_lookup(struct xdp_md *xdp) in xdp_socket_lookup()
/openbmc/linux/net/bpf/
H A Dtest_run.c1086 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 Dxdp_tx_iptunnel_kern.c77 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 Dxdp2skb_meta_kern.c32 int _xdp_mark(struct xdp_md *ctx) in _xdp_mark()
/openbmc/linux/tools/testing/selftests/net/
H A Dxdp_dummy.c8 int xdp_dummy_prog(struct xdp_md *ctx) in xdp_dummy_prog()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dbpf_kfuncs.h17 extern int bpf_dynptr_from_xdp(struct xdp_md *xdp, __u64 flags,

1234