/openbmc/linux/samples/bpf/ |
H A D | parse_varlen.c | 22 static int tcp(void *data, uint64_t tp_off, void *data_end) in tcp() 33 static int udp(void *data, uint64_t tp_off, void *data_end) in udp() 51 static int parse_ipv4(void *data, uint64_t nh_off, void *data_end) in parse_ipv4() 78 static int parse_ipv6(void *data, uint64_t nh_off, void *data_end) in parse_ipv6() 117 void *data_end = (void *)(long)skb->data_end; in handle_ingress() local
|
H A D | xdp_tx_iptunnel_kern.c | 45 static __always_inline int get_dport(void *trans_data, void *data_end, in get_dport() 79 void *data_end = (void *)(long)xdp->data_end; in handle_ipv4() local 154 void *data_end = (void *)(long)xdp->data_end; in handle_ipv6() local 218 void *data_end = (void *)(long)xdp->data_end; in _xdp_tx_iptunnel() local
|
H A D | tc_l2_redirect_kern.c | 64 void *data_end = (void *)(long)skb->data_end; in _l2_to_iptun_ingress_forward() local 115 void *data_end = (void *)(long)skb->data_end; in _l2_to_iptun_ingress_redirect() local 156 void *data_end = (void *)(long)skb->data_end; in _l2_to_ip6tun_ingress_redirect() local 211 void *data_end = (void *)(long)skb->data_end; in _drop_non_tun_vip() local
|
H A D | xdp_adjust_tail_kern.c | 77 void *data_end = (void *)(long)xdp->data_end; in send_icmp4_too_big() local 122 void *data_end = (void *)(long)xdp->data_end; in handle_ipv4() local 139 void *data_end = (void *)(long)xdp->data_end; in _xdp_icmp() local
|
H A D | xdp2skb_meta_kern.c | 35 void *data, *data_end; in _xdp_mark() local 66 void *data_end = (void *)(unsigned long)ctx->data_end; in _tc_mark() local
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_xdp_do_redirect.c | 32 void *data_end = (void *)(long)xdp->data_end; in xdp_redirect() local 67 static bool check_pkt(void *data, void *data_end, const __u32 mark) in check_pkt() 89 void *data_end = (void *)(long)xdp->data_end; in xdp_count_pkts() local 105 void *data_end = (void *)(long)skb->data_end; in tc_count_pkts() local
|
H A D | test_tc_neigh_fib.c | 27 void *data_end = ctx_ptr(skb->data_end); in fill_fib_params_v4() local 55 void *data_end = ctx_ptr(skb->data_end); in fill_fib_params_v6() local 81 void *data_end = ctx_ptr(skb->data_end); in tc_chk() local 128 void *data_end = ctx_ptr(skb->data_end); in tc_redir() local
|
H A D | test_xdp_vlan.c | 57 bool parse_eth_frame(struct ethhdr *eth, void *data_end, struct parse_pkt *pkt) in parse_eth_frame() 108 void *data_end = (void *)(long)ctx->data_end; in xdp_prognum0() local 150 void *data_end = (void *)(long)ctx->data_end; in xdp_prognum1() local 184 void *data_end = (void *)(long)ctx->data_end; in xdp_prognum2() local 230 void *data_end = (void *)(long)ctx->data_end; in xdp_prognum3() local
|
H A D | test_xdp_noinline.c | 232 bool parse_udp(void *data, void *data_end, in parse_udp() 254 bool parse_tcp(void *data, void *data_end, in parse_tcp() 286 void *data_end; in encap_v6() local 332 void *data_end; in encap_v4() local 375 int swap_mac_and_send(void *data, void *data_end) in swap_mac_and_send() 388 int send_icmp_reply(void *data, void *data_end) in send_icmp_reply() 420 int send_icmp6_reply(void *data, void *data_end) in send_icmp6_reply() 591 void *data_end) in process_l3_headers_v6() 622 void *data_end) in process_l3_headers_v4() 761 void *data_end = (void *)(long)ctx->data_end; in balancer_ingress_v4() local [all …]
|
H A D | vrf_socket_lookup.c | 18 static void socket_lookup(void *ctx, void *data_end, void *data) in socket_lookup() 66 void *data_end = (void *)(long)skb->data_end; in tc_socket_lookup() local 79 void *data_end = (void *)(long)xdp->data_end; in xdp_socket_lookup() local
|
H A D | xdpwall.c | 106 static __always_inline struct ethhdr *parse_ethhdr(void *data, void *data_end) in parse_ethhdr() 165 get_transport_hdr(__u16 offset, void *data, void *data_end) in get_transport_hdr() 191 parse_tcp(struct pkt_info *info, void *transport_hdr, void *data_end) in parse_tcp() 206 parse_udp(struct pkt_info *info, void *transport_hdr, void *data_end) in parse_udp() 234 filter_transport_hdr(void *transport_hdr, void *data_end, in filter_transport_hdr() 257 parse_gue_v6(struct pkt_info *info, struct ipv6hdr *ip6h, void *data_end) in parse_gue_v6() 299 void *data, void *data_end) in parse_ipv6_gue() 320 void *data_end = (void *)(long)(ctx->data_end); in edgewall() local
|
H A D | test_xdp_loop.c | 42 static __always_inline int get_dport(void *trans_data, void *data_end, in get_dport() 76 void *data_end = (void *)(long)xdp->data_end; in handle_ipv4() local 149 void *data_end = (void *)(long)xdp->data_end; in handle_ipv6() local 210 void *data_end = (void *)(long)xdp->data_end; in _xdp_tx_iptunnel() local
|
H A D | test_xdp.c | 46 static __always_inline int get_dport(void *trans_data, void *data_end, in get_dport() 80 void *data_end = (void *)(long)xdp->data_end; in handle_ipv4() local 153 void *data_end = (void *)(long)xdp->data_end; in handle_ipv6() local 214 void *data_end = (void *)(long)xdp->data_end; in _xdp_tx_iptunnel() local
|
H A D | test_btf_skc_cls_ingress.c | 33 void *data_end; in test_syncookie_helper() local 75 void *data_end; in handle_ip6_tcp() local 153 void *data_end; in cls_ingress() local
|
H A D | test_tc_neigh.c | 42 void *data_end = ctx_ptr(skb->data_end); in is_remote_ep_v4() local 59 void *data_end = ctx_ptr(skb->data_end); in is_remote_ep_v6() local 76 void *data_end = ctx_ptr(skb->data_end); in tc_chk() local
|
H A D | test_l4lb_noinline.c | 233 static __noinline int parse_icmpv6(void *data, void *data_end, __u64 off, in parse_icmpv6() 255 static __noinline int parse_icmp(void *data, void *data_end, __u64 off, in parse_icmp() 280 static __noinline bool parse_udp(void *data, __u64 off, void *data_end, in parse_udp() 299 static __noinline bool parse_tcp(void *data, __u64 off, void *data_end, in parse_tcp() 321 static __noinline int process_packet(void *data, __u64 off, void *data_end, in process_packet() 453 void *data_end = (void *)(long)ctx->data_end; in balancer_ingress() local
|
H A D | test_l4lb.c | 234 static __always_inline int parse_icmpv6(void *data, void *data_end, __u64 off, in parse_icmpv6() 256 static __always_inline int parse_icmp(void *data, void *data_end, __u64 off, in parse_icmp() 281 static __always_inline bool parse_udp(void *data, __u64 off, void *data_end, in parse_udp() 300 static __always_inline bool parse_tcp(void *data, __u64 off, void *data_end, in parse_tcp() 322 static __always_inline int process_packet(void *data, __u64 off, void *data_end, in process_packet() 454 void *data_end = (void *)(long)ctx->data_end; in balancer_ingress() local
|
H A D | test_check_mtu.c | 61 void *data_end = (void *)(long)ctx->data_end; in xdp_exceed_mtu() local 88 void *data_end = (void *)(long)ctx->data_end; in xdp_minus_delta() local 112 void *data_end = (void *)(long)ctx->data_end; in xdp_input_len() local 203 void *data_end = (void *)(long)ctx->data_end; in tc_exceed_mtu_da() local
|
H A D | test_xdp_meta.c | 14 __u8 *data, *data_meta, *data_end; in ing_cls() local 34 __u8 *data, *data_meta, *data_end; in ing_xdp() local
|
H A D | xdp_redirect_multi_kern.c | 40 void *data_end = (void *)(long)ctx->data_end; in xdp_redirect_map_multi_prog() local 76 void *data_end = (void *)(long)ctx->data_end; in xdp_devmap_prog() local
|
H A D | xdp_synproxy_kern.c | 189 void *data_end; member 274 __be32 *tsecr, void *data, void *data_end) in tscookie_init() 373 static __always_inline int tcp_dissect(void *data, void *data_end, in tcp_dissect() 579 void *data, void *data_end, in syncookie_handle_syn() 748 static __always_inline int syncookie_part1(void *ctx, void *data, void *data_end, in syncookie_part1() 785 static __always_inline int syncookie_part2(void *ctx, void *data, void *data_end, in syncookie_part2() 822 void *data_end = (void *)(long)ctx->data_end; in syncookie_xdp() local 840 void *data_end = (void *)(long)skb->data_end; in syncookie_tc() local
|
H A D | test_tc_edt.c | 67 void *data_end = (void *)(long)skb->data_end; in handle_tcp() local 81 void *data_end = (void *)(long)skb->data_end; in handle_ipv4() local
|
H A D | test_parse_tcp_hdr_opt.c | 39 const void *data_end = (void *)(long)xdp->data_end; in parse_hdr_opt() local 85 const void *data_end = (void *)(long)xdp->data_end; in xdp_ingress_v6() local
|
H A D | test_tcp_check_syncookie_kern.c | 26 static __always_inline __s64 gen_syncookie(void *data_end, struct bpf_sock *sk, in gen_syncookie() 46 void *data_end) in check_syncookie()
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | nat6to4.c | 53 const void *data_end = (void *)(long)skb->data_end; in sched_cls_ingress6_nat_6_prog() local 154 const void *data_end = (void *)(long)skb->data_end; in sched_cls_egress4_snat4_prog() local
|