Home
last modified time | relevance | path

Searched refs:flow_rule_match_key (Results 1 – 25 of 37) sorted by relevance

12

/openbmc/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Dmatch.c29 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN)) { in nfp_flower_compile_tci()
99 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ETH_ADDRS)) { in nfp_flower_compile_mac()
124 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_MPLS)) { in nfp_flower_compile_mpls()
192 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_PORTS)) { in nfp_flower_compile_tport()
212 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) { in nfp_flower_compile_ip_ext()
220 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IP)) { in nfp_flower_compile_ip_ext()
235 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_TCP)) { in nfp_flower_compile_ip_ext()
269 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CONTROL)) { in nfp_flower_compile_ip_ext()
324 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN)) { in nfp_flower_compile_vlan()
328 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CVLAN)) { in nfp_flower_compile_vlan()
[all …]
H A Doffload.c143 flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_PORTS) || in nfp_flower_check_higher_than_mac()
144 flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ICMP); in nfp_flower_check_higher_than_mac()
149 return flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_PORTS) || in nfp_flower_check_higher_than_l3()
150 flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ICMP); in nfp_flower_check_higher_than_l3()
274 flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_MPLS)) { in nfp_flower_calculate_key_layers()
279 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN)) { in nfp_flower_calculate_key_layers()
297 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CVLAN)) { in nfp_flower_calculate_key_layers()
358 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_OPTS)) in nfp_flower_calculate_key_layers()
413 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) in nfp_flower_calculate_key_layers()
476 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_TCP)) { in nfp_flower_calculate_key_layers()
[all …]
H A Dconntrack.c488 if (unlikely(flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CVLAN))) in nfp_ct_check_vlan_merge()
492 if (likely(!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN))) in nfp_ct_check_vlan_merge()
743 if (flow_rule_match_key(rules[j], FLOW_DISSECTOR_KEY_BASIC)) { in nfp_fl_merge_actions_offload()
1403 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_META)) { in get_netdev_from_rule()
/openbmc/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_flower.c221 if (flow_rule_match_key(f_rule, FLOW_DISSECTOR_KEY_META)) { in prestera_flower_parse()
227 if (flow_rule_match_key(f_rule, FLOW_DISSECTOR_KEY_CONTROL)) { in prestera_flower_parse()
234 if (flow_rule_match_key(f_rule, FLOW_DISSECTOR_KEY_BASIC)) { in prestera_flower_parse()
254 if (flow_rule_match_key(f_rule, FLOW_DISSECTOR_KEY_ETH_ADDRS)) { in prestera_flower_parse()
294 if (flow_rule_match_key(f_rule, FLOW_DISSECTOR_KEY_PORTS)) { in prestera_flower_parse()
313 if (flow_rule_match_key(f_rule, FLOW_DISSECTOR_KEY_PORTS_RANGE)) { in prestera_flower_parse()
336 if (flow_rule_match_key(f_rule, FLOW_DISSECTOR_KEY_VLAN)) { in prestera_flower_parse()
353 if (flow_rule_match_key(f_rule, FLOW_DISSECTOR_KEY_ICMP)) { in prestera_flower_parse()
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_flower.c344 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_META)) in mlxsw_sp_flower_parse_meta()
412 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_PORTS)) in mlxsw_sp_flower_parse_ports()
440 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_PORTS_RANGE)) in mlxsw_sp_flower_parse_ports_range()
501 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_TCP)) in mlxsw_sp_flower_parse_tcp()
532 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IP)) in mlxsw_sp_flower_parse_ip()
593 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CONTROL)) { in mlxsw_sp_flower_parse()
600 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) { in mlxsw_sp_flower_parse()
622 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ETH_ADDRS)) { in mlxsw_sp_flower_parse()
644 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN)) { in mlxsw_sp_flower_parse()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun_vxlan.c26 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_PORTS)) in mlx5e_tc_tun_check_udp_dport_vxlan()
171 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_KEYID)) in mlx5e_tc_tun_parse_vxlan()
179 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_OPTS)) { in mlx5e_tc_tun_parse_vxlan()
H A Dtc_tun_mplsoudp.c70 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_KEYID)) in parse_tunnel()
73 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_MPLS)) in parse_tunnel()
H A Dtc_tun_geneve.c29 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_PORTS)) in mlx5e_tc_tun_check_udp_dport_geneve()
135 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_KEYID)) in mlx5e_tc_tun_parse_geneve_vni()
174 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_OPTS)) in mlx5e_tc_tun_parse_geneve_options()
H A Dtc_tun_gre.c73 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_KEYID)) { in mlx5e_tc_tun_parse_gretap()
H A Dtc_ct.h159 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CT)) in mlx5_tc_ct_match_add()
H A Dtc_ct.c257 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_PORTS)) { in mlx5_tc_ct_rule_to_tuple()
377 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) { in mlx5_tc_ct_set_tuple_match()
391 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CONTROL)) { in mlx5_tc_ct_set_tuple_match()
435 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_PORTS)) { in mlx5_tc_ct_set_tuple_match()
468 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_TCP)) { in mlx5_tc_ct_set_tuple_match()
478 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_META)) { in mlx5_tc_ct_set_tuple_match()
1445 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CT)) in mlx5_tc_ct_match_add()
H A Dtc_tun.c835 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_CONTROL)) { in mlx5e_tc_tun_parse()
899 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_IP)) { in mlx5e_tc_tun_parse()
951 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_PORTS)) { in mlx5e_tc_tun_parse_udp_ports()
/openbmc/linux/drivers/net/ethernet/mediatek/
H A Dmtk_ppe_offload.c259 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_META)) { in mtk_flow_offload_replace()
267 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CONTROL)) { in mtk_flow_offload_replace()
276 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) { in mtk_flow_offload_replace()
288 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ETH_ADDRS)) { in mtk_flow_offload_replace()
298 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN)) { in mtk_flow_offload_replace()
364 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_PORTS)) { in mtk_flow_offload_replace()
/openbmc/linux/drivers/net/ethernet/sfc/
H A Dtc_conntrack.c100 if (flow_rule_match_key(fr, FLOW_DISSECTOR_KEY_CONTROL)) { in efx_tc_ct_parse_match()
137 if (flow_rule_match_key(fr, FLOW_DISSECTOR_KEY_BASIC)) { in efx_tc_ct_parse_match()
180 if (ipv == 4 && flow_rule_match_key(fr, FLOW_DISSECTOR_KEY_IPV4_ADDRS)) { in efx_tc_ct_parse_match()
198 } else if (ipv == 6 && flow_rule_match_key(fr, FLOW_DISSECTOR_KEY_IPV6_ADDRS)) { in efx_tc_ct_parse_match()
222 if (flow_rule_match_key(fr, FLOW_DISSECTOR_KEY_PORTS)) { in efx_tc_ct_parse_match()
245 if (flow_rule_match_key(fr, FLOW_DISSECTOR_KEY_TCP)) { in efx_tc_ct_parse_match()
H A Dtc.c226 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_##_name)) { \
252 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CONTROL)) { in efx_tc_flower_parse_match()
322 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN)) { in efx_tc_flower_parse_match()
336 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CVLAN)) { in efx_tc_flower_parse_match()
350 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ETH_ADDRS)) { in efx_tc_flower_parse_match()
387 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_CONTROL)) { in efx_tc_flower_parse_match()
439 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CT)) { in efx_tc_flower_parse_match()
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_flower.c168 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CONTROL)) { in cxgb4_process_flow_match()
173 } else if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV4_ADDRS)) { in cxgb4_process_flow_match()
175 } else if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV6_ADDRS)) { in cxgb4_process_flow_match()
179 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) { in cxgb4_process_flow_match()
237 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_PORTS)) { in cxgb4_process_flow_match()
251 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IP)) { in cxgb4_process_flow_match()
259 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_KEYID)) { in cxgb4_process_flow_match()
271 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN)) { in cxgb4_process_flow_match()
329 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) { in cxgb4_validate_flow_match()
337 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IP)) { in cxgb4_validate_flow_match()
/openbmc/linux/drivers/net/ethernet/mscc/
H A Docelot_flower.c595 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_META)) { in ocelot_flower_parse_key()
612 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CONTROL)) { in ocelot_flower_parse_key()
618 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN)) { in ocelot_flower_parse_key()
630 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ETH_ADDRS)) { in ocelot_flower_parse_key()
673 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) { in ocelot_flower_parse_key()
707 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV4_ADDRS) && in ocelot_flower_parse_key()
740 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV6_ADDRS) && in ocelot_flower_parse_key()
745 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_PORTS)) { in ocelot_flower_parse_key()
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-switch-flower.c36 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) { in dpaa2_switch_flower_parse_key()
46 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ETH_ADDRS)) { in dpaa2_switch_flower_parse_key()
56 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN)) { in dpaa2_switch_flower_parse_key()
71 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV4_ADDRS)) { in dpaa2_switch_flower_parse_key()
81 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_PORTS)) { in dpaa2_switch_flower_parse_key()
91 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IP)) { in dpaa2_switch_flower_parse_key()
551 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN)) { in dpaa2_switch_flower_parse_mirror_key()
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_tc.c547 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) { in otx2_tc_prepare_flow()
589 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CONTROL)) { in otx2_tc_prepare_flow()
617 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ETH_ADDRS)) { in otx2_tc_prepare_flow()
634 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPSEC)) { in otx2_tc_prepare_flow()
654 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IP)) { in otx2_tc_prepare_flow()
672 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN)) { in otx2_tc_prepare_flow()
680 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CVLAN)) { in otx2_tc_prepare_flow()
688 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV4_ADDRS)) { in otx2_tc_prepare_flow()
700 } else if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV6_ADDRS)) { in otx2_tc_prepare_flow()
733 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_PORTS)) { in otx2_tc_prepare_flow()
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_tc_lib.c1330 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_KEYID)) { in ice_parse_tunnel_attr()
1360 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_IP)) { in ice_parse_tunnel_attr()
1382 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_OPTS)) { in ice_parse_tunnel_attr()
1472 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) { in ice_parse_cls_flower()
1516 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN) || in ice_parse_cls_flower()
1558 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CVLAN)) { in ice_parse_cls_flower()
1589 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_PPPOE)) { in ice_parse_cls_flower()
1605 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CONTROL)) { in ice_parse_cls_flower()
1629 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IP)) { in ice_parse_cls_flower()
1636 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_L2TPV3)) { in ice_parse_cls_flower()
[all …]
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_tc.c383 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) { in bnxt_tc_parse_flow()
397 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ETH_ADDRS)) { in bnxt_tc_parse_flow()
408 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN)) { in bnxt_tc_parse_flow()
423 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV4_ADDRS)) { in bnxt_tc_parse_flow()
432 } else if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV6_ADDRS)) { in bnxt_tc_parse_flow()
443 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_PORTS)) { in bnxt_tc_parse_flow()
454 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ICMP)) { in bnxt_tc_parse_flow()
465 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_IPV4_ADDRS)) { in bnxt_tc_parse_flow()
474 } else if (flow_rule_match_key(rule, in bnxt_tc_parse_flow()
479 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_KEYID)) { in bnxt_tc_parse_flow()
[all …]
/openbmc/linux/drivers/net/dsa/sja1105/
H A Dsja1105_flower.c217 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) { in sja1105_flower_parse_key()
228 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ETH_ADDRS)) { in sja1105_flower_parse_key()
252 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN)) { in sja1105_flower_parse_key()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_tc.c2331 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IP)) { in mlx5e_tc_verify_tunnel_ecn()
2522 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_META)) in mlx5e_flower_parse_meta()
2658 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC) && in __parse_cls_flower()
2670 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN) || in __parse_cls_flower()
2734 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CVLAN)) { in __parse_cls_flower()
2823 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) { in __parse_cls_flower()
2882 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IP)) { in __parse_cls_flower()
2917 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_PORTS)) { in __parse_cls_flower()
2957 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_TCP)) { in __parse_cls_flower()
2969 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ICMP)) { in __parse_cls_flower()
[all …]
/openbmc/linux/drivers/net/ethernet/qlogic/qede/
H A Dqede_filter.c1706 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_PORTS)) { in qede_flow_parse_ports()
1732 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV6_ADDRS)) { in qede_flow_parse_v6_common()
1759 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV4_ADDRS)) { in qede_flow_parse_v4_common()
1846 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) { in qede_parse_flow_attr()
/openbmc/linux/include/net/
H A Dflow_offload.h446 static inline bool flow_rule_match_key(const struct flow_rule *rule, in flow_rule_match_key() function

12