Commit 9a037b06 authored by Sameeh Jubran's avatar Sameeh Jubran Committed by David S. Miller

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: default avatarSameeh Jubran <sameehj@amazon.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4d192660
...@@ -734,14 +734,8 @@ static void ena_get_channels(struct net_device *netdev, ...@@ -734,14 +734,8 @@ static void ena_get_channels(struct net_device *netdev,
{ {
struct ena_adapter *adapter = netdev_priv(netdev); struct ena_adapter *adapter = netdev_priv(netdev);
channels->max_rx = adapter->num_io_queues; channels->max_combined = adapter->num_io_queues;
channels->max_tx = adapter->num_io_queues; channels->combined_count = 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;
} }
static int ena_get_tunable(struct net_device *netdev, static int ena_get_tunable(struct net_device *netdev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment