]> asedeno.scripts.mit.edu Git - linux.git/commit
net/mlx5e: Remove RQ MPWQE fields from params
authorTariq Toukan <tariqt@mellanox.com>
Wed, 7 Feb 2018 11:21:30 +0000 (13:21 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 28 Mar 2018 00:17:27 +0000 (17:17 -0700)
commitf1e4fc9b4b02ec728b06ad09d6cdf5a9bb7ec372
treec04f392c4d7e9625d59e6439326ea9459675f2b9
parent24fd07abfa3584b91f65002956d3d5a5db169185
net/mlx5e: Remove RQ MPWQE fields from params

Introduce functions to calculate them when needed.
They can be derived from other params.
This will simplify transition between RQ configurations.

In general, any parameter that is not explicitly set
or controlled, but derived from other parameters,
should not have a control-path field itself, but a
getter function.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c