]> 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)
commit11ae0739c0b05a2535d7669181d1dd0935978600
tree617eaf4e1f126733bebe1138cdac836ccec5064f
parent2f8a54362cd3dc3bc76cbe92ef57da1ea552de5a
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]