It should rarely be the case that we need to cleanup the descriptor ring mid-burst, so mark as unlikely to help performance.
Signed-off-by: Bruce Richardson <[email protected]> --- drivers/net/intel/common/tx_scalar.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/intel/common/tx_scalar.h b/drivers/net/intel/common/tx_scalar.h index 3e54cd7607..cee8f11c7f 100644 --- a/drivers/net/intel/common/tx_scalar.h +++ b/drivers/net/intel/common/tx_scalar.h @@ -266,7 +266,7 @@ ci_xmit_pkts(struct ci_tx_queue *txq, if (tx_last >= txq->nb_tx_desc) tx_last = (uint16_t)(tx_last - txq->nb_tx_desc); - if (nb_used > txq->nb_tx_free) { + if (unlikely(nb_used > txq->nb_tx_free)) { if (ci_tx_xmit_cleanup(txq) != 0) { if (nb_tx == 0) return 0; -- 2.51.0

