Searched refs:fib_params (Results 1 – 4 of 4) sorted by relevance
/linux-6.12.1/tools/testing/selftests/bpf/progs/ |
D | test_tc_neigh_fib.c | 25 struct bpf_fib_lookup *fib_params) in fill_fib_params_v4() argument 38 fib_params->family = AF_INET; in fill_fib_params_v4() 39 fib_params->tos = ip4h->tos; in fill_fib_params_v4() 40 fib_params->l4_protocol = ip4h->protocol; in fill_fib_params_v4() 41 fib_params->sport = 0; in fill_fib_params_v4() 42 fib_params->dport = 0; in fill_fib_params_v4() 43 fib_params->tot_len = bpf_ntohs(ip4h->tot_len); in fill_fib_params_v4() 44 fib_params->ipv4_src = ip4h->saddr; in fill_fib_params_v4() 45 fib_params->ipv4_dst = ip4h->daddr; in fill_fib_params_v4() 51 struct bpf_fib_lookup *fib_params) in fill_fib_params_v6() argument [all …]
|
D | fib_lookup.c | 9 struct bpf_fib_lookup fib_params = {}; variable 16 fib_lookup_ret = bpf_fib_lookup(skb, &fib_params, sizeof(fib_params), in fib_lookup()
|
/linux-6.12.1/samples/bpf/ |
D | xdp_fwd_kern.c | 47 struct bpf_fib_lookup fib_params; in xdp_fwd_flags() local 59 __builtin_memset(&fib_params, 0, sizeof(fib_params)); in xdp_fwd_flags() 71 fib_params.family = AF_INET; in xdp_fwd_flags() 72 fib_params.tos = iph->tos; in xdp_fwd_flags() 73 fib_params.l4_protocol = iph->protocol; in xdp_fwd_flags() 74 fib_params.sport = 0; in xdp_fwd_flags() 75 fib_params.dport = 0; in xdp_fwd_flags() 76 fib_params.tot_len = ntohs(iph->tot_len); in xdp_fwd_flags() 77 fib_params.ipv4_src = iph->saddr; in xdp_fwd_flags() 78 fib_params.ipv4_dst = iph->daddr; in xdp_fwd_flags() [all …]
|
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | fib_lookup.c | 297 struct bpf_fib_lookup *fib_params; in test_fib_lookup() local 331 fib_params = &skel->bss->fib_params; in test_fib_lookup() 336 if (set_lookup_params(fib_params, &tests[i], skb.ifindex)) in test_fib_lookup() 350 assert_src_ip(fib_params, tests[i].expected_src); in test_fib_lookup() 353 assert_dst_ip(fib_params, tests[i].expected_dst); in test_fib_lookup() 355 ret = memcmp(tests[i].dmac, fib_params->dmac, sizeof(tests[i].dmac)); in test_fib_lookup() 360 mac_str(actual, fib_params->dmac); in test_fib_lookup() 366 if (!ASSERT_EQ(skel->bss->fib_params.tbid, 0, in test_fib_lookup()
|