Home
last modified time | relevance | path

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

12

/linux-6.1.9/samples/bpf/
Dxdp_rxq_info_kern.c80 int ingress_ifindex; in xdp_prognum0() local
93 ingress_ifindex = ctx->ingress_ifindex; in xdp_prognum0()
100 if (ingress_ifindex != config->ifindex) { in xdp_prognum0()
Dxdp_fwd_kern.c102 fib_params.ifindex = ctx->ingress_ifindex; in xdp_fwd_flags()
Dtest_lwt_bpf.c50 skb->ingress_ifindex, skb->ifindex); in do_test_ctx()
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dxdp_context_test_run.c8 __u32 ingress_ifindex, __u32 rx_queue_index, in test_xdp_context_error() argument
15 .ingress_ifindex = ingress_ifindex, in test_xdp_context_error()
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()
Dxdp_do_redirect.c159 ctx_in.ingress_ifindex = ifindex_src; in serial_test_xdp_do_redirect()
/linux-6.1.9/tools/testing/selftests/bpf/verifier/
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)),
Dxdp.c6 offsetof(struct xdp_md, ingress_ifindex)),
Dprecise.c198 BPF_LDX_MEM(BPF_W, BPF_REG_4, BPF_REG_1, offsetof(struct xdp_md, ingress_ifindex)),
Dcgroup_skb.c46 offsetof(struct __sk_buff, ingress_ifindex)),
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_xdp_devmap_helpers.c17 ctx->ingress_ifindex, ctx->egress_ifindex, len); in xdpdm_devlog()
Dtest_skb_ctx.c27 if (skb->ingress_ifindex != 11) in process()
Dtest_xdp_with_cpumap_helpers.c30 if (ctx->ingress_ifindex == IFINDEX_LO) in xdp_dummy_cm()
Dtest_xdp_with_devmap_helpers.c39 ctx->ingress_ifindex, ctx->egress_ifindex, len); in xdp_dummy_dm()
Dtest_xdp_do_redirect.c28 if (xdp->ingress_ifindex != ifindex_in) in xdp_redirect()
Dxdp_redirect_multi_kern.c42 int if_index = ctx->ingress_ifindex; in xdp_redirect_map_multi_prog()
Dtest_tc_neigh_fib.c93 struct bpf_fib_lookup fib_params = { .ifindex = skb->ingress_ifindex }; in tc_redir()
/linux-6.1.9/net/bpf/
Dtest_run.c1032 skb->skb_iif = __skb->ingress_ifindex; in convert___skb_to_skb()
1063 __skb->ingress_ifindex = skb->skb_iif; in convert_skb_to___skb()
1216 unsigned int ingress_ifindex, rx_queue_index; in xdp_convert_md_to_buff() local
1226 ingress_ifindex = xdp_md->ingress_ifindex; in xdp_convert_md_to_buff()
1229 if (!ingress_ifindex && rx_queue_index) in xdp_convert_md_to_buff()
1232 if (ingress_ifindex) { in xdp_convert_md_to_buff()
1234 ingress_ifindex); in xdp_convert_md_to_buff()
1268 if (xdp_md->ingress_ifindex) in xdp_convert_buff_to_md()
/linux-6.1.9/include/net/
Dflow_dissector.h246 int ingress_ifindex; member
/linux-6.1.9/drivers/net/ethernet/mscc/
Docelot_flower.c534 if (!match.mask->ingress_ifindex) in ocelot_flower_parse_indev()
537 if (match.mask->ingress_ifindex != 0xFFFFFFFF) { in ocelot_flower_parse_indev()
546 indev = __dev_get_by_index(dev_net(dev), match.key->ingress_ifindex); in ocelot_flower_parse_indev()
/linux-6.1.9/drivers/net/ethernet/marvell/prestera/
Dprestera_flower.c151 if (match.mask->ingress_ifindex != 0xFFFFFFFF) { in prestera_flower_parse_meta()
158 match.key->ingress_ifindex); in prestera_flower_parse_meta()
/linux-6.1.9/tools/include/uapi/linux/
Dbpf.h5866 __u32 ingress_ifindex; member
6068 __u32 ingress_ifindex; /* rxq->dev->ifindex */ member
6877 __u32 ingress_ifindex; /* The arriving interface. Determined by inet_iif. */ member
/linux-6.1.9/include/uapi/linux/
Dbpf.h5866 __u32 ingress_ifindex; member
6068 __u32 ingress_ifindex; /* rxq->dev->ifindex */ member
6877 __u32 ingress_ifindex; /* The arriving interface. Determined by inet_iif. */ member
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_flower.c297 if (match.mask->ingress_ifindex != 0xFFFFFFFF) { in mlxsw_sp_flower_parse_meta()
303 match.key->ingress_ifindex); in mlxsw_sp_flower_parse_meta()
/linux-6.1.9/include/linux/
Dfilter.h1371 u32 ingress_ifindex; member
1450 .ingress_ifindex = ifindex, in bpf_sk_lookup_run_v4()
1489 .ingress_ifindex = ifindex, in bpf_sk_lookup_run_v6()

12