summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/net_driver.h
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2013-04-27 01:55:21 +0100
committerBen Hutchings <bhutchings@solarflare.com>2013-08-27 22:28:47 +0100
commit02e121650b5e46ef3f2b3ed1ebc4b70e47799056 (patch)
treefff130923bf82cde0bc0359384edf2d4cd359967 /drivers/net/ethernet/sfc/net_driver.h
parent43a3739d559f02cb00d92a51d8f2a7d294a1b5e5 (diff)
downloadtalos-obmc-linux-02e121650b5e46ef3f2b3ed1ebc4b70e47799056.tar.gz
talos-obmc-linux-02e121650b5e46ef3f2b3ed1ebc4b70e47799056.zip
sfc: Add TX merged completion counter
Add a counter for TX merged completion events. This is implemented in the common TX path, because the NIC event handlers only know how many descriptors were completed, not how many packets. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/net_driver.h')
-rw-r--r--drivers/net/ethernet/sfc/net_driver.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/net_driver.h b/drivers/net/ethernet/sfc/net_driver.h
index 481e41219869..f52b38c1ef26 100644
--- a/drivers/net/ethernet/sfc/net_driver.h
+++ b/drivers/net/ethernet/sfc/net_driver.h
@@ -186,6 +186,7 @@ struct efx_tx_buffer {
* variable indicates that the queue is empty. This is to
* avoid cache-line ping-pong between the xmit path and the
* completion path.
+ * @merge_events: Number of TX merged completion events
* @insert_count: Current insert pointer
* This is the number of buffers that have been added to the
* software ring.
@@ -222,6 +223,7 @@ struct efx_tx_queue {
/* Members used mainly on the completion path */
unsigned int read_count ____cacheline_aligned_in_smp;
unsigned int old_write_count;
+ unsigned int merge_events;
/* Members used only on the xmit path */
unsigned int insert_count ____cacheline_aligned_in_smp;
OpenPOWER on IntegriCloud