Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5e084b8 authored by Peng Li's avatar Peng Li Committed by David S. Miller
Browse files

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: default avatarPeng Li <lipeng321@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 67ae686b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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));