]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix ethtool rxfh commands when CONFIG_MLX5_EN_RXNFC is disabled
authorSaeed Mahameed <saeedm@mellanox.com>
Tue, 7 May 2019 19:59:38 +0000 (12:59 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 17 May 2019 20:16:48 +0000 (13:16 -0700)
commitb043b3af006322410cd1800dd89f8d3c73c6d709
treec167bf9f9f9f1644eae53b8901a7a6cfde6c8567
parentf9d9c328ce4825b585588ad637768364997c8fd9
net/mlx5e: Fix ethtool rxfh commands when CONFIG_MLX5_EN_RXNFC is disabled

ethtool user spaces needs to know ring count via ETHTOOL_GRXRINGS when
executing (ethtool -x) which is retrieved via ethtool get_rxnfc callback,
in mlx5 this callback is disabled when CONFIG_MLX5_EN_RXNFC=n.

This patch allows only ETHTOOL_GRXRINGS command on mlx5e_get_rxnfc() when
CONFIG_MLX5_EN_RXNFC is disabled, so ethtool -x will continue working.

Fixes: 7a535993d184 ("net/mlx5e: Add CONFIG_MLX5_EN_RXNFC for ethtool rx nfc")
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c