OSDN Git Service

net/mlx5: Check DTOR entry value is not zero
authorMoshe Shemesh <moshe@nvidia.com>
Wed, 14 Jun 2023 03:47:58 +0000 (06:47 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 16 Jun 2023 19:02:06 +0000 (12:02 -0700)
commit6f8551f8d9e44894ea9ca0748b5523767d7aeacb
treef853ae8cbe5c9ff3d594fe9e7c2f8e873974d2be
parent8bb42ed4210e342631f63d32f7ed87b722968da6
net/mlx5: Check DTOR entry value is not zero

The Default Timeout Register (DTOR) provides timeout values to driver
for flows that are device dependent. Zero value for DTOR entry is not
valid and should not be used. In case of reading zero value from DTOR,
the driver should use the hard coded SW default value instead.

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/lib/tout.c