[PATCH v2 07/13] net/txgbe: add Tx descriptor error statistics

Jiawen Wu jiawenwu at trustnetic.com
Fri Nov 1 03:06:56 CET 2024


> > @@ -4980,6 +4982,7 @@ txgbe_tx_queue_clear_error(void *param)
> >  		if (!txq->resetting)
> >  			continue;
> >
> > +		txq->desc_error++;
> >
> 
> Why error value is increased in this function, which resets the Tx queue?
> Is the intention to reset the error value here?

When there is a desc error to cause Tx ring hang,  the interrupt directs to
reset of the queue. So we increase the error count in the specific queue
reset function. The queue is reset, but the error that led to the resetting
is recorded. The error count is only reset at the setup function.



More information about the dev mailing list