diff options
author | Peng Li <lipeng321@huawei.com> | 2018-03-08 19:41:50 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-08 11:23:36 -0500 |
commit | f5e084b82783baca0df3c0d27bda2926ceaa1caa (patch) | |
tree | 2e063ee9f7f2c8c0d9eca3ec25fa8cac92a32ece | |
parent | 67ae686b3e1422a819500f35152cdd74f6dab6ce (diff) | |
download | linux-f5e084b82783baca0df3c0d27bda2926ceaa1caa.tar.bz2 |
net: hns3: VF should get the real rss_size instead of rss_size_max
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>
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c index f38fc5ce9f51..31383a61d290 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c @@ -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)); |