Skip to content

Commit a7f9919

Browse files
Gerhard Englederdavem330
authored andcommitted
tsnep: Fix ethtool channels
According to the NAPI documentation networking/napi.rst, for the ethtool API a channel is a IRQ/NAPI which services queues of a given type. tsnep uses a single IRQ/NAPI instance for every TX/RX queue pair. Therefore, combined channels shall be returned instead of separate tx/rx channels. Signed-off-by: Gerhard Engleder <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ea852c1 commit a7f9919

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/net/ethernet/engleder/tsnep_ethtool.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,8 @@ static void tsnep_ethtool_get_channels(struct net_device *netdev,
300300
{
301301
struct tsnep_adapter *adapter = netdev_priv(netdev);
302302

303-
ch->max_rx = adapter->num_rx_queues;
304-
ch->max_tx = adapter->num_tx_queues;
305-
ch->rx_count = adapter->num_rx_queues;
306-
ch->tx_count = adapter->num_tx_queues;
303+
ch->max_combined = adapter->num_queues;
304+
ch->combined_count = adapter->num_queues;
307305
}
308306

309307
static int tsnep_ethtool_get_ts_info(struct net_device *netdev,

0 commit comments

Comments
 (0)