Skip to content

Commit

Permalink
net: ena: ethtool: get_channels: use combined only
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sameeh Jubran authored and David S. Miller committed Oct 7, 2019
1 parent 4d19266 commit 9a037b0
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions drivers/net/ethernet/amazon/ena/ena_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9a037b0

Please sign in to comment.