Home
last modified time | relevance | path

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

12

/linux/net/core/
A Dflow_dissector.c809 if (flow_keys->is_frag) in __skb_flow_bpf_to_target()
813 if (flow_keys->is_encap) in __skb_flow_bpf_to_target()
870 struct bpf_flow_keys *flow_keys = ctx->flow_keys; in bpf_flow_dissect() local
874 memset(flow_keys, 0, sizeof(*flow_keys)); in bpf_flow_dissect()
877 flow_keys->thoff = flow_keys->nhoff; in bpf_flow_dissect()
889 flow_keys->nhoff = clamp_t(u16, flow_keys->nhoff, nhoff, hlen); in bpf_flow_dissect()
890 flow_keys->thoff = clamp_t(u16, flow_keys->thoff, in bpf_flow_dissect()
998 .flow_keys = &flow_keys, in __skb_flow_dissect()
1625 struct flow_keys keys; in __skb_get_hash_symmetric()
1649 struct flow_keys keys; in __skb_get_hash()
[all …]
/linux/include/net/
A Dflow_dissector.h308 struct flow_keys { struct
323 offsetof(struct flow_keys, FLOW_KEYS_HASH_START_FIELD) argument
325 __be32 flow_get_u32_src(const struct flow_keys *flow);
326 __be32 flow_get_u32_dst(const struct flow_keys *flow);
344 const struct flow_keys *flow);
346 static inline bool flow_keys_have_l4(const struct flow_keys *keys) in flow_keys_have_l4()
351 u32 flow_hash_from_keys(struct flow_keys *keys);
370 struct bpf_flow_keys *flow_keys; member
A Dip_fib.h350 struct flow_keys *flkeys) in fib4_rules_early_flow_dissect()
411 struct flow_keys *flkeys) in fib4_rules_early_flow_dissect()
514 const struct sk_buff *skb, struct flow_keys *flkeys);
A Dip6_fib.h604 struct flow_keys *flkeys) in fib6_rules_early_flow_dissect()
647 struct flow_keys *flkeys) in fib6_rules_early_flow_dissect()
A Dflow.h215 __u32 __get_hash_from_flowi6(const struct flowi6 *fl6, struct flow_keys *keys);
A Dip6_route.h155 const struct sk_buff *skb, struct flow_keys *hkeys);
/linux/Documentation/bpf/
A 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/tools/testing/selftests/bpf/prog_tests/
A Dflow_dissector_load_bytes.c7 struct bpf_flow_keys flow_keys; in serial_test_flow_dissector_load_bytes() local
41 &flow_keys, &size, &retval, &duration); in serial_test_flow_dissector_load_bytes()
42 CHECK(size != sizeof(flow_keys) || err || retval != 1, in serial_test_flow_dissector_load_bytes()
45 err, errno, retval, duration, size, sizeof(flow_keys)); in serial_test_flow_dissector_load_bytes()
A Dflow_dissector.c491 struct bpf_flow_keys flow_keys = {}; in run_tests_skb_less() local
505 err = bpf_map_lookup_elem(keys_fd, &key, &flow_keys); in run_tests_skb_less()
509 CHECK_FLOW_KEYS(tests[i].name, flow_keys, tests[i].keys); in run_tests_skb_less()
575 struct bpf_flow_keys flow_keys; in test_flow_dissector() local
580 .data_out = &flow_keys, in test_flow_dissector()
591 CHECK_ATTR(tattr.data_size_out != sizeof(flow_keys) || in test_flow_dissector()
596 tattr.data_size_out, sizeof(flow_keys)); in test_flow_dissector()
597 CHECK_FLOW_KEYS(tests[i].name, flow_keys, tests[i].keys); in test_flow_dissector()
/linux/tools/testing/selftests/bpf/progs/
A Dbpf_flow.c96 __u16 thoff = skb->flow_keys->thoff; in bpf_flow_dissect_get_header()
116 struct bpf_flow_keys *keys = skb->flow_keys; in parse_eth_proto()
144 struct bpf_flow_keys *keys = skb->flow_keys; in _dissect()
152 struct bpf_flow_keys *keys = skb->flow_keys; in parse_ip_proto()
243 struct bpf_flow_keys *keys = skb->flow_keys; in parse_ipv6_proto()
263 struct bpf_flow_keys *keys = skb->flow_keys; in PROG()
311 struct bpf_flow_keys *keys = skb->flow_keys; in PROG()
333 struct bpf_flow_keys *keys = skb->flow_keys; in PROG()
351 struct bpf_flow_keys *keys = skb->flow_keys; in PROG()
379 struct bpf_flow_keys *keys = skb->flow_keys; in PROG()
[all …]
/linux/net/sched/
A Dcls_flow.c66 static u32 flow_get_src(const struct sk_buff *skb, const struct flow_keys *flow) in flow_get_src()
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()
307 struct flow_keys flow_keys; in flow_classify() local
314 skb_flow_dissect_flow_keys(skb, &flow_keys, 0); in flow_classify()
[all …]
/linux/drivers/net/ethernet/cisco/enic/
A 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()
A Denic_clsf.h10 int enic_addfltr_5t(struct enic *enic, struct flow_keys *keys, u16 rq);
A Denic.h111 struct flow_keys keys;
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dtc_ct.c1184 struct flow_keys flow_keys; in mlx5_tc_ct_skb_to_tuple() local
1187 skb_flow_dissect_flow_keys(skb, &flow_keys, 0); in mlx5_tc_ct_skb_to_tuple()
1191 if (flow_keys.basic.ip_proto != IPPROTO_TCP && in mlx5_tc_ct_skb_to_tuple()
1192 flow_keys.basic.ip_proto != IPPROTO_UDP) in mlx5_tc_ct_skb_to_tuple()
1195 tuple->port.src = flow_keys.ports.src; in mlx5_tc_ct_skb_to_tuple()
1196 tuple->port.dst = flow_keys.ports.dst; in mlx5_tc_ct_skb_to_tuple()
1197 tuple->n_proto = flow_keys.basic.n_proto; in mlx5_tc_ct_skb_to_tuple()
1198 tuple->ip_proto = flow_keys.basic.ip_proto; in mlx5_tc_ct_skb_to_tuple()
1200 switch (flow_keys.basic.n_proto) { in mlx5_tc_ct_skb_to_tuple()
1203 tuple->ip.src_v4 = flow_keys.addrs.v4addrs.src; in mlx5_tc_ct_skb_to_tuple()
[all …]
A Dptp.h51 struct flow_keys fk; in mlx5e_use_ptpsq()
/linux/net/bpf/
A Dtest_run.c863 struct bpf_flow_keys flow_keys; in bpf_prog_test_run_flow_dissector() local
900 ctx.flow_keys = &flow_keys; in bpf_prog_test_run_flow_dissector()
914 ret = bpf_test_finish(kattr, uattr, &flow_keys, sizeof(flow_keys), in bpf_prog_test_run_flow_dissector()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Den_arfs.c620 const struct flow_keys *fk, in arfs_alloc_rule()
658 static bool arfs_cmp(const struct arfs_tuple *tuple, const struct flow_keys *fk) in arfs_cmp()
676 const struct flow_keys *fk) in arfs_find_rule()
697 struct flow_keys fk; in mlx5e_rx_flow_steer()
/linux/net/ipv4/
A Dnetfilter.c28 struct flow_keys flkeys; in ip_route_me_harder()
A Droute.c1863 struct flow_keys *hash_keys) in ip_multipath_l3_keys()
1903 struct flow_keys keys, hash_keys; in fib_multipath_custom_hash_outer()
1932 struct flow_keys keys, hash_keys; in fib_multipath_custom_hash_inner()
1992 struct flow_keys hash_keys; in fib_multipath_custom_hash_fl4()
2015 const struct sk_buff *skb, struct flow_keys *flkeys) in fib_multipath_hash()
2018 struct flow_keys hash_keys; in fib_multipath_hash()
2037 struct flow_keys keys; in fib_multipath_hash()
2071 struct flow_keys keys; in fib_multipath_hash()
2117 struct flow_keys *hkeys) in ip_mkroute_input()
2202 struct flow_keys *flkeys = NULL, _flkeys; in ip_route_input_slow()
/linux/drivers/net/bonding/
A Dbond_main.c212 .offset = offsetof(struct flow_keys, control),
216 .offset = offsetof(struct flow_keys, basic),
220 .offset = offsetof(struct flow_keys, addrs.v4addrs),
224 .offset = offsetof(struct flow_keys, addrs.v6addrs),
232 .offset = offsetof(struct flow_keys, ports),
236 .offset = offsetof(struct flow_keys, icmp),
240 .offset = offsetof(struct flow_keys, vlan),
244 .offset = offsetof(struct flow_keys, tags),
248 .offset = offsetof(struct flow_keys, keyid),
3838 struct flow_keys flow; in __bond_xmit_hash()
[all …]
/linux/drivers/net/ethernet/intel/ice/
A 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/net/openvswitch/
A 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()
1580 flow_keys = alloc_percpu(struct action_flow_keys); in action_fifos_init()
1581 if (!flow_keys) { in action_fifos_init()
1592 free_percpu(flow_keys); in action_fifos_exit()
/linux/tools/testing/selftests/bpf/verifier/
A Dcgroup_skb.c151 offsetof(struct __sk_buff, flow_keys)),
/linux/net/ipv6/
A Dnetfilter.c27 struct flow_keys flkeys; in ip6_route_me_harder()

Completed in 54 milliseconds

12