]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
net: hns3: VF should get the real rss_size instead of rss_size_max
[mirror_ubuntu-bionic-kernel.git] / drivers / net / ethernet / hisilicon / hns3 / hns3pf / hclge_mbx.c
index f38fc5ce9f5120f2897a9d5b707a75cb7d166d3d..31383a61d290c3ec43ac28a6432e370c6cef3338 100644 (file)
@@ -291,7 +291,7 @@ static int hclge_get_vf_queue_info(struct hclge_vport *vport,
 
        /* get the queue related info */
        memcpy(&resp_data[0], &vport->alloc_tqps, sizeof(u16));
-       memcpy(&resp_data[2], &hdev->rss_size_max, sizeof(u16));
+       memcpy(&resp_data[2], &vport->nic.kinfo.rss_size, sizeof(u16));
        memcpy(&resp_data[4], &hdev->num_desc, sizeof(u16));
        memcpy(&resp_data[6], &hdev->rx_buf_len, sizeof(u16));