[PATCH net-next 01/23] {topost} net: hns3: VF should get the real rss_size instead of rss_size_max

2018-03-07 Thread Peng Li
VF driver should get the real rss_size which is assigned
by host PF, not rss_size_max.

Signed-off-by: Peng Li 
---
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c 
b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
index f38fc5c..31383a6 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(_data[0], >alloc_tqps, sizeof(u16));
-   memcpy(_data[2], >rss_size_max, sizeof(u16));
+   memcpy(_data[2], >nic.kinfo.rss_size, sizeof(u16));
memcpy(_data[4], >num_desc, sizeof(u16));
memcpy(_data[6], >rx_buf_len, sizeof(u16));
 
-- 
2.9.3



[PATCH net-next 01/23] {topost} net: hns3: VF should get the real rss_size instead of rss_size_max

2018-03-07 Thread Peng Li
VF driver should get the real rss_size which is assigned
by host PF, not rss_size_max.

Signed-off-by: Peng Li 
---
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c 
b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
index f38fc5c..31383a6 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(_data[0], >alloc_tqps, sizeof(u16));
-   memcpy(_data[2], >rss_size_max, sizeof(u16));
+   memcpy(_data[2], >nic.kinfo.rss_size, sizeof(u16));
memcpy(_data[4], >num_desc, sizeof(u16));
memcpy(_data[6], >rx_buf_len, sizeof(u16));
 
-- 
2.9.3