]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix condition when retrieving PTP-rqn
authorAya Levin <ayal@nvidia.com>
Sun, 29 Aug 2021 10:41:08 +0000 (13:41 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 7 Sep 2021 21:17:02 +0000 (14:17 -0700)
commitc105c20e13644f704c24429bac82970813faea70
treea9be6b12ca2096c2e97d7aff502d905bd18f49cf
parent20342eb5bfe89e5263be6ec83b312f8a7ce5bfca
net/mlx5e: Fix condition when retrieving PTP-rqn

When activating the PTP-RQ, redirect the RQT from drop-RQ to PTP-RQ.
Use mlx5e_channels_get_ptp_rqn to retrieve the rqn. This helper returns
a boolean (not status), hence caller should consider return value 0 as a
fail. Change the caller interpretation of the return value.

Fixes: edc0094ca2ac ("net/mlx5e: Hide all implementation details of mlx5e_rx_res")
Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.c