/linux/tools/testing/selftests/bpf/progs/ |
H A D | type_cast.c | 18 int ifindex, ingress_ifindex; variable 33 ingress_ifindex = ctx->ingress_ifindex; in md_xdp()
|
H A D | verifier_xdp.c | 20 : __imm_const(xdp_md_ingress_ifindex, offsetof(struct xdp_md, ingress_ifindex)) in xdp_using_ifindex_from_netdev()
|
H A D | test_xdp_devmap_helpers.c | 17 ctx->ingress_ifindex, ctx->egress_ifindex, len); in xdpdm_devlog()
|
H A D | test_skb_ctx.c | 29 if (skb->ingress_ifindex != 11) in process()
|
H A D | test_xdp_with_devmap_helpers.c | 39 ctx->ingress_ifindex, ctx->egress_ifindex, len); in xdp_dummy_dm()
|
H A D | xdp_redirect_multi_kern.c | 42 int if_index = ctx->ingress_ifindex; in xdp_redirect_map_multi_prog()
|
H A D | test_xdp_do_redirect.c | 41 if (xdp->ingress_ifindex != (__u32)ifindex_in) in xdp_redirect()
|
H A D | xdp_flowtable.c | 72 .ifindex = ctx->ingress_ifindex, in xdp_flowtable_do_lookup()
|
H A D | test_tc_neigh_fib.c | 93 struct bpf_fib_lookup fib_params = { .ifindex = skb->ingress_ifindex }; in tc_redir()
|
H A D | verifier_cgroup_skb.c | 60 __imm_const(__sk_buff_ingress_ifindex, offsetof(struct __sk_buff, ingress_ifindex)), in test_2_for_cgroup_skb()
|
/linux/tools/testing/selftests/bpf/verifier/ |
H A D | ctx_sk_lookup.c | 234 offsetof(struct bpf_sk_lookup, ingress_ifindex)), 236 offsetof(struct bpf_sk_lookup, ingress_ifindex) + 1), 238 offsetof(struct bpf_sk_lookup, ingress_ifindex) + 2), 240 offsetof(struct bpf_sk_lookup, ingress_ifindex) + 3), 243 offsetof(struct bpf_sk_lookup, ingress_ifindex)), 245 offsetof(struct bpf_sk_lookup, ingress_ifindex) + 2), 248 offsetof(struct bpf_sk_lookup, ingress_ifindex)), 376 offsetof(struct bpf_sk_lookup, ingress_ifindex)),
|
H A D | precise.c | 207 BPF_LDX_MEM(BPF_W, BPF_REG_4, BPF_REG_1, offsetof(struct xdp_md, ingress_ifindex)),
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | skb_ctx.c | 14 .ingress_ifindex = 11, in test_skb_ctx() 86 ASSERT_EQ(skb.ingress_ifindex, 11, "ctx_out_ingress_ifindex"); in test_skb_ctx()
|
H A D | type_cast.c | 36 ASSERT_EQ(skel->bss->ifindex, skel->bss->ingress_ifindex, "xdp_md ingress_ifindex"); in test_xdp()
|
H A D | xdp_do_redirect.c | 207 ctx_in.ingress_ifindex = ifindex_src; in test_xdp_do_redirect()
|
/linux/net/bpf/ |
H A D | test_run.c | 932 skb->skb_iif = __skb->ingress_ifindex; in convert___skb_to_skb() 963 __skb->ingress_ifindex = skb->skb_iif; in convert_skb_to___skb() 1143 unsigned int ingress_ifindex, rx_queue_index; in xdp_convert_md_to_buff() local 1153 ingress_ifindex = xdp_md->ingress_ifindex; in xdp_convert_md_to_buff() 1156 if (!ingress_ifindex && rx_queue_index) in xdp_convert_md_to_buff() 1159 if (ingress_ifindex) { in xdp_convert_md_to_buff() 1161 ingress_ifindex); in xdp_convert_md_to_buff() 1195 if (xdp_md->ingress_ifindex) in xdp_convert_buff_to_md()
|
/linux/samples/bpf/ |
H A D | xdp_fwd_kern.c | 102 fib_params.ifindex = ctx->ingress_ifindex; in xdp_fwd_flags()
|
H A D | test_lwt_bpf.c | 42 skb->ingress_ifindex, skb->ifindex); in do_test_ctx()
|
/linux/include/net/ |
H A D | flow_dissector.h | 262 int ingress_ifindex; member
|
/linux/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_flower.c | 157 if (match.mask->ingress_ifindex != 0xFFFFFFFF) { in prestera_flower_parse_meta() 164 match.key->ingress_ifindex); in prestera_flower_parse_meta()
|
/linux/net/netfilter/ |
H A D | nf_flow_table_offload.c | 113 key->meta.ingress_ifindex = tuple->tc.iifidx; in nf_flow_rule_match() 115 key->meta.ingress_ifindex = tuple->iifidx; in nf_flow_rule_match() 117 mask->meta.ingress_ifindex = 0xffffffff; in nf_flow_rule_match()
|
/linux/include/uapi/linux/ |
H A D | bpf.h | 6249 __u32 ingress_ifindex; member 6464 __u32 ingress_ifindex; /* rxq->dev->ifindex */ member 7399 __u32 ingress_ifindex; /* The arriving interface. Determined by inet_iif. */ member
|
/linux/tools/include/uapi/linux/ |
H A D | bpf.h | 6249 __u32 ingress_ifindex; member 6464 __u32 ingress_ifindex; /* rxq->dev->ifindex */ member 7399 __u32 ingress_ifindex; /* The arriving interface. Determined by inet_iif. */ member
|
/linux/include/linux/ |
H A D | filter.h | 1571 u32 ingress_ifindex; member 1650 .ingress_ifindex = ifindex, in bpf_sk_lookup_run_v4() 1689 .ingress_ifindex = ifindex, in bpf_sk_lookup_run_v6()
|
/linux/Documentation/bpf/ |
H A D | bpf_prog_run.rst | 81 packet arrived on this interface; i.e., the ``ingress_ifindex`` of the context
|