Searched refs:tuple_len (Results 1 – 7 of 7) sorted by relevance
/linux-6.1.9/tools/testing/selftests/bpf/progs/ |
D | test_sk_assign.c | 49 __u64 tuple_len; in get_tuple() local 94 size_t tuple_len; in handle_udp() local 98 tuple_len = ipv4 ? sizeof(tuple->ipv4) : sizeof(tuple->ipv6); in handle_udp() 99 if ((void *)tuple + tuple_len > (void *)(long)skb->data_end) in handle_udp() 102 sk = bpf_sk_lookup_udp(skb, tuple, tuple_len, BPF_F_CURRENT_NETNS, 0); in handle_udp() 125 size_t tuple_len; in handle_tcp() local 129 tuple_len = ipv4 ? sizeof(tuple->ipv4) : sizeof(tuple->ipv6); in handle_tcp() 130 if ((void *)tuple + tuple_len > (void *)(long)skb->data_end) in handle_tcp() 133 sk = bpf_skc_lookup_tcp(skb, tuple, tuple_len, BPF_F_CURRENT_NETNS, 0); in handle_tcp() 165 int tuple_len; in bpf_sk_assign_test() local
|
D | test_btf_skc_cls_ingress.c | 73 unsigned int tuple_len; in handle_ip6_tcp() local 87 tuple_len = sizeof(tuple->ipv6); in handle_ip6_tcp() 89 if ((void *)tuple + tuple_len > data_end) { in handle_ip6_tcp() 94 bpf_skc = bpf_skc_lookup_tcp(skb, tuple, tuple_len, in handle_ip6_tcp()
|
D | test_sk_lookup_kern.c | 63 size_t tuple_len; in sk_lookup_success() local 73 tuple_len = ipv4 ? sizeof(tuple->ipv4) : sizeof(tuple->ipv6); in sk_lookup_success() 74 sk = bpf_sk_lookup_tcp(skb, tuple, tuple_len, BPF_F_CURRENT_NETNS, 0); in sk_lookup_success()
|
D | cgroup_skb_sk_lookup_kern.c | 45 size_t tuple_len = sizeof(tuple.ipv6); in is_allowed_peer_cg() local 50 peer_sk = bpf_sk_lookup_tcp(skb, &tuple, tuple_len, in is_allowed_peer_cg()
|
/linux-6.1.9/net/netfilter/ |
D | nf_conntrack_bpf.c | 61 u32 tuple_len, u8 protonum, u8 dir, in bpf_nf_ct_tuple_parse() argument 76 switch (tuple_len) { in bpf_nf_ct_tuple_parse() 102 u32 tuple_len, struct bpf_ct_opts *opts, u32 opts_len, in __bpf_nf_ct_alloc_entry() argument 116 err = bpf_nf_ct_tuple_parse(bpf_tuple, tuple_len, opts->l4proto, in __bpf_nf_ct_alloc_entry() 121 err = bpf_nf_ct_tuple_parse(bpf_tuple, tuple_len, opts->l4proto, in __bpf_nf_ct_alloc_entry() 149 u32 tuple_len, struct bpf_ct_opts *opts, in __bpf_nf_ct_lookup() argument 165 err = bpf_nf_ct_tuple_parse(bpf_tuple, tuple_len, opts->l4proto, in __bpf_nf_ct_lookup()
|
/linux-6.1.9/drivers/bus/fsl-mc/ |
D | fsl-mc-bus.c | 1012 int tuple_len; in parse_mc_ranges() local 1040 tuple_len = range_tuple_cell_count * sizeof(__be32); in parse_mc_ranges() 1041 if (ranges_len % tuple_len != 0) { in parse_mc_ranges() 1046 return ranges_len / tuple_len; in parse_mc_ranges()
|
/linux-6.1.9/drivers/bus/ |
D | mvebu-mbus.c | 1189 int ranges_len, tuple_len; in mbus_parse_ranges() local 1209 tuple_len = (*cell_count) * sizeof(__be32); in mbus_parse_ranges() 1211 if (ranges_len % tuple_len) { in mbus_parse_ranges()
|