Currently the values of WQs for RX and TX queues for MANA devices
are hardcoded to default sizes.
Allow configuring these values for MANA devices as ringparam
configuration(get/set) through ethtool_ops.
Signed-off-by: Shradha Gupta <shradhagupta@xxxxxxxxxxxxxxxxxxx>
Reviewed-by: Haiyang Zhang <haiyangz@xxxxxxxxxxxxx>
Reviewed-by: Long Li <longli@xxxxxxxxxxxxx>
---
Changes in v2:
* Removed unnecessary validations in mana_set_ringparam()
* Fixed codespell error
* Improved error message to indicate issue with the parameter
---
drivers/net/ethernet/microsoft/mana/mana_en.c | 20 +++---
.../ethernet/microsoft/mana/mana_ethtool.c | 66 +++++++++++++++++++
include/net/mana/mana.h | 21 +++++-
3 files changed, 96 insertions(+), 11 deletions(-)