Lines Matching refs:tuples_mask
343 offsetof(struct hclge_fd_rule, tuples_mask.dst_mac) },
346 offsetof(struct hclge_fd_rule, tuples_mask.src_mac) },
349 offsetof(struct hclge_fd_rule, tuples_mask.vlan_tag1) },
353 offsetof(struct hclge_fd_rule, tuples_mask.ether_proto) },
356 offsetof(struct hclge_fd_rule, tuples_mask.l2_user_def) },
359 offsetof(struct hclge_fd_rule, tuples_mask.ip_tos) },
362 offsetof(struct hclge_fd_rule, tuples_mask.ip_proto) },
365 offsetof(struct hclge_fd_rule, tuples_mask.src_ip) },
368 offsetof(struct hclge_fd_rule, tuples_mask.dst_ip) },
371 offsetof(struct hclge_fd_rule, tuples_mask.l3_user_def) },
374 offsetof(struct hclge_fd_rule, tuples_mask.src_port) },
377 offsetof(struct hclge_fd_rule, tuples_mask.dst_port) },
380 offsetof(struct hclge_fd_rule, tuples_mask.l4_user_def) },
6244 rule->tuples_mask.src_ip[IPV4_INDEX] = in hclge_fd_get_tcpip4_tuple()
6249 rule->tuples_mask.dst_ip[IPV4_INDEX] = in hclge_fd_get_tcpip4_tuple()
6253 rule->tuples_mask.src_port = be16_to_cpu(fs->m_u.tcp_ip4_spec.psrc); in hclge_fd_get_tcpip4_tuple()
6256 rule->tuples_mask.dst_port = be16_to_cpu(fs->m_u.tcp_ip4_spec.pdst); in hclge_fd_get_tcpip4_tuple()
6259 rule->tuples_mask.ip_tos = fs->m_u.tcp_ip4_spec.tos; in hclge_fd_get_tcpip4_tuple()
6262 rule->tuples_mask.ether_proto = 0xFFFF; in hclge_fd_get_tcpip4_tuple()
6265 rule->tuples_mask.ip_proto = 0xFF; in hclge_fd_get_tcpip4_tuple()
6273 rule->tuples_mask.src_ip[IPV4_INDEX] = in hclge_fd_get_ip4_tuple()
6278 rule->tuples_mask.dst_ip[IPV4_INDEX] = in hclge_fd_get_ip4_tuple()
6282 rule->tuples_mask.ip_tos = fs->m_u.usr_ip4_spec.tos; in hclge_fd_get_ip4_tuple()
6285 rule->tuples_mask.ip_proto = fs->m_u.usr_ip4_spec.proto; in hclge_fd_get_ip4_tuple()
6288 rule->tuples_mask.ether_proto = 0xFFFF; in hclge_fd_get_ip4_tuple()
6296 ipv6_addr_be32_to_cpu(rule->tuples_mask.src_ip, in hclge_fd_get_tcpip6_tuple()
6301 ipv6_addr_be32_to_cpu(rule->tuples_mask.dst_ip, in hclge_fd_get_tcpip6_tuple()
6305 rule->tuples_mask.src_port = be16_to_cpu(fs->m_u.tcp_ip6_spec.psrc); in hclge_fd_get_tcpip6_tuple()
6308 rule->tuples_mask.dst_port = be16_to_cpu(fs->m_u.tcp_ip6_spec.pdst); in hclge_fd_get_tcpip6_tuple()
6311 rule->tuples_mask.ether_proto = 0xFFFF; in hclge_fd_get_tcpip6_tuple()
6314 rule->tuples_mask.ip_tos = fs->m_u.tcp_ip6_spec.tclass; in hclge_fd_get_tcpip6_tuple()
6317 rule->tuples_mask.ip_proto = 0xFF; in hclge_fd_get_tcpip6_tuple()
6325 ipv6_addr_be32_to_cpu(rule->tuples_mask.src_ip, in hclge_fd_get_ip6_tuple()
6330 ipv6_addr_be32_to_cpu(rule->tuples_mask.dst_ip, in hclge_fd_get_ip6_tuple()
6334 rule->tuples_mask.ip_proto = fs->m_u.usr_ip6_spec.l4_proto; in hclge_fd_get_ip6_tuple()
6337 rule->tuples_mask.ip_tos = fs->m_u.tcp_ip6_spec.tclass; in hclge_fd_get_ip6_tuple()
6340 rule->tuples_mask.ether_proto = 0xFFFF; in hclge_fd_get_ip6_tuple()
6347 ether_addr_copy(rule->tuples_mask.src_mac, fs->m_u.ether_spec.h_source); in hclge_fd_get_ether_tuple()
6350 ether_addr_copy(rule->tuples_mask.dst_mac, fs->m_u.ether_spec.h_dest); in hclge_fd_get_ether_tuple()
6353 rule->tuples_mask.ether_proto = be16_to_cpu(fs->m_u.ether_spec.h_proto); in hclge_fd_get_ether_tuple()
6362 rule->tuples_mask.l2_user_def = info->data_mask; in hclge_fd_get_user_def_tuple()
6366 rule->tuples_mask.l3_user_def = info->data_mask; in hclge_fd_get_user_def_tuple()
6370 rule->tuples_mask.l4_user_def = (u32)info->data_mask << 16; in hclge_fd_get_user_def_tuple()
6419 rule->tuples_mask.vlan_tag1 = be16_to_cpu(fs->m_ext.vlan_tci); in hclge_fd_get_tuple()
6425 ether_addr_copy(rule->tuples_mask.dst_mac, fs->m_ext.h_dest); in hclge_fd_get_tuple()
6714 0 : cpu_to_be32(rule->tuples_mask.src_ip[IPV4_INDEX]); in hclge_fd_get_tcpip4_info()
6718 0 : cpu_to_be32(rule->tuples_mask.dst_ip[IPV4_INDEX]); in hclge_fd_get_tcpip4_info()
6722 0 : cpu_to_be16(rule->tuples_mask.src_port); in hclge_fd_get_tcpip4_info()
6726 0 : cpu_to_be16(rule->tuples_mask.dst_port); in hclge_fd_get_tcpip4_info()
6730 0 : rule->tuples_mask.ip_tos; in hclge_fd_get_tcpip4_info()
6739 0 : cpu_to_be32(rule->tuples_mask.src_ip[IPV4_INDEX]); in hclge_fd_get_ip4_info()
6743 0 : cpu_to_be32(rule->tuples_mask.dst_ip[IPV4_INDEX]); in hclge_fd_get_ip4_info()
6747 0 : rule->tuples_mask.ip_tos; in hclge_fd_get_ip4_info()
6751 0 : rule->tuples_mask.ip_proto; in hclge_fd_get_ip4_info()
6766 rule->tuples_mask.src_ip); in hclge_fd_get_tcpip6_info()
6772 rule->tuples_mask.dst_ip); in hclge_fd_get_tcpip6_info()
6776 0 : rule->tuples_mask.ip_tos; in hclge_fd_get_tcpip6_info()
6780 0 : cpu_to_be16(rule->tuples_mask.src_port); in hclge_fd_get_tcpip6_info()
6784 0 : cpu_to_be16(rule->tuples_mask.dst_port); in hclge_fd_get_tcpip6_info()
6797 rule->tuples_mask.src_ip); in hclge_fd_get_ip6_info()
6803 rule->tuples_mask.dst_ip); in hclge_fd_get_ip6_info()
6807 0 : rule->tuples_mask.ip_tos; in hclge_fd_get_ip6_info()
6811 0 : rule->tuples_mask.ip_proto; in hclge_fd_get_ip6_info()
6824 ether_addr_copy(spec_mask->h_source, rule->tuples_mask.src_mac); in hclge_fd_get_ether_info()
6829 ether_addr_copy(spec_mask->h_dest, rule->tuples_mask.dst_mac); in hclge_fd_get_ether_info()
6833 0 : cpu_to_be16(rule->tuples_mask.ether_proto); in hclge_fd_get_ether_info()
6861 0 : cpu_to_be16(rule->tuples_mask.vlan_tag1); in hclge_fd_get_ext_info()
6872 rule->tuples_mask.dst_mac); in hclge_fd_get_ext_info()
7066 memset(&rule->tuples_mask, 0xFF, sizeof(rule->tuples_mask)); in hclge_fd_build_arfs_rule()
7204 rule->tuples_mask.ether_proto = ethtype_mask; in hclge_get_cls_key_basic()
7206 rule->tuples_mask.ip_proto = match.mask->ip_proto; in hclge_get_cls_key_basic()
7221 ether_addr_copy(rule->tuples_mask.dst_mac, match.mask->dst); in hclge_get_cls_key_mac()
7223 ether_addr_copy(rule->tuples_mask.src_mac, match.mask->src); in hclge_get_cls_key_mac()
7239 rule->tuples_mask.vlan_tag1 = match.mask->vlan_id | in hclge_get_cls_key_vlan()
7267 rule->tuples_mask.src_ip[IPV4_INDEX] = in hclge_get_cls_key_ip()
7270 rule->tuples_mask.dst_ip[IPV4_INDEX] = in hclge_get_cls_key_ip()
7278 ipv6_addr_be32_to_cpu(rule->tuples_mask.src_ip, in hclge_get_cls_key_ip()
7282 ipv6_addr_be32_to_cpu(rule->tuples_mask.dst_ip, in hclge_get_cls_key_ip()
7301 rule->tuples_mask.src_port = be16_to_cpu(match.mask->src); in hclge_get_cls_key_port()
7303 rule->tuples_mask.dst_port = be16_to_cpu(match.mask->dst); in hclge_get_cls_key_port()