Home
last modified time | relevance | path

Searched refs:bpf_fib_lookup (Results 1 – 8 of 8) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tc_neigh_fib.c25 struct bpf_fib_lookup *fib_params) in fill_fib_params_v4()
51 struct bpf_fib_lookup *fib_params) in fill_fib_params_v6()
93 struct bpf_fib_lookup fib_params = { .ifindex = skb->ingress_ifindex }; in tc_redir()
109 ret = bpf_fib_lookup(skb, &fib_params, sizeof(fib_params), 0); in tc_redir()
H A Dfib_lookup.c9 struct bpf_fib_lookup fib_params = {};
16 fib_lookup_ret = bpf_fib_lookup(skb, &fib_params, sizeof(fib_params), in fib_lookup()
H A Dxdp_flowtable.c19 bpf_xdp_flow_lookup(struct xdp_md *, struct bpf_fib_lookup *,
71 struct bpf_fib_lookup tuple = { in xdp_flowtable_do_lookup()
H A Dverifier_ringbuf.c124 : __imm(bpf_fib_lookup), in passing_rb_mem_to_helpers()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dfib_lookup.c212 static int set_lookup_params(struct bpf_fib_lookup *params, in set_lookup_params()
285 static void assert_src_ip(struct bpf_fib_lookup *params, const char *expected) in assert_src_ip()
290 static void assert_dst_ip(struct bpf_fib_lookup *params, const char *expected) in assert_dst_ip()
297 struct bpf_fib_lookup *fib_params; in test_fib_lookup()
/linux/samples/bpf/
H A Dxdp_fwd_kern.c47 struct bpf_fib_lookup fib_params; in xdp_fwd_flags()
104 rc = bpf_fib_lookup(ctx, &fib_params, sizeof(fib_params), flags); in xdp_fwd_flags()
/linux/tools/include/uapi/linux/
H A Dbpf.h3467 * long bpf_fib_lookup(void *ctx, struct bpf_fib_lookup *params, int plen, u32 flags)
3497 * doing **bpf_fib_lookup**\ ().
5176 * values which are L3 (similar behavior as bpf_fib_lookup).
5180 * For route level MTU checks use the **bpf_fib_lookup**\ ()
7314 struct bpf_fib_lookup {
7354 /* input to bpf_fib_lookup, ipv{4,6}_dst is destination address in
7355 * network header. output: bpf_fib_lookup sets to gateway address
7278 struct bpf_fib_lookup { global() struct
7282 familybpf_fib_lookup global() argument
7285 l4_protocolbpf_fib_lookup global() argument
7286 sportbpf_fib_lookup global() argument
7287 dportbpf_fib_lookup global() argument
7289 __anon43a12fb47d0abpf_fib_lookup global() argument
7318 __anon43a12fb47f0abpf_fib_lookup global() argument
7322 __anon43a12fb4800abpf_fib_lookup global() argument
7327 __anon43a12fb4810abpf_fib_lookup global() argument
7340 __anon43a12fb4830abpf_fib_lookup global() argument
/linux/net/core/
H A Dfilter.c91 static_assert(sizeof(struct bpf_fib_lookup) == 64, "struct bpf_fib_lookup size check");
6122 static int bpf_fib_set_fwd_params(struct bpf_fib_lookup *params, u32 mtu) in bpf_fib_set_fwd_params()
6134 static int bpf_ipv4_fib_lookup(struct net *net, struct bpf_fib_lookup *params, in bpf_ipv4_fib_lookup()
6273 static int bpf_ipv6_fib_lookup(struct net *net, struct bpf_fib_lookup *params, in bpf_ipv6_fib_lookup()
6416 struct bpf_fib_lookup *, params, int, plen, u32, flags) in BPF_CALL_4() argument
6450 struct bpf_fib_lookup *, params, int, plen, u32, flags) in BPF_CALL_4() argument