OSDN Git Service

net/mlx5e: Introduce abstraction of RSS context
authorTariq Toukan <tariqt@nvidia.com>
Sun, 15 Aug 2021 11:21:46 +0000 (14:21 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 16 Aug 2021 23:17:27 +0000 (16:17 -0700)
commit713ba5e5f6896cbdde7ddb339cd8b06eb7c7334a
tree32f85c8bef5c32173bb9cb17949582b16a0c1f4a
parentfc651ff9105adb44261774482380ee5f86ac24d9
net/mlx5e: Introduce abstraction of RSS context

Bring all fields that define and maintain RSS behavior together
into a new structure.
Align all usages with this new structure. Keep it hidden within
rx_res.c.
This helps supporting multiple RSS contexts in downstream patch.

Use dynamic allocations for the RSS context.

Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.c
drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.h
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c