sfc: Add per-queue statistics in ethtool
Implement per channel software TX and RX packet counters accessed as ethtool statistics. This allows confirmation with MAC statistics. Signed-off-by: Shradha Shah <sshah@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
87b200e11b
commit
8ccf3800db
@@ -452,6 +452,8 @@ finish_packet:
|
||||
/* Pass off to hardware */
|
||||
efx_nic_push_buffers(tx_queue);
|
||||
|
||||
tx_queue->tx_packets++;
|
||||
|
||||
efx_tx_maybe_stop_queue(tx_queue);
|
||||
|
||||
return NETDEV_TX_OK;
|
||||
@@ -1245,6 +1247,8 @@ static int tso_start_new_packet(struct efx_tx_queue *tx_queue,
|
||||
|
||||
++tx_queue->tso_packets;
|
||||
|
||||
++tx_queue->tx_packets;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user