mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-25 07:06:40 +08:00
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: Jian Shen <shenjian15@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c1c5f66ee0
commit
4c58f59247
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user