Lines Matching refs:unused_tuple

5697 	if (rule->unused_tuple & BIT(tuple_bit))  in hclge_fd_convert_tuple()
5909 u32 *unused_tuple) in hclge_fd_check_tcpip4_tuple() argument
5911 if (!spec || !unused_tuple) in hclge_fd_check_tcpip4_tuple()
5914 *unused_tuple |= BIT(INNER_SRC_MAC) | BIT(INNER_DST_MAC); in hclge_fd_check_tcpip4_tuple()
5917 *unused_tuple |= BIT(INNER_SRC_IP); in hclge_fd_check_tcpip4_tuple()
5920 *unused_tuple |= BIT(INNER_DST_IP); in hclge_fd_check_tcpip4_tuple()
5923 *unused_tuple |= BIT(INNER_SRC_PORT); in hclge_fd_check_tcpip4_tuple()
5926 *unused_tuple |= BIT(INNER_DST_PORT); in hclge_fd_check_tcpip4_tuple()
5929 *unused_tuple |= BIT(INNER_IP_TOS); in hclge_fd_check_tcpip4_tuple()
5935 u32 *unused_tuple) in hclge_fd_check_ip4_tuple() argument
5937 if (!spec || !unused_tuple) in hclge_fd_check_ip4_tuple()
5940 *unused_tuple |= BIT(INNER_SRC_MAC) | BIT(INNER_DST_MAC) | in hclge_fd_check_ip4_tuple()
5944 *unused_tuple |= BIT(INNER_SRC_IP); in hclge_fd_check_ip4_tuple()
5947 *unused_tuple |= BIT(INNER_DST_IP); in hclge_fd_check_ip4_tuple()
5950 *unused_tuple |= BIT(INNER_IP_TOS); in hclge_fd_check_ip4_tuple()
5953 *unused_tuple |= BIT(INNER_IP_PROTO); in hclge_fd_check_ip4_tuple()
5965 u32 *unused_tuple) in hclge_fd_check_tcpip6_tuple() argument
5967 if (!spec || !unused_tuple) in hclge_fd_check_tcpip6_tuple()
5970 *unused_tuple |= BIT(INNER_SRC_MAC) | BIT(INNER_DST_MAC); in hclge_fd_check_tcpip6_tuple()
5974 *unused_tuple |= BIT(INNER_SRC_IP); in hclge_fd_check_tcpip6_tuple()
5977 *unused_tuple |= BIT(INNER_DST_IP); in hclge_fd_check_tcpip6_tuple()
5980 *unused_tuple |= BIT(INNER_SRC_PORT); in hclge_fd_check_tcpip6_tuple()
5983 *unused_tuple |= BIT(INNER_DST_PORT); in hclge_fd_check_tcpip6_tuple()
5986 *unused_tuple |= BIT(INNER_IP_TOS); in hclge_fd_check_tcpip6_tuple()
5992 u32 *unused_tuple) in hclge_fd_check_ip6_tuple() argument
5994 if (!spec || !unused_tuple) in hclge_fd_check_ip6_tuple()
5997 *unused_tuple |= BIT(INNER_SRC_MAC) | BIT(INNER_DST_MAC) | in hclge_fd_check_ip6_tuple()
6002 *unused_tuple |= BIT(INNER_SRC_IP); in hclge_fd_check_ip6_tuple()
6005 *unused_tuple |= BIT(INNER_DST_IP); in hclge_fd_check_ip6_tuple()
6008 *unused_tuple |= BIT(INNER_IP_PROTO); in hclge_fd_check_ip6_tuple()
6011 *unused_tuple |= BIT(INNER_IP_TOS); in hclge_fd_check_ip6_tuple()
6019 static int hclge_fd_check_ether_tuple(struct ethhdr *spec, u32 *unused_tuple) in hclge_fd_check_ether_tuple() argument
6021 if (!spec || !unused_tuple) in hclge_fd_check_ether_tuple()
6024 *unused_tuple |= BIT(INNER_SRC_IP) | BIT(INNER_DST_IP) | in hclge_fd_check_ether_tuple()
6029 *unused_tuple |= BIT(INNER_SRC_MAC); in hclge_fd_check_ether_tuple()
6032 *unused_tuple |= BIT(INNER_DST_MAC); in hclge_fd_check_ether_tuple()
6035 *unused_tuple |= BIT(INNER_ETH_TYPE); in hclge_fd_check_ether_tuple()
6042 u32 *unused_tuple) in hclge_fd_check_ext_tuple() argument
6051 *unused_tuple |= BIT(INNER_VLAN_TAG_FST); in hclge_fd_check_ext_tuple()
6061 *unused_tuple |= BIT(INNER_VLAN_TAG_FST); in hclge_fd_check_ext_tuple()
6073 *unused_tuple |= BIT(INNER_DST_MAC); in hclge_fd_check_ext_tuple()
6075 *unused_tuple &= ~BIT(INNER_DST_MAC); in hclge_fd_check_ext_tuple()
6081 static int hclge_fd_get_user_def_layer(u32 flow_type, u32 *unused_tuple, in hclge_fd_get_user_def_layer() argument
6087 *unused_tuple &= ~BIT(INNER_L2_RSV); in hclge_fd_get_user_def_layer()
6092 *unused_tuple &= ~BIT(INNER_L3_RSV); in hclge_fd_get_user_def_layer()
6099 *unused_tuple &= ~BIT(INNER_L4_RSV); in hclge_fd_get_user_def_layer()
6115 u32 *unused_tuple, in hclge_fd_parse_user_def_field() argument
6124 *unused_tuple |= HCLGE_FD_TUPLE_USER_DEF_TUPLES; in hclge_fd_parse_user_def_field()
6154 ret = hclge_fd_get_user_def_layer(flow_type, unused_tuple, info); in hclge_fd_parse_user_def_field()
6171 u32 *unused_tuple, in hclge_fd_check_spec() argument
6185 ret = hclge_fd_parse_user_def_field(hdev, fs, unused_tuple, info); in hclge_fd_check_spec()
6195 unused_tuple); in hclge_fd_check_spec()
6199 unused_tuple); in hclge_fd_check_spec()
6205 unused_tuple); in hclge_fd_check_spec()
6209 unused_tuple); in hclge_fd_check_spec()
6220 unused_tuple); in hclge_fd_check_spec()
6236 return hclge_fd_check_ext_tuple(hdev, fs, unused_tuple); in hclge_fd_check_spec()
6576 rule->unused_tuple = unused; in hclge_add_fd_entry()
6713 spec_mask->ip4src = rule->unused_tuple & BIT(INNER_SRC_IP) ? in hclge_fd_get_tcpip4_info()
6717 spec_mask->ip4dst = rule->unused_tuple & BIT(INNER_DST_IP) ? in hclge_fd_get_tcpip4_info()
6721 spec_mask->psrc = rule->unused_tuple & BIT(INNER_SRC_PORT) ? in hclge_fd_get_tcpip4_info()
6725 spec_mask->pdst = rule->unused_tuple & BIT(INNER_DST_PORT) ? in hclge_fd_get_tcpip4_info()
6729 spec_mask->tos = rule->unused_tuple & BIT(INNER_IP_TOS) ? in hclge_fd_get_tcpip4_info()
6738 spec_mask->ip4src = rule->unused_tuple & BIT(INNER_SRC_IP) ? in hclge_fd_get_ip4_info()
6742 spec_mask->ip4dst = rule->unused_tuple & BIT(INNER_DST_IP) ? in hclge_fd_get_ip4_info()
6746 spec_mask->tos = rule->unused_tuple & BIT(INNER_IP_TOS) ? in hclge_fd_get_ip4_info()
6750 spec_mask->proto = rule->unused_tuple & BIT(INNER_IP_PROTO) ? in hclge_fd_get_ip4_info()
6762 if (rule->unused_tuple & BIT(INNER_SRC_IP)) in hclge_fd_get_tcpip6_info()
6768 if (rule->unused_tuple & BIT(INNER_DST_IP)) in hclge_fd_get_tcpip6_info()
6775 spec_mask->tclass = rule->unused_tuple & BIT(INNER_IP_TOS) ? in hclge_fd_get_tcpip6_info()
6779 spec_mask->psrc = rule->unused_tuple & BIT(INNER_SRC_PORT) ? in hclge_fd_get_tcpip6_info()
6783 spec_mask->pdst = rule->unused_tuple & BIT(INNER_DST_PORT) ? in hclge_fd_get_tcpip6_info()
6793 if (rule->unused_tuple & BIT(INNER_SRC_IP)) in hclge_fd_get_ip6_info()
6799 if (rule->unused_tuple & BIT(INNER_DST_IP)) in hclge_fd_get_ip6_info()
6806 spec_mask->tclass = rule->unused_tuple & BIT(INNER_IP_TOS) ? in hclge_fd_get_ip6_info()
6810 spec_mask->l4_proto = rule->unused_tuple & BIT(INNER_IP_PROTO) ? in hclge_fd_get_ip6_info()
6821 if (rule->unused_tuple & BIT(INNER_SRC_MAC)) in hclge_fd_get_ether_info()
6826 if (rule->unused_tuple & BIT(INNER_DST_MAC)) in hclge_fd_get_ether_info()
6832 spec_mask->h_proto = rule->unused_tuple & BIT(INNER_ETH_TYPE) ? in hclge_fd_get_ether_info()
6839 if ((rule->unused_tuple & HCLGE_FD_TUPLE_USER_DEF_TUPLES) == in hclge_fd_get_user_def_info()
6860 rule->unused_tuple & BIT(INNER_VLAN_TAG_FST) ? in hclge_fd_get_ext_info()
6868 if (rule->unused_tuple & BIT(INNER_DST_MAC)) in hclge_fd_get_ext_info()
7047 rule->unused_tuple = BIT(INNER_SRC_MAC) | BIT(INNER_DST_MAC) | in hclge_fd_build_arfs_rule()
7208 rule->unused_tuple |= BIT(INNER_IP_PROTO); in hclge_get_cls_key_basic()
7209 rule->unused_tuple |= BIT(INNER_ETH_TYPE); in hclge_get_cls_key_basic()
7225 rule->unused_tuple |= BIT(INNER_DST_MAC); in hclge_get_cls_key_mac()
7226 rule->unused_tuple |= BIT(INNER_SRC_MAC); in hclge_get_cls_key_mac()
7242 rule->unused_tuple |= BIT(INNER_VLAN_TAG_FST); in hclge_get_cls_key_vlan()
7285 rule->unused_tuple |= BIT(INNER_SRC_IP); in hclge_get_cls_key_ip()
7286 rule->unused_tuple |= BIT(INNER_DST_IP); in hclge_get_cls_key_ip()
7305 rule->unused_tuple |= BIT(INNER_SRC_PORT); in hclge_get_cls_key_port()
7306 rule->unused_tuple |= BIT(INNER_DST_PORT); in hclge_get_cls_key_port()