]> www.infradead.org Git - users/willy/xarray.git/commit
net/mlx5e: Generalize open RQ
authorAya Levin <ayal@nvidia.com>
Sun, 7 Mar 2021 13:29:53 +0000 (15:29 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 26 Mar 2021 02:50:01 +0000 (19:50 -0700)
commit869c5f9262476aba305082c0a2365847838b2d57
treeb74211737d715a502c42038cc94e9b95108f60be
parent183532b77ddcb90002ff49713f5af08725f71b4c
net/mlx5e: Generalize open RQ

Unify RQ creation for different RQ types. For each RQ type add a
separate open helper which initializes the RQ specific values and
trigger a call for generic open RQ function. Avoid passing the
mlx5e_channel pointer to the generic open RQ as a container, since the
RQ may reside under a different type of channel.

Signed-off-by: Aya Levin <ayal@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en/trap.c
drivers/net/ethernet/mellanox/mlx5/core/en/xsk/setup.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c