]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Introduce mlx5e_channels API to get RQNs
authorMaxim Mikityanskiy <maximmi@nvidia.com>
Fri, 9 Apr 2021 14:31:09 +0000 (17:31 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 3 Aug 2021 02:26:24 +0000 (19:26 -0700)
commit33d5e758bf116980746a3d6846d41969dfc45611
tree617eaf4e1f126733bebe1138cdac836ccec5064f
parent82daea1efb1db59297f3a59890c709e74577c073
net/mlx5e: Introduce mlx5e_channels API to get RQNs

Currently, struct mlx5e_channels is defined in en.h, along with a lot of
other stuff. In the following commit mlx5e_rx_res will need to get RQNs
(RQ hardware IDs), given a pointer to mlx5e_channels and the channel
index. In order to make it possible without including the whole en.h,
this commit introduces functions that will hide the implementation
details of mlx5e_channels.

Signed-off-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/Makefile
drivers/net/ethernet/mellanox/mlx5/core/en/channels.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/en/channels.h [new file with mode: 0644]