> -----Original Message----- > From: Ferruh Yigit <[email protected]> > Sent: Friday, November 1, 2024 10:46 AM > To: Jiawen Wu <[email protected]>; [email protected] > Subject: Re: [PATCH v2 07/13] net/txgbe: add Tx descriptor error statistics > > On 11/1/2024 2:06 AM, Jiawen Wu wrote: > >>> @@ -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. > > > > Got it. But this variable counts number of bad packets. Increasing it > when Tx ring hang too may be confusing as there are two different > reasons to increase the counter. I think I should add a comment here: /* Increase the count of Tx desc error since it causes the queue reset. */ > Btw, .stats_reset() needs to reset this error stat. I'll add it into .stats_reset() in patch set v3.
- [PATCH 13/13] net/ngbe: restrict configuration of VLAN s... Jiawen Wu
- [PATCH v2 00/13] Wangxun fixes Jiawen Wu
- [PATCH v2 04/13] net/txgbe: fix driver load bit to ... Jiawen Wu
- [PATCH v2 03/13] net/txgbe: remove outer UDP checks... Jiawen Wu
- [PATCH v2 08/13] net/ngbe: check length of Tx packe... Jiawen Wu
- [PATCH v2 09/13] net/ngbe: add Tx descriptor error ... Jiawen Wu
- [PATCH v2 07/13] net/txgbe: add Tx descriptor error... Jiawen Wu
- Re: [PATCH v2 07/13] net/txgbe: add Tx descript... Ferruh Yigit
- RE: [PATCH v2 07/13] net/txgbe: add Tx desc... Jiawen Wu
- Re: [PATCH v2 07/13] net/txgbe: add Tx ... Ferruh Yigit
- RE: [PATCH v2 07/13] net/txgbe: ad... Jiawen Wu
- [PATCH v2 10/13] net/ngbe: fix driver load bit to i... Jiawen Wu
- [PATCH v2 11/13] net/ngbe: reconfigure more MAC Rx ... Jiawen Wu
- [PATCH v2 06/13] net/txgbe: check length of Tx pack... Jiawen Wu
- Re: [PATCH v2 06/13] net/txgbe: check length of... Ferruh Yigit
- RE: [PATCH v2 06/13] net/txgbe: check lengt... Jiawen Wu
- Re: [PATCH v2 06/13] net/txgbe: check l... Ferruh Yigit
- Re: [PATCH v2 06/13] net/txgbe: check lengt... Stephen Hemminger
- Re: [PATCH v2 06/13] net/txgbe: check l... Ferruh Yigit
- [PATCH v2 05/13] net/txgbe: enable Tx descriptor er... Jiawen Wu
- [PATCH v2 12/13] net/ngbe: fix interrupt lost in le... Jiawen Wu

