From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 068A110BD7 for ; Wed, 21 Dec 2016 10:56:47 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP; 21 Dec 2016 01:56:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,382,1477983600"; d="scan'208";a="800804933" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.67.162]) by FMSMGA003.fm.intel.com with ESMTP; 21 Dec 2016 01:56:46 -0800 Date: Wed, 21 Dec 2016 17:58:36 +0800 From: Yuanhan Liu To: shahafs Cc: stable@dpdk.org Message-ID: <20161221095836.GW18991@yliu-dev.sh.intel.com> References: <1482310271-45009-1-git-send-email-shahafs@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1482310271-45009-1-git-send-email-shahafs@mellanox.com> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-stable] [PATCH] net/mlx5: fix send for multi segment packet X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2016 09:56:48 -0000 On Wed, Dec 21, 2016 at 10:51:11AM +0200, shahafs wrote: > Fixes: 2a66cf378954 ("net/mlx5: support inline send") > > CC: stable@dpdk.org > Signed-off-by: shahafs I didn't see you cc dev@dpdk.org. Is it a patch only for stable branch (v16.11 specifically)? And it will not apply to the current master? --yliu > --- > drivers/net/mlx5/mlx5_rxtx.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c > index b542e76..8b54651 100644 > --- a/drivers/net/mlx5/mlx5_rxtx.c > +++ b/drivers/net/mlx5/mlx5_rxtx.c > @@ -477,7 +477,7 @@ > assert(addr <= addr_end); > } > /* > - * 2 DWORDs consumed by the WQE header + 1 DSEG + > + * 2 DWORDs consumed by the WQE header + ETH segment + > * the size of the inline part of the packet. > */ > ds = 2 + MLX5_WQE_DS(pkt_inline_sz - 2); > @@ -492,6 +492,10 @@ > } else if (!segs_n) { > goto next_pkt; > } else { > + /* dseg will be advance as part of next_seg*/ > + dseg = (volatile rte_v128u32_t *) > + ((uintptr_t)wqe + > + ((ds-1) * MLX5_WQE_DWORD_SIZE)); > goto next_seg; > } > } else { > -- > 1.8.3.1