summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/tx_common.c
diff options
context:
space:
mode:
authorEdward Cree <ecree.xilinx@gmail.com>2024-09-30 15:52:44 +0200
committerDavid S. Miller <davem@davemloft.net>2024-10-06 17:02:23 +0200
commitdb3067c8aab6836004a985a4236e9825b34c4dd7 (patch)
treedaf7982df3aab85fff29f38ac0cd3b11a1dfb25e /drivers/net/ethernet/sfc/tx_common.c
parentsfc: implement per-queue rx drop and overrun stats (diff)
downloadlinux-db3067c8aab6836004a985a4236e9825b34c4dd7.tar.xz
linux-db3067c8aab6836004a985a4236e9825b34c4dd7.zip
sfc: implement per-queue TSO (hw_gso) stats
Use our existing TSO stats, which count enqueued TSO TXes. Users may expect them to count completions, as tx-packets and tx-bytes do; however, these are the counters we have, and the qstats documentation doesn't actually specify. Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Signed-off-by: Edward Cree <ecree.xilinx@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/sfc/tx_common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/tx_common.c b/drivers/net/ethernet/sfc/tx_common.c
index 2013a609f9be..a22a0d634ffc 100644
--- a/drivers/net/ethernet/sfc/tx_common.c
+++ b/drivers/net/ethernet/sfc/tx_common.c
@@ -88,6 +88,8 @@ void efx_init_tx_queue(struct efx_tx_queue *tx_queue)
tx_queue->old_complete_packets = tx_queue->complete_packets;
tx_queue->old_complete_bytes = tx_queue->complete_bytes;
+ tx_queue->old_tso_bursts = tx_queue->tso_bursts;
+ tx_queue->old_tso_packets = tx_queue->tso_packets;
tx_queue->xdp_tx = efx_channel_is_xdp_tx(tx_queue->channel);
tx_queue->tso_version = 0;