[dpdk-dev] [PATCH] net/mlx4: fix last Tx wqe stamping lack
Thomas Monjalon
thomas at monjalon.net
Sat Nov 11 15:53:07 CET 2017
10/11/2017 16:02, Adrien Mazarguil:
> On Fri, Nov 10, 2017 at 08:27:18AM +0000, Matan Azrad wrote:
> > When Tx pakcet HW processing is done, SW should stamp all the completion
> > burst WQEs.
> >
> > Stamp missed last completion burst WQE.
> >
> > Fixes: c3c977bbecbd ("net/mlx4: add Tx bypassing Verbs")
> >
> > Signed-off-by: Matan Azrad <matan at mellanox.com>
>
> This reads like you were in a hurry :)
>
> Took me a while to understand the problem and how you addressed it. So in
> short, wqe_index is consumed but its TXBBs aren't stamped because the loop
> stops at its index without processing it.
>
> Patch looks good but could have been simpler by directly initializing
> nr_txbbs to sq->tail, not use sq->tail as an offset afterward and get rid of
> sq_tail. It's OK as this wouldn't have resulted in a smaller patch anyway.
>
> Commit log rewording suggestion:
>
> net/mlx4: fix missing stamp during Tx completion
>
> After processing completed packets, the owner bit of each TXBB comprised
> in its WQEs must be invalidated. The loop stops short of processing the
> last WQE.
>
> Other than that,
>
> Acked-by: Adrien Mazarguil <adrien.mazarguil at 6wind.com>
Applied with suggested commit log, thanks
More information about the dev
mailing list