vdpa/mlx5: Enlarge queue size to 512 entries
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): CAJaqyWeOCs=QJkTU-GNYftgkbAk1XB=aLnJTxhJNMDh6_VaXsA@mail.gmail.com
Quoted 19 lines · Eugenio Perez Martin
Quoted 17 lines · Eli Cohen
Currently we can work with 512 entries with any MTU size. Change
MLX5_VDPA_MAX_VQ_ENTRIESaccordingly.Signed-off-by Eli Cohen <[email protected]>--- drivers/vdpa/mlx5/net/mlx5_vnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/vdpa/mlx5/net/mlx5_vnet.c +0
-0@@ -2062,7 +2062,7 @@ static void mlx5_vdpa_set_config_cb(struct vdpa_device *vdev, struct vdpa_callba ndev->config_cb = *cb; }
Quoted 2 lines
drivers/vdpa/mlx5/net/mlx5_vnet.c static void mlx5_vdpa_set_config_cb(struct vdpa_device *vdev, struct vdpa_callba · line 2065
Quoted 2 lines
drivers/vdpa/mlx5/net/mlx5_vnet.c +1
-1-#define MLX5_VDPA_MAX_VQ_ENTRIES 256 +#define MLX5_VDPA_MAX_VQ_ENTRIES 512
I'd expect this should be something that can be read from the fw or hw? Otherwise we can't increase it in the future.
Thanks
Quoted 9 lines
Quoted 6 lines
drivers/vdpa/mlx5/net/mlx5_vnet.c +0
-1static u16 mlx5_vdpa_get_vq_num_max (struct vdpa_device *vdev) {return MLX5_VDPA_MAX_VQ_ENTRIES ; --2.35.1
Acked-by Eugenio Pérez <[email protected]>
_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
A message that is not in the archive (sent off-list or not yet received): [email protected]
Jason Wang
Acked-byQuoted 30 lines · Eli Cohen
Quoted 21 lines · Jason Wang
Quoted 19 lines · Eugenio Perez Martin
Quoted 17 lines · Eli Cohen
Currently we can work with 512 entries with any MTU size. Change
MLX5_VDPA_MAX_VQ_ENTRIESaccordingly.Signed-off-by Eli Cohen <[email protected]>--- drivers/vdpa/mlx5/net/mlx5_vnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/vdpa/mlx5/net/mlx5_vnet.c +0
-0@@ -2062,7 +2062,7 @@ static void mlx5_vdpa_set_config_cb(struct vdpa_device *vdev, struct vdpa_callba ndev->config_cb = *cb; }Quoted 6 lines
Quoted 2 lines
drivers/vdpa/mlx5/net/mlx5_vnet.c static void mlx5_vdpa_set_config_cb(struct vdpa_device *vdev, struct vdpa_callba · line 2065
Quoted 2 lines
drivers/vdpa/mlx5/net/mlx5_vnet.c +1
-1-#define MLX5_VDPA_MAX_VQ_ENTRIES 256 +#define MLX5_VDPA_MAX_VQ_ENTRIES 512I'd expect this should be something that can be read from the fw or hw? Otherwise we can't increase it in the future.
Quoted 5 lines
We do read all the required parameters from firmware in order to fulfill any valid value up to the spec defined limit of 32K entries. But, there are FW related issues that with 9K MTU we will start seeing firmware errors if we go beyond 512. So I thought it would be better to increase number of entries to a safe value till we have other issues resolved.
I see.
So
Quoted 10 lines
Quoted 10 lines
Thanks
Quoted 7 lines
Quoted 6 lines
drivers/vdpa/mlx5/net/mlx5_vnet.c +0
-1static u16 mlx5_vdpa_get_vq_num_max (struct vdpa_device *vdev) {return MLX5_VDPA_MAX_VQ_ENTRIES ; --2.35.1
Quoted 4 lines
Quoted 3 lines
Quoted 2 lines
Acked-by Eugenio Pérez <[email protected]>
_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization