RE: [PATCH] net: mvneta: fix handling of the Tx descriptor counter

2017-11-20 Thread David Laight
..@vger.kernel.org > Subject: Re: [PATCH] net: mvneta: fix handling of the Tx descriptor counter > > On Mon, Nov 13, 2017 at 11:54:14PM +0900, David Miller wrote: > > From: Simon Guinot > > Date: Mon, 13 Nov 2017 15:51:15 +0100 > > > > > IIUC the driver s

Re: [PATCH] net: mvneta: fix handling of the Tx descriptor counter

2017-11-13 Thread Simon Guinot
On Mon, Nov 13, 2017 at 11:54:14PM +0900, David Miller wrote: > From: Simon Guinot > Date: Mon, 13 Nov 2017 15:51:15 +0100 > > > IIUC the driver stops the queue if a threshold of 316 Tx descriptors is > > reached (default and worst value). > > That's a lot of latency. OK, then I'll keep the "tx

Re: [PATCH] net: mvneta: fix handling of the Tx descriptor counter

2017-11-13 Thread David Miller
From: Simon Guinot Date: Mon, 13 Nov 2017 15:51:15 +0100 > IIUC the driver stops the queue if a threshold of 316 Tx descriptors is > reached (default and worst value). That's a lot of latency.

Re: [PATCH] net: mvneta: fix handling of the Tx descriptor counter

2017-11-13 Thread Simon Guinot
On Sat, Nov 11, 2017 at 06:45:04PM +0900, David Miller wrote: > From: Simon Guinot > Date: Wed, 8 Nov 2017 17:58:35 +0100 > > > @@ -2413,8 +2416,7 @@ static int mvneta_tx(struct sk_buff *skb, struct > > net_device *dev) > > if (txq->count >= txq->tx_stop_threshold) > >

Re: [PATCH] net: mvneta: fix handling of the Tx descriptor counter

2017-11-11 Thread David Miller
From: Simon Guinot Date: Wed, 8 Nov 2017 17:58:35 +0100 > @@ -2413,8 +2416,7 @@ static int mvneta_tx(struct sk_buff *skb, struct > net_device *dev) > if (txq->count >= txq->tx_stop_threshold) > netif_tx_stop_queue(nq); > > - if (!skb->xmit_more

Re: [PATCH] net: mvneta: fix handling of the Tx descriptor counter

2017-11-10 Thread Sven Müller
Hi Simon, Until now it seems to work. No issues so far. Regards and Thanks Sven Am Thu, 9 Nov 2017 20:19:42 +0100 schrieb Andreas Tobler : > Hi Simon, > > > On 08.11.17 18:17, Simon Guinot wrote: > > Hi Sven and Andreas, > > > > Please, can you try with this patch ? > > Today we, my

Re: [PATCH] net: mvneta: fix handling of the Tx descriptor counter

2017-11-09 Thread Andreas Tobler
Hi Simon, On 08.11.17 18:17, Simon Guinot wrote: Hi Sven and Andreas, Please, can you try with this patch ? Today we, my son and I, repeated the failing scenario and we were able to show that our scenario behaves stable after you patch being applied. Thanks for taking care of this issue.

Re: [PATCH] net: mvneta: fix handling of the Tx descriptor counter

2017-11-08 Thread Simon Guinot
Hi Sven and Andreas, Please, can you try with this patch ? Thanks. Simon On Wed, Nov 08, 2017 at 05:58:35PM +0100, Simon Guinot wrote: > The mvneta controller provides a 8-bit register to update the pending > Tx descriptor counter. Then, a maximum of 255 Tx descriptors can be > added at once. I

RE: [PATCH] net: mvneta: fix handling of the Tx descriptor counter

2017-11-08 Thread David Laight
From: Simon Guinot > Sent: 08 November 2017 16:59 > > The mvneta controller provides a 8-bit register to update the pending > Tx descriptor counter. Then, a maximum of 255 Tx descriptors can be > added at once. In the current code the mvneta_txq_pend_desc_add function > assumes the caller takes ca

[PATCH] net: mvneta: fix handling of the Tx descriptor counter

2017-11-08 Thread Simon Guinot
The mvneta controller provides a 8-bit register to update the pending Tx descriptor counter. Then, a maximum of 255 Tx descriptors can be added at once. In the current code the mvneta_txq_pend_desc_add function assumes the caller takes care of this limit. But it is not the case. In some situations