Commit 4c58f592 authored by Jian Shen's avatar Jian Shen Committed by David S. Miller
Browse files

net: hns3: replace num_req_vfs with num_alloc_vport in hclge_reset_umv_space()



Like the calculation elsewhere, replaces num_req_vfs with
num_alloc_vport in hclge_reset_umv_space().

Signed-off-by: default avatarJian Shen <shenjian15@huawei.com>
Signed-off-by: default avatarHuazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c1c5f66e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7254,7 +7254,7 @@ static void hclge_reset_umv_space(struct hclge_dev *hdev)

	mutex_lock(&hdev->umv_mutex);
	hdev->share_umv_size = hdev->priv_umv_size +
			hdev->max_umv_size % (hdev->num_req_vfs + 2);
			hdev->max_umv_size % (hdev->num_alloc_vport + 1);
	mutex_unlock(&hdev->umv_mutex);
}