Lines Matching refs:rss_cfg
636 const u8 *indir = hdev->rss_cfg.rss_indirection_tbl; in hclgevf_set_rss_indir_table()
708 struct hclgevf_rss_cfg *rss_cfg = &hdev->rss_cfg; in hclgevf_get_rss_hash_key() local
731 memcpy(&rss_cfg->rss_hash_key[hash_key_index], in hclgevf_get_rss_hash_key()
735 memcpy(&rss_cfg->rss_hash_key[hash_key_index], in hclgevf_get_rss_hash_key()
746 struct hclgevf_rss_cfg *rss_cfg = &hdev->rss_cfg; in hclgevf_get_rss() local
752 switch (rss_cfg->hash_algo) { in hclgevf_get_rss()
767 memcpy(key, rss_cfg->rss_hash_key, in hclgevf_get_rss()
776 memcpy(key, rss_cfg->rss_hash_key, in hclgevf_get_rss()
783 indir[i] = rss_cfg->rss_indirection_tbl[i]; in hclgevf_get_rss()
799 *hash_algo = hdev->rss_cfg.hash_algo; in hclgevf_parse_rss_hfunc()
810 struct hclgevf_rss_cfg *rss_cfg = &hdev->rss_cfg; in hclgevf_set_rss() local
829 memcpy(rss_cfg->rss_hash_key, key, in hclgevf_set_rss()
833 rss_cfg->rss_hash_key); in hclgevf_set_rss()
837 rss_cfg->hash_algo = hash_algo; in hclgevf_set_rss()
842 rss_cfg->rss_indirection_tbl[i] = indir[i]; in hclgevf_set_rss()
877 struct hclgevf_rss_cfg *rss_cfg = &hdev->rss_cfg; in hclgevf_set_rss_tuple() local
893 req->ipv4_tcp_en = rss_cfg->rss_tuple_sets.ipv4_tcp_en; in hclgevf_set_rss_tuple()
894 req->ipv4_udp_en = rss_cfg->rss_tuple_sets.ipv4_udp_en; in hclgevf_set_rss_tuple()
895 req->ipv4_sctp_en = rss_cfg->rss_tuple_sets.ipv4_sctp_en; in hclgevf_set_rss_tuple()
896 req->ipv4_fragment_en = rss_cfg->rss_tuple_sets.ipv4_fragment_en; in hclgevf_set_rss_tuple()
897 req->ipv6_tcp_en = rss_cfg->rss_tuple_sets.ipv6_tcp_en; in hclgevf_set_rss_tuple()
898 req->ipv6_udp_en = rss_cfg->rss_tuple_sets.ipv6_udp_en; in hclgevf_set_rss_tuple()
899 req->ipv6_sctp_en = rss_cfg->rss_tuple_sets.ipv6_sctp_en; in hclgevf_set_rss_tuple()
900 req->ipv6_fragment_en = rss_cfg->rss_tuple_sets.ipv6_fragment_en; in hclgevf_set_rss_tuple()
943 rss_cfg->rss_tuple_sets.ipv4_tcp_en = req->ipv4_tcp_en; in hclgevf_set_rss_tuple()
944 rss_cfg->rss_tuple_sets.ipv4_udp_en = req->ipv4_udp_en; in hclgevf_set_rss_tuple()
945 rss_cfg->rss_tuple_sets.ipv4_sctp_en = req->ipv4_sctp_en; in hclgevf_set_rss_tuple()
946 rss_cfg->rss_tuple_sets.ipv4_fragment_en = req->ipv4_fragment_en; in hclgevf_set_rss_tuple()
947 rss_cfg->rss_tuple_sets.ipv6_tcp_en = req->ipv6_tcp_en; in hclgevf_set_rss_tuple()
948 rss_cfg->rss_tuple_sets.ipv6_udp_en = req->ipv6_udp_en; in hclgevf_set_rss_tuple()
949 rss_cfg->rss_tuple_sets.ipv6_sctp_en = req->ipv6_sctp_en; in hclgevf_set_rss_tuple()
950 rss_cfg->rss_tuple_sets.ipv6_fragment_en = req->ipv6_fragment_en; in hclgevf_set_rss_tuple()
958 struct hclgevf_rss_cfg *rss_cfg = &hdev->rss_cfg; in hclgevf_get_rss_tuple() local
968 tuple_sets = rss_cfg->rss_tuple_sets.ipv4_tcp_en; in hclgevf_get_rss_tuple()
971 tuple_sets = rss_cfg->rss_tuple_sets.ipv4_udp_en; in hclgevf_get_rss_tuple()
974 tuple_sets = rss_cfg->rss_tuple_sets.ipv6_tcp_en; in hclgevf_get_rss_tuple()
977 tuple_sets = rss_cfg->rss_tuple_sets.ipv6_udp_en; in hclgevf_get_rss_tuple()
980 tuple_sets = rss_cfg->rss_tuple_sets.ipv4_sctp_en; in hclgevf_get_rss_tuple()
983 tuple_sets = rss_cfg->rss_tuple_sets.ipv6_sctp_en; in hclgevf_get_rss_tuple()
1009 struct hclgevf_rss_cfg *rss_cfg) in hclgevf_set_rss_input_tuple() argument
1019 req->ipv4_tcp_en = rss_cfg->rss_tuple_sets.ipv4_tcp_en; in hclgevf_set_rss_input_tuple()
1020 req->ipv4_udp_en = rss_cfg->rss_tuple_sets.ipv4_udp_en; in hclgevf_set_rss_input_tuple()
1021 req->ipv4_sctp_en = rss_cfg->rss_tuple_sets.ipv4_sctp_en; in hclgevf_set_rss_input_tuple()
1022 req->ipv4_fragment_en = rss_cfg->rss_tuple_sets.ipv4_fragment_en; in hclgevf_set_rss_input_tuple()
1023 req->ipv6_tcp_en = rss_cfg->rss_tuple_sets.ipv6_tcp_en; in hclgevf_set_rss_input_tuple()
1024 req->ipv6_udp_en = rss_cfg->rss_tuple_sets.ipv6_udp_en; in hclgevf_set_rss_input_tuple()
1025 req->ipv6_sctp_en = rss_cfg->rss_tuple_sets.ipv6_sctp_en; in hclgevf_set_rss_input_tuple()
1026 req->ipv6_fragment_en = rss_cfg->rss_tuple_sets.ipv6_fragment_en; in hclgevf_set_rss_input_tuple()
1038 struct hclgevf_rss_cfg *rss_cfg = &hdev->rss_cfg; in hclgevf_get_tc_size() local
1040 return rss_cfg->rss_size; in hclgevf_get_tc_size()
2495 struct hclgevf_rss_cfg *rss_cfg = &hdev->rss_cfg; in hclgevf_rss_init_cfg() local
2499 rss_cfg->hash_algo = HCLGEVF_RSS_HASH_ALGO_TOEPLITZ; in hclgevf_rss_init_cfg()
2500 rss_cfg->rss_size = hdev->nic.kinfo.rss_size; in hclgevf_rss_init_cfg()
2501 tuple_sets = &rss_cfg->rss_tuple_sets; in hclgevf_rss_init_cfg()
2503 rss_cfg->hash_algo = HCLGEVF_RSS_HASH_ALGO_SIMPLE; in hclgevf_rss_init_cfg()
2504 memcpy(rss_cfg->rss_hash_key, hclgevf_hash_key, in hclgevf_rss_init_cfg()
2522 rss_cfg->rss_indirection_tbl[i] = i % rss_cfg->rss_size; in hclgevf_rss_init_cfg()
2527 struct hclgevf_rss_cfg *rss_cfg = &hdev->rss_cfg; in hclgevf_rss_init_hw() local
2531 ret = hclgevf_set_rss_algo_key(hdev, rss_cfg->hash_algo, in hclgevf_rss_init_hw()
2532 rss_cfg->rss_hash_key); in hclgevf_rss_init_hw()
2536 ret = hclgevf_set_rss_input_tuple(hdev, rss_cfg); in hclgevf_rss_init_hw()
2545 return hclgevf_set_rss_tc_mode(hdev, rss_cfg->rss_size); in hclgevf_rss_init_hw()
3440 hdev->rss_cfg.rss_size = kinfo->rss_size; in hclgevf_set_channels()