Home
last modified time | relevance | path

Searched refs:flow_keys (Results 1 – 25 of 47) sorted by relevance

12

/linux-6.1.9/net/core/
Dflow_dissector.c821 static void __skb_flow_bpf_to_target(const struct bpf_flow_keys *flow_keys, in __skb_flow_bpf_to_target() argument
834 key_control->thoff = flow_keys->thoff; in __skb_flow_bpf_to_target()
835 if (flow_keys->is_frag) in __skb_flow_bpf_to_target()
837 if (flow_keys->is_first_frag) in __skb_flow_bpf_to_target()
839 if (flow_keys->is_encap) in __skb_flow_bpf_to_target()
845 key_basic->n_proto = flow_keys->n_proto; in __skb_flow_bpf_to_target()
846 key_basic->ip_proto = flow_keys->ip_proto; in __skb_flow_bpf_to_target()
848 if (flow_keys->addr_proto == ETH_P_IP && in __skb_flow_bpf_to_target()
853 key_addrs->v4addrs.src = flow_keys->ipv4_src; in __skb_flow_bpf_to_target()
854 key_addrs->v4addrs.dst = flow_keys->ipv4_dst; in __skb_flow_bpf_to_target()
[all …]
/linux-6.1.9/include/net/
Dflow_dissector.h357 struct flow_keys { struct
372 offsetof(struct flow_keys, FLOW_KEYS_HASH_START_FIELD) argument
374 __be32 flow_get_u32_src(const struct flow_keys *flow);
375 __be32 flow_get_u32_dst(const struct flow_keys *flow);
393 const struct flow_keys *flow);
395 static inline bool flow_keys_have_l4(const struct flow_keys *keys) in flow_keys_have_l4()
400 u32 flow_hash_from_keys(struct flow_keys *keys);
419 struct bpf_flow_keys *flow_keys; member
Dip_fib.h353 struct flow_keys *flkeys) in fib4_rules_early_flow_dissect()
414 struct flow_keys *flkeys) in fib4_rules_early_flow_dissect()
517 const struct sk_buff *skb, struct flow_keys *flkeys);
Dip6_fib.h606 struct flow_keys *flkeys) in fib6_rules_early_flow_dissect()
649 struct flow_keys *flkeys) in fib6_rules_early_flow_dissect()
Dflow.h193 __u32 __get_hash_from_flowi6(const struct flowi6 *fl6, struct flow_keys *keys);
Dip6_route.h155 const struct sk_buff *skb, struct flow_keys *hkeys);
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector_load_bytes.c7 struct bpf_flow_keys flow_keys; in serial_test_flow_dissector_load_bytes() local
32 .data_out = &flow_keys, in serial_test_flow_dissector_load_bytes()
33 .data_size_out = sizeof(flow_keys), in serial_test_flow_dissector_load_bytes()
45 ASSERT_EQ(topts.data_size_out, sizeof(flow_keys), in serial_test_flow_dissector_load_bytes()
Dflow_dissector.c526 struct bpf_flow_keys flow_keys = {}; in run_tests_skb_less() local
544 err = bpf_map_lookup_elem(keys_fd, &key, &flow_keys); in run_tests_skb_less()
547 CHECK_FLOW_KEYS(tests[i].name, flow_keys, tests[i].keys); in run_tests_skb_less()
613 struct bpf_flow_keys flow_keys; in test_flow_dissector() local
617 .data_out = &flow_keys, in test_flow_dissector()
634 ASSERT_EQ(topts.data_size_out, sizeof(flow_keys), in test_flow_dissector()
636 CHECK_FLOW_KEYS(tests[i].name, flow_keys, tests[i].keys); in test_flow_dissector()
/linux-6.1.9/Documentation/bpf/
Dprog_flow_dissector.rst21 limited set of fields is allowed: ``data``, ``data_end`` and ``flow_keys``.
22 ``flow_keys`` is ``struct bpf_flow_keys`` and contains flow dissector input
54 skb->data + flow_keys->nhoff point to the first byte of L3_HEADER
55 flow_keys->thoff = nhoff
56 flow_keys->n_proto = ETHER_TYPE
71 skb->data + flow_keys->nhoff point the to first byte of TCI
72 flow_keys->thoff = nhoff
73 flow_keys->n_proto = TPID
90 skb->data + flow_keys->nhoff point the to first byte of L3_HEADER
91 flow_keys->thoff = nhoff
[all …]
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dbpf_flow.c98 __u16 thoff = skb->flow_keys->thoff; in bpf_flow_dissect_get_header()
118 struct bpf_flow_keys *keys = skb->flow_keys; in parse_eth_proto()
146 struct bpf_flow_keys *keys = skb->flow_keys; in _dissect()
167 struct bpf_flow_keys *keys = skb->flow_keys; in parse_ip_proto()
258 struct bpf_flow_keys *keys = skb->flow_keys; in parse_ipv6_proto()
278 struct bpf_flow_keys *keys = skb->flow_keys; in PROG()
326 struct bpf_flow_keys *keys = skb->flow_keys; in PROG()
348 struct bpf_flow_keys *keys = skb->flow_keys; in PROG()
366 struct bpf_flow_keys *keys = skb->flow_keys; in PROG()
394 struct bpf_flow_keys *keys = skb->flow_keys; in PROG()
[all …]
/linux-6.1.9/net/sched/
Dcls_flow.c66 static u32 flow_get_src(const struct sk_buff *skb, const struct flow_keys *flow) in flow_get_src()
76 static u32 flow_get_dst(const struct sk_buff *skb, const struct flow_keys *flow) in flow_get_dst()
87 const struct flow_keys *flow) in flow_get_proto()
93 const struct flow_keys *flow) in flow_get_proto_src()
102 const struct flow_keys *flow) in flow_get_proto_dst()
152 const struct flow_keys *flow) in flow_get_nfct_src()
165 const struct flow_keys *flow) in flow_get_nfct_dst()
178 const struct flow_keys *flow) in flow_get_nfct_proto_src()
186 const struct flow_keys *flow) in flow_get_nfct_proto_dst()
240 static u32 flow_key_get(struct sk_buff *skb, int key, struct flow_keys *flow) in flow_key_get()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_ct.c1252 struct flow_keys flow_keys; in mlx5_tc_ct_skb_to_tuple() local
1255 skb_flow_dissect_flow_keys(skb, &flow_keys, FLOW_DISSECTOR_F_STOP_BEFORE_ENCAP); in mlx5_tc_ct_skb_to_tuple()
1259 if (flow_keys.basic.ip_proto != IPPROTO_TCP && in mlx5_tc_ct_skb_to_tuple()
1260 flow_keys.basic.ip_proto != IPPROTO_UDP && in mlx5_tc_ct_skb_to_tuple()
1261 flow_keys.basic.ip_proto != IPPROTO_GRE) in mlx5_tc_ct_skb_to_tuple()
1264 if (flow_keys.basic.ip_proto == IPPROTO_TCP || in mlx5_tc_ct_skb_to_tuple()
1265 flow_keys.basic.ip_proto == IPPROTO_UDP) { in mlx5_tc_ct_skb_to_tuple()
1266 tuple->port.src = flow_keys.ports.src; in mlx5_tc_ct_skb_to_tuple()
1267 tuple->port.dst = flow_keys.ports.dst; in mlx5_tc_ct_skb_to_tuple()
1269 tuple->n_proto = flow_keys.basic.n_proto; in mlx5_tc_ct_skb_to_tuple()
[all …]
Dptp.h53 struct flow_keys fk; in mlx5e_use_ptpsq()
/linux-6.1.9/drivers/net/ethernet/cisco/enic/
Denic_clsf.c21 int enic_addfltr_5t(struct enic *enic, struct flow_keys *keys, u16 rq) in enic_addfltr_5t()
157 struct flow_keys *k) in htbl_key_search()
174 struct flow_keys keys; in enic_rx_flow_steer()
Denic_clsf.h10 int enic_addfltr_5t(struct enic *enic, struct flow_keys *keys, u16 rq);
Denic.h98 struct flow_keys keys;
/linux-6.1.9/net/ipv4/
Dnetfilter.c28 struct flow_keys flkeys; in ip_route_me_harder()
Droute.c1888 struct flow_keys *hash_keys) in ip_multipath_l3_keys()
1928 struct flow_keys keys, hash_keys; in fib_multipath_custom_hash_outer()
1957 struct flow_keys keys, hash_keys; in fib_multipath_custom_hash_inner()
2017 struct flow_keys hash_keys; in fib_multipath_custom_hash_fl4()
2040 const struct sk_buff *skb, struct flow_keys *flkeys) in fib_multipath_hash()
2043 struct flow_keys hash_keys; in fib_multipath_hash()
2062 struct flow_keys keys; in fib_multipath_hash()
2096 struct flow_keys keys; in fib_multipath_hash()
2142 struct flow_keys *hkeys) in ip_mkroute_input()
2227 struct flow_keys *flkeys = NULL, _flkeys; in ip_route_input_slow()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_arfs.c637 const struct flow_keys *fk, in arfs_alloc_rule()
676 static bool arfs_cmp(const struct arfs_tuple *tuple, const struct flow_keys *fk) in arfs_cmp()
694 const struct flow_keys *fk) in arfs_find_rule()
715 struct flow_keys fk; in mlx5e_rx_flow_steer()
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_arfs.c300 ice_arfs_build_entry(struct ice_vsi *vsi, const struct flow_keys *fk, in ice_arfs_build_entry()
402 struct flow_keys fk; in ice_rx_flow_steer()
/linux-6.1.9/drivers/net/bonding/
Dbond_main.c215 .offset = offsetof(struct flow_keys, control),
219 .offset = offsetof(struct flow_keys, basic),
223 .offset = offsetof(struct flow_keys, addrs.v4addrs),
227 .offset = offsetof(struct flow_keys, addrs.v6addrs),
231 .offset = offsetof(struct flow_keys, addrs.tipckey),
235 .offset = offsetof(struct flow_keys, ports),
239 .offset = offsetof(struct flow_keys, icmp),
243 .offset = offsetof(struct flow_keys, vlan),
247 .offset = offsetof(struct flow_keys, tags),
251 .offset = offsetof(struct flow_keys, keyid),
[all …]
/linux-6.1.9/net/openvswitch/
Dactions.c75 static struct action_flow_keys __percpu *flow_keys; variable
83 struct action_flow_keys *keys = this_cpu_ptr(flow_keys); in clone_key()
1616 flow_keys = alloc_percpu(struct action_flow_keys); in action_fifos_init()
1617 if (!flow_keys) { in action_fifos_init()
1628 free_percpu(flow_keys); in action_fifos_exit()
/linux-6.1.9/net/bpf/
Dtest_run.c1441 struct bpf_flow_keys flow_keys; in bpf_prog_test_run_flow_dissector() local
1475 ctx.flow_keys = &flow_keys; in bpf_prog_test_run_flow_dissector()
1489 ret = bpf_test_finish(kattr, uattr, &flow_keys, NULL, in bpf_prog_test_run_flow_dissector()
1490 sizeof(flow_keys), retval, duration); in bpf_prog_test_run_flow_dissector()
/linux-6.1.9/tools/testing/selftests/bpf/verifier/
Dcgroup_skb.c151 offsetof(struct __sk_buff, flow_keys)),
/linux-6.1.9/net/ipv6/
Dnetfilter.c28 struct flow_keys flkeys; in ip6_route_me_harder()

12