i40e: Drop unused completed stat
authorAlexander Duyck <alexander.h.duyck@intel.com>
Sat, 28 Sep 2013 06:00:12 +0000 (06:00 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 10 Oct 2013 04:05:10 +0000 (21:05 -0700)
The Tx "completed" stat was part of the original rewrite for detecting
Tx hangs.  However some time ago in ixgbe I determined that we could
just use the packets stat instead.  Since then this stat was
removed from ixgbe and it serves no purpose in i40e so it can be
dropped.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_debugfs.c
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/i40e/i40e_txrx.h

index 8dbd91f64b74d815fff682c6fe07570182e3182c..0b01c61f70c22094174629b876e1ab7fa5db64de 100644 (file)
@@ -560,10 +560,9 @@ static void i40e_dbg_dump_vsi_seid(struct i40e_pf *pf, int seid)
                                 vsi->tx_rings[i].tx_stats.bytes,
                                 vsi->tx_rings[i].tx_stats.restart_queue);
                        dev_info(&pf->pdev->dev,
-                                "    tx_rings[%i]: tx_stats: tx_busy = %lld, completed = %lld, tx_done_old = %lld\n",
+                                "    tx_rings[%i]: tx_stats: tx_busy = %lld, tx_done_old = %lld\n",
                                 i,
                                 vsi->tx_rings[i].tx_stats.tx_busy,
-                                vsi->tx_rings[i].tx_stats.completed,
                                 vsi->tx_rings[i].tx_stats.tx_done_old);
                        dev_info(&pf->pdev->dev,
                                 "    tx_rings[%i]: size = %i, dma = 0x%08lx\n",
index 49d2cfa9b0cceb20c5b5f3f6d64cac1968398b60..32c9aebcb575446c69a7f3971ceefeff769a670f 100644 (file)
@@ -346,8 +346,7 @@ static bool i40e_clean_tx_irq(struct i40e_ring *tx_ring, int budget)
                      cpu_to_le64(I40E_TX_DESC_DTYPE_DESC_DONE)))
                        break;
 
-               /* count the packet as being completed */
-               tx_ring->tx_stats.completed++;
+               /* clear next_to_watch to prevent false hangs */
                tx_buf->next_to_watch = NULL;
                tx_buf->time_stamp = 0;
 
index b1d7722d98a7fc4cd217d43cae627895f5baa5f6..2fbacaff0445e8c7f6fcefa9d963e6e61dc7f67f 100644 (file)
@@ -134,7 +134,6 @@ struct i40e_tx_queue_stats {
        u64 bytes;
        u64 restart_queue;
        u64 tx_busy;
-       u64 completed;
        u64 tx_done_old;
 };