Home
last modified time | relevance | path

Searched refs:ingress_ifindex (Results 1 – 25 of 33) sorted by relevance

12

/linux/tools/testing/selftests/bpf/progs/
H A Dtype_cast.c18 int ifindex, ingress_ifindex; variable
33 ingress_ifindex = ctx->ingress_ifindex; in md_xdp()
H A Dverifier_xdp.c28 : __imm_const(xdp_md_ingress_ifindex, offsetof(struct xdp_md, ingress_ifindex))
H A Dtest_xdp_devmap_helpers.c17 ctx->ingress_ifindex, ctx->egress_ifindex, len); in xdpdm_devlog()
H A Dtest_skb_ctx.c29 if (skb->ingress_ifindex != 11) in process()
H A Dtest_xdp_with_devmap_helpers.c39 ctx->ingress_ifindex, ctx->egress_ifindex, len); in xdp_dummy_dm()
H A Dxdp_redirect_multi_kern.c50 int if_index = ctx->ingress_ifindex; in xdp_redirect_map_multi_prog()
H A Dtest_xdp_do_redirect.c41 if (xdp->ingress_ifindex != (__u32)ifindex_in) in xdp_redirect()
H A Dxdp_flowtable.c72 .ifindex = ctx->ingress_ifindex, in xdp_flowtable_do_lookup()
H A Dtest_tc_neigh_fib.c93 struct bpf_fib_lookup fib_params = { .ifindex = skb->ingress_ifindex }; in tc_redir()
H A Dverifier_cgroup_skb.c60 __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 Dctx_sk_lookup.c234 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 Dprecise.c207 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 Dskb_ctx.c14 .ingress_ifindex = 11, in test_skb_ctx()
86 ASSERT_EQ(skb.ingress_ifindex, 11, "ctx_out_ingress_ifindex"); in test_skb_ctx()
H A Dxdp_context_test_run.c25 __u32 ingress_ifindex, __u32 rx_queue_index, in test_xdp_context_error() argument
32 .ingress_ifindex = ingress_ifindex, in test_xdp_context_error()
H A Dtype_cast.c36 ASSERT_EQ(skel->bss->ifindex, skel->bss->ingress_ifindex, "xdp_md ingress_ifindex"); in test_xdp()
H A Dxdp_do_redirect.c216 ctx_in.ingress_ifindex = ifindex_src; in test_xdp_do_redirect()
/linux/samples/bpf/
H A Dxdp_fwd_kern.c102 fib_params.ifindex = ctx->ingress_ifindex; in xdp_fwd_flags()
H A Dtest_lwt_bpf.c42 skb->ingress_ifindex, skb->ifindex); in do_test_ctx()
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_flower.c313 if (!match->mask->ingress_ifindex) in mlxsw_sp_flower_parse_meta_iif()
316 if (match->mask->ingress_ifindex != 0xFFFFFFFF) { in mlxsw_sp_flower_parse_meta_iif()
322 match->key->ingress_ifindex); in mlxsw_sp_flower_parse_meta_iif()
/linux/include/net/
H A Dflow_dissector.h262 int ingress_ifindex; member
/linux/drivers/net/ethernet/mscc/
H A Docelot_flower.c564 if (!match.mask->ingress_ifindex) in ocelot_flower_parse_indev()
567 if (match.mask->ingress_ifindex != 0xFFFFFFFF) { in ocelot_flower_parse_indev()
576 indev = __dev_get_by_index(dev_net(dev), match.key->ingress_ifindex); in ocelot_flower_parse_indev()
/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_flower.c157 if (match.mask->ingress_ifindex != 0xFFFFFFFF) { in prestera_flower_parse_meta()
164 match.key->ingress_ifindex); in prestera_flower_parse_meta()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_ct.c493 if (match.key->ingress_ifindex & match.mask->ingress_ifindex) { in mlx5_tc_ct_set_tuple_match()
496 dev = dev_get_by_index(&init_net, match.key->ingress_ifindex); in mlx5_tc_ct_set_tuple_match()
1371 if (!(match.key->ingress_ifindex & match.mask->ingress_ifindex)) in mlx5_tc_ct_filter_legacy_non_nic_flows()
1374 netdev = dev_get_by_index(&init_net, match.key->ingress_ifindex); in mlx5_tc_ct_filter_legacy_non_nic_flows()
/linux/net/netfilter/
H A Dnf_flow_table_offload.c117 key->meta.ingress_ifindex = tuple->tc.iifidx; in nf_flow_rule_match()
119 key->meta.ingress_ifindex = tuple->iifidx; in nf_flow_rule_match()
121 mask->meta.ingress_ifindex = 0xffffffff; in nf_flow_rule_match()
/linux/tools/include/uapi/linux/
H A Dbpf.h6349 __u32 ingress_ifindex;
6564 __u32 ingress_ifindex; /* rxq->dev->ifindex */
7548 __u32 ingress_ifindex; /* The arriving interface. Determined by inet_iif. */
6314 __u32 ingress_ifindex; global() member
6529 __u32 ingress_ifindex; /* rxq->dev->ifindex */ global() member
7512 __u32 ingress_ifindex; /* The arriving interface. Determined by inet_iif. */ global() member

12