summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hnae3.h
diff options
context:
space:
mode:
authorEli Cohen <elic@nvidia.com>2022-01-11 19:34:00 +0100
committerMichael S. Tsirkin <mst@redhat.com>2022-01-15 00:50:54 +0100
commitb03fc43e73877e180c1803a33aea3e7396642367 (patch)
tree8622b8006af8562f26b266e0229b4f554348f983 /drivers/net/ethernet/hisilicon/hns3/hnae3.h
parentvdpa/mlx5: Fix is_index_valid() to refer to features (diff)
downloadlinux-b03fc43e73877e180c1803a33aea3e7396642367.tar.xz
linux-b03fc43e73877e180c1803a33aea3e7396642367.zip
vdpa/mlx5: Fix tracking of current number of VQs
Modify the code such that ndev->cur_num_vqs better reflects the actual number of data virtqueues. The value can be accurately realized after features have been negotiated. This is to prevent possible failures when modifying the RQT object if the cur_num_vqs bears invalid value. No issue was actually encountered but this also makes the code more readable. Fixes: c5a5cd3d3217 ("vdpa/mlx5: Support configuring max data virtqueue") Signed-off-by: Eli Cohen <elic@nvidia.com> Link: https://lore.kernel.org/r/20220111183400.38418-5-elic@nvidia.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Si-Wei Liu<si-wei.liu@oracle.com> Acked-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hnae3.h')
0 files changed, 0 insertions, 0 deletions