summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorSameeh Jubran <sameehj@amazon.com>2019-10-06 15:33:25 +0300
committerDavid S. Miller <davem@davemloft.net>2019-10-07 09:30:03 -0400
commit9a037b06137b46bea6ed2fade2537cb820c1fd7c (patch)
treeb5ef7369121eae238881e240adff92167b6afd3b /drivers/net
parent4d19266022ec4814add8d5f02f49cb493294c674 (diff)
downloadlinux-9a037b06137b46bea6ed2fade2537cb820c1fd7c.tar.bz2
net: ena: ethtool: get_channels: use combined only
Since we use the same IRQ and NAPI to service RX and TX then we need to use a combined channel instead of rx and tx channels. Signed-off-by: Sameeh Jubran <sameehj@amazon.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/amazon/ena/ena_ethtool.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/net/ethernet/amazon/ena/ena_ethtool.c b/drivers/net/ethernet/amazon/ena/ena_ethtool.c
index 3ad661fd986c..03b4ae7baf01 100644
--- a/drivers/net/ethernet/amazon/ena/ena_ethtool.c
+++ b/drivers/net/ethernet/amazon/ena/ena_ethtool.c
@@ -734,14 +734,8 @@ static void ena_get_channels(struct net_device *netdev,
{
struct ena_adapter *adapter = netdev_priv(netdev);
- channels->max_rx = adapter->num_io_queues;
- channels->max_tx = adapter->num_io_queues;
- channels->max_other = 0;
- channels->max_combined = 0;
- channels->rx_count = adapter->num_io_queues;
- channels->tx_count = adapter->num_io_queues;
- channels->other_count = 0;
- channels->combined_count = 0;
+ channels->max_combined = adapter->num_io_queues;
+ channels->combined_count = adapter->num_io_queues;
}
static int ena_get_tunable(struct net_device *netdev,