diff options
author | Netanel Belgazal <netanel@amazon.com> | 2017-10-17 07:33:05 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-19 12:49:15 +0100 |
commit | a59df396768a7e37c6ddafeb9666a30c8ac07854 (patch) | |
tree | a5c968c36b127bc732c83f28584dccf076db9c42 /drivers | |
parent | 411838e7b41c52cf4afa51929cec54c2162472ff (diff) | |
download | linux-exynos-a59df396768a7e37c6ddafeb9666a30c8ac07854.tar.gz linux-exynos-a59df396768a7e37c6ddafeb9666a30c8ac07854.tar.bz2 linux-exynos-a59df396768a7e37c6ddafeb9666a30c8ac07854.zip |
net: ena: fix wrong max Tx/Rx queues on ethtool
ethtool ena_get_channels() expose the max number of queues as the max
number of queues ENA supports (128 queues) and not the actual number
of created queues.
Signed-off-by: Netanel Belgazal <netanel@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/amazon/ena/ena_ethtool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/amazon/ena/ena_ethtool.c b/drivers/net/ethernet/amazon/ena/ena_ethtool.c index b1212debc2e1..967020fb26ee 100644 --- a/drivers/net/ethernet/amazon/ena/ena_ethtool.c +++ b/drivers/net/ethernet/amazon/ena/ena_ethtool.c @@ -742,8 +742,8 @@ static void ena_get_channels(struct net_device *netdev, { struct ena_adapter *adapter = netdev_priv(netdev); - channels->max_rx = ENA_MAX_NUM_IO_QUEUES; - channels->max_tx = ENA_MAX_NUM_IO_QUEUES; + channels->max_rx = adapter->num_queues; + channels->max_tx = adapter->num_queues; channels->max_other = 0; channels->max_combined = 0; channels->rx_count = adapter->num_queues; |