From: Netanel Belgazal Date: Tue, 17 Oct 2017 07:33:05 +0000 (+0000) Subject: net: ena: fix wrong max Tx/Rx queues on ethtool X-Git-Tag: v4.14-rc6~11^2~29^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a59df396768a7e37c6ddafeb9666a30c8ac07854;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/amazon/ena/ena_ethtool.c b/drivers/net/ethernet/amazon/ena/ena_ethtool.c index b1212de..967020f 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;