From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] net/mlx4: fix last Tx wqe stamping lack Date: Sat, 11 Nov 2017 15:53:07 +0100 Message-ID: <11709391.GH4dFWTqEr@xps> References: <1510302438-29138-1-git-send-email-matan@mellanox.com> <20171110150241.GI24849@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Ophir Munk , Moti Haimovsky , Olga Shern To: Adrien Mazarguil , Matan Azrad Return-path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id DCBEB1B1BC for ; Sat, 11 Nov 2017 15:53:09 +0100 (CET) In-Reply-To: <20171110150241.GI24849@6wind.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 > > 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 Applied with suggested commit log, thanks