]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
net: hns3: VF should get the real rss_size instead of rss_size_max
authorPeng Li <lipeng321@huawei.com>
Thu, 8 Mar 2018 11:41:50 +0000 (19:41 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Jun 2018 18:39:57 +0000 (14:39 -0400)
BugLink: https://bugs.launchpad.net/bugs/1768670
VF driver should get the real rss_size which is assigned
by host PF, not rss_size_max.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit f5e084b82783baca0df3c0d27bda2926ceaa1caa)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
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));