]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: fw_tracer, allow 0 size string DBs
authorShay Drory <shayd@nvidia.com>
Wed, 11 Jan 2023 11:44:31 +0000 (13:44 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 8 Feb 2023 00:29:56 +0000 (16:29 -0800)
commitb0118ced6b2e4c4d76083724cd4dba766333b3cd
treead0fdbc309f3485663e4b2a7224d93b3897eb0fd
parent988c2352273997a242f15c4fc3711773515006a2
net/mlx5: fw_tracer, allow 0 size string DBs

Device can expose string DB of size 0 which means this string DB is
currently not in use. Therefore, allow for 0 size string DBs.

Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c