Home
last modified time | relevance | path

Searched refs:xdp_md (Results 1 – 24 of 24) sorted by relevance

/Linux-v4.19/samples/bpf/
Dxdp_redirect_cpu_kern.c155 u16 get_dest_port_ipv4_udp(struct xdp_md *ctx, u64 nh_off) in get_dest_port_ipv4_udp()
177 int get_proto_ipv4(struct xdp_md *ctx, u64 nh_off) in get_proto_ipv4()
189 int get_proto_ipv6(struct xdp_md *ctx, u64 nh_off) in get_proto_ipv6()
201 int xdp_prognum0_no_touch(struct xdp_md *ctx) in xdp_prognum0_no_touch()
231 int xdp_prognum1_touch_data(struct xdp_md *ctx) in xdp_prognum1_touch_data()
274 int xdp_prognum2_round_robin(struct xdp_md *ctx) in xdp_prognum2_round_robin()
322 int xdp_prognum3_proto_separate(struct xdp_md *ctx) in xdp_prognum3_proto_separate()
390 int xdp_prognum4_ddos_filter_pktgen(struct xdp_md *ctx) in xdp_prognum4_ddos_filter_pktgen()
469 u32 get_ipv4_hash_ip_pair(struct xdp_md *ctx, u64 nh_off) in get_ipv4_hash_ip_pair()
486 u32 get_ipv6_hash_ip_pair(struct xdp_md *ctx, u64 nh_off) in get_ipv6_hash_ip_pair()
[all …]
Dxdp_fwd_kern.c43 static __always_inline int xdp_fwd_flags(struct xdp_md *ctx, u32 flags) in xdp_fwd_flags()
127 int xdp_fwd_prog(struct xdp_md *ctx) in xdp_fwd_prog()
133 int xdp_fwd_direct_prog(struct xdp_md *ctx) in xdp_fwd_direct_prog()
Dxdp_adjust_tail_kern.c67 static __always_inline int send_icmp4_too_big(struct xdp_md *xdp) in send_icmp4_too_big()
117 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4()
134 int _xdp_icmp(struct xdp_md *xdp) in _xdp_icmp()
Dxdp_redirect_kern.c56 int xdp_redirect_prog(struct xdp_md *ctx) in xdp_redirect_prog()
85 int xdp_redirect_dummy_prog(struct xdp_md *ctx) in xdp_redirect_dummy_prog()
Dxdp_redirect_map_kern.c56 int xdp_redirect_map_prog(struct xdp_md *ctx) in xdp_redirect_map_prog()
87 int xdp_redirect_dummy_prog(struct xdp_md *ctx) in xdp_redirect_dummy_prog()
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()
Dxdp2skb_meta_kern.c32 int _xdp_mark(struct xdp_md *ctx) in _xdp_mark()
Dxdpsock_kern.c30 int xdp_sock_prog(struct xdp_md *ctx) in xdp_sock_prog()
Dxdp_sample_pkts_kern.c25 int xdp_sample_prog(struct xdp_md *ctx) in xdp_sample_prog()
Dxdp1_kern.c43 int xdp_prog1(struct xdp_md *ctx) in xdp_prog1()
Dxdp2_kern.c59 int xdp_prog1(struct xdp_md *ctx) in xdp_prog1()
Dxdp_rxq_info_kern.c74 int xdp_prognum0(struct xdp_md *ctx) in xdp_prognum0()
Dxdp_router_ipv4_kern.c109 int xdp_router_ipv4_prog(struct xdp_md *ctx) in xdp_router_ipv4_prog()
/Linux-v4.19/tools/testing/selftests/bpf/
Dtest_xdp_redirect.c18 int xdp_redirect_to_111(struct xdp_md *xdp) in xdp_redirect_to_111()
23 int xdp_redirect_to_222(struct xdp_md *xdp) in xdp_redirect_to_222()
Dtest_verifier.c3911 offsetof(struct xdp_md, data)),
3913 offsetof(struct xdp_md, data_end)),
3934 offsetof(struct xdp_md, data)),
3950 offsetof(struct xdp_md, data)),
3952 offsetof(struct xdp_md, data_end)),
3977 offsetof(struct xdp_md, data)),
3979 offsetof(struct xdp_md, data_end)),
4000 offsetof(struct xdp_md, data)),
4002 offsetof(struct xdp_md, data_end)),
8515 offsetof(struct xdp_md, ingress_ifindex)),
[all …]
Dtest_xdp.c80 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4()
153 static __always_inline int handle_ipv6(struct xdp_md *xdp) in handle_ipv6()
214 int _xdp_tx_iptunnel(struct xdp_md *xdp) in _xdp_tx_iptunnel()
Dtest_adjust_tail.c15 int _xdp_adjust_tail(struct xdp_md *xdp) in _xdp_adjust_tail()
Dtest_xdp_noinline.c289 bool encap_v6(struct xdp_md *xdp, struct ctl_value *cval, in encap_v6()
332 bool encap_v4(struct xdp_md *xdp, struct ctl_value *cval, in encap_v4()
386 bool decap_v6(struct xdp_md *xdp, void **data, void **data_end, bool inner_v4) in decap_v6()
407 bool decap_v4(struct xdp_md *xdp, void **data, void **data_end) in decap_v4()
703 bool is_ipv6, struct xdp_md *xdp) in process_packet()
812 int balancer_ingress(struct xdp_md *ctx) in balancer_ingress()
Dtest_xdp_meta.c32 int ing_xdp(struct xdp_md *ctx) in ing_xdp()
/Linux-v4.19/tools/include/uapi/linux/
Dbpf.h2416 struct xdp_md { struct
/Linux-v4.19/include/uapi/linux/
Dbpf.h2416 struct xdp_md { struct
/Linux-v4.19/net/core/
Dfilter.c5488 if (off < 0 || off >= sizeof(struct xdp_md)) in __is_valid_xdp_access()
5506 case offsetof(struct xdp_md, rx_queue_index): in xdp_is_valid_access()
5514 case offsetof(struct xdp_md, data): in xdp_is_valid_access()
5517 case offsetof(struct xdp_md, data_meta): in xdp_is_valid_access()
5520 case offsetof(struct xdp_md, data_end): in xdp_is_valid_access()
6174 case offsetof(struct xdp_md, data): in xdp_convert_ctx_access()
6179 case offsetof(struct xdp_md, data_meta): in xdp_convert_ctx_access()
6184 case offsetof(struct xdp_md, data_end): in xdp_convert_ctx_access()
6189 case offsetof(struct xdp_md, ingress_ifindex): in xdp_convert_ctx_access()
6199 case offsetof(struct xdp_md, rx_queue_index): in xdp_convert_ctx_access()
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/bpf/
Dverifier.c487 case offsetof(struct xdp_md, rx_queue_index): in nfp_bpf_check_store()
Djit.c2532 case offsetof(struct xdp_md, data): in mem_ldx_xdp()
2533 if (size != FIELD_SIZEOF(struct xdp_md, data)) in mem_ldx_xdp()
2537 case offsetof(struct xdp_md, data_end): in mem_ldx_xdp()
2538 if (size != FIELD_SIZEOF(struct xdp_md, data_end)) in mem_ldx_xdp()
2819 case offsetof(struct xdp_md, rx_queue_index): in mem_stx_xdp()