]> 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)
commit01a7886ccb7c5f1b8dd9129dc0886a15177cdac2
treea9be6b12ca2096c2e97d7aff502d905bd18f49cf
parent5907bb1dce7aaacdfd28364eb54e8c155a7c3855
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: a1df0496d359 ("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