diff options
author | Sudarsana Reddy Kalluru <sudarsana.kalluru@cavium.com> | 2016-10-21 04:43:39 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-22 17:08:06 -0400 |
commit | bdc8cbd34d5d9d82c3db4df6a182b0530040062d (patch) | |
tree | 84ac1d0a6610ab23e923964fd2ac1a7f1cc92c50 /drivers/net/ethernet | |
parent | 396a30cce15d084b2b1a395aa6d515c3d559c674 (diff) | |
download | linux-bdc8cbd34d5d9d82c3db4df6a182b0530040062d.tar.bz2 |
qede: get_channels() need to populate max tx/rx coalesce values
Recent changes in kernel ethtool implementation requires the driver
callback for get_channels() has to populate the values for max tx/rx
coalesce fields.
Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/qlogic/qede/qede_ethtool.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qede/qede_ethtool.c b/drivers/net/ethernet/qlogic/qede/qede_ethtool.c index 25a9b293ee8f..16a1a478a2bd 100644 --- a/drivers/net/ethernet/qlogic/qede/qede_ethtool.c +++ b/drivers/net/ethernet/qlogic/qede/qede_ethtool.c @@ -756,6 +756,8 @@ static void qede_get_channels(struct net_device *dev, struct qede_dev *edev = netdev_priv(dev); channels->max_combined = QEDE_MAX_RSS_CNT(edev); + channels->max_rx = QEDE_MAX_RSS_CNT(edev); + channels->max_tx = QEDE_MAX_RSS_CNT(edev); channels->combined_count = QEDE_QUEUE_CNT(edev) - edev->fp_num_tx - edev->fp_num_rx; channels->tx_count = edev->fp_num_tx; |