i40e: Drop unused completed stat
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>
This commit is contained in:
committed by
Jeff Kirsher
parent
6d779b41f7
commit
c304fdac6c
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user