/openbmc/linux/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | match.c | 29 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 D | offload.c | 143 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 D | conntrack.c | 488 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 D | prestera_flower.c | 221 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 D | spectrum_flower.c | 344 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 D | tc_tun_vxlan.c | 26 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 D | tc_tun_mplsoudp.c | 70 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 D | tc_tun_geneve.c | 29 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 D | tc_tun_gre.c | 73 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_KEYID)) { in mlx5e_tc_tun_parse_gretap()
|
H A D | tc_ct.h | 159 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CT)) in mlx5_tc_ct_match_add()
|
H A D | tc_ct.c | 257 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 D | tc_tun.c | 835 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 D | mtk_ppe_offload.c | 259 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 D | tc_conntrack.c | 100 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 D | tc.c | 226 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 D | cxgb4_tc_flower.c | 168 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 D | ocelot_flower.c | 595 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 D | dpaa2-switch-flower.c | 36 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 D | otx2_tc.c | 547 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 D | ice_tc_lib.c | 1330 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 D | bnxt_tc.c | 383 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 D | sja1105_flower.c | 217 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 D | en_tc.c | 2331 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 D | qede_filter.c | 1706 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 D | flow_offload.h | 446 static inline bool flow_rule_match_key(const struct flow_rule *rule, in flow_rule_match_key() function
|