Home
last modified time | relevance | path

Searched refs:bpf_fib_lookup (Results 1 – 9 of 9) 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 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.c116 call %[bpf_fib_lookup]; \ in passing_rb_mem_to_helpers()
124 : __imm(bpf_fib_lookup), in passing_rb_mem_to_helpers()
/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()
106 * Some rc (return codes) from bpf_fib_lookup() are important, in xdp_fwd_flags()
117 * The bpf_fib_lookup respect sysctl net.ipv{4,6}.conf.all.forwarding in xdp_fwd_flags()
/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/net/netfilter/
H A Dnf_flow_table_bpf.c59 bpf_xdp_flow_lookup(struct xdp_md *ctx, struct bpf_fib_lookup *fib_tuple, in bpf_xdp_flow_lookup()
/linux/tools/include/uapi/linux/
H A Dbpf.h3419 * long bpf_fib_lookup(void *ctx, struct bpf_fib_lookup *params, int plen, u32 flags)
3449 * doing **bpf_fib_lookup**\ ().
5126 * values which are L3 (similar behavior as bpf_fib_lookup).
5130 * For route level MTU checks use the **bpf_fib_lookup**\ ()
7260 struct bpf_fib_lookup { struct
7300 /* input to bpf_fib_lookup, ipv{4,6}_dst is destination address in argument
7301 * network header. output: bpf_fib_lookup sets to gateway address
7264 familybpf_fib_lookup global() argument
7267 l4_protocolbpf_fib_lookup global() argument
7268 sportbpf_fib_lookup global() argument
7269 dportbpf_fib_lookup global() argument
7271 __anonc2086e7c7d0abpf_fib_lookup global() argument
7304 __anonc2086e7c800abpf_fib_lookup global() argument
7309 __anonc2086e7c810abpf_fib_lookup global() argument
7322 __anonc2086e7c830abpf_fib_lookup global() argument
/linux/include/uapi/linux/
H A Dbpf.h3419 * long bpf_fib_lookup(void *ctx, struct bpf_fib_lookup *params, int plen, u32 flags)
3449 * doing **bpf_fib_lookup**\ ().
5126 * values which are L3 (similar behavior as bpf_fib_lookup).
5130 * For route level MTU checks use the **bpf_fib_lookup**\ ()
7260 struct bpf_fib_lookup { struct
7300 /* input to bpf_fib_lookup, ipv{4,6}_dst is destination address in argument
7301 * network header. output: bpf_fib_lookup sets to gateway address
7264 familybpf_fib_lookup global() argument
7267 l4_protocolbpf_fib_lookup global() argument
7268 sportbpf_fib_lookup global() argument
7269 dportbpf_fib_lookup global() argument
7271 __anon1e8efe9c7d0abpf_fib_lookup global() argument
7304 __anon1e8efe9c800abpf_fib_lookup global() argument
7309 __anon1e8efe9c810abpf_fib_lookup global() argument
7322 __anon1e8efe9c830abpf_fib_lookup global() argument
/linux/net/core/
H A Dfilter.c91 /* Keep the struct bpf_fib_lookup small so that it fits into a cacheline */
92 static_assert(sizeof(struct bpf_fib_lookup) == 64, "struct bpf_fib_lookup size check");
5983 static int bpf_fib_set_fwd_params(struct bpf_fib_lookup *params, u32 mtu) in bpf_fib_set_fwd_params()
5995 static int bpf_ipv4_fib_lookup(struct net *net, struct bpf_fib_lookup *params, in bpf_ipv4_fib_lookup()
6134 static int bpf_ipv6_fib_lookup(struct net *net, struct bpf_fib_lookup *params, in bpf_ipv6_fib_lookup()
6280 struct bpf_fib_lookup *, params, int, plen, u32, flags) in BPF_CALL_4() argument
6314 struct bpf_fib_lookup *, params, int, plen, u32, flags) in BPF_CALL_4() argument