From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10049.outbound.protection.outlook.com [40.107.1.49]) by dpdk.org (Postfix) with ESMTP id 3F08710C1B for ; Wed, 21 Dec 2016 14:04:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=rJKcNGL8LR44JKPyniy9Aw9iTotnMQuJu6dhhmJ4rag=; b=i4AqnlzeqIIlsvpddffE+55w1eHuu7QJrRnrPt61qPjiaEfkJNXQsVDRoNlkvHngrIYRApnMyU8kGYm35u81KZJCG40CuyznLSQySbLxR7VNEo+LE0LcOXLy6iKNZWhKgU5bQOnRNpXRtVUhefrINY/WBu6AZ8PCIEfMLc19UhI= Received: from AM4PR05MB1505.eurprd05.prod.outlook.com (10.164.79.147) by AM4PR05MB1507.eurprd05.prod.outlook.com (10.164.79.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.11; Wed, 21 Dec 2016 13:04:55 +0000 Received: from AM4PR05MB1505.eurprd05.prod.outlook.com ([10.164.79.147]) by AM4PR05MB1505.eurprd05.prod.outlook.com ([10.164.79.147]) with mapi id 15.01.0803.013; Wed, 21 Dec 2016 13:04:55 +0000 From: Shahaf Shuler To: Yuanhan Liu CC: "stable@dpdk.org" Thread-Topic: [dpdk-stable] [PATCH] net/mlx5: fix send for multi segment packet Thread-Index: AQHSW284bIKCr+K5tkuw8dyZiK0HsqESKrkAgAAcEBA= Date: Wed, 21 Dec 2016 13:04:55 +0000 Message-ID: References: <1482310271-45009-1-git-send-email-shahafs@mellanox.com> <20161221095836.GW18991@yliu-dev.sh.intel.com> In-Reply-To: <20161221095836.GW18991@yliu-dev.sh.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; x-originating-ip: [31.154.10.107] x-ms-office365-filtering-correlation-id: 8f5736b4-7a48-4e6d-1ccb-08d429a1f601 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:AM4PR05MB1507; x-microsoft-exchange-diagnostics: 1; AM4PR05MB1507; 7:ui/rdSv254eqeKXK1tV4ayvEIVrMduLIcuUUOcFYXVedHvDZqLsxC8cGfolT05ZUle8/EkmUrey6DEOjuf9yR9QxIA3Qx1Os3goIPG3q4PKj4rnIqoNTLiuG4VHHpBVeHosPMu7EZV0P1OLtJpmYM9qQb+kofU5XtWZ3uno6y+m32TTI9MkNOGe7clsbd9HxOot8mNcixKxcG7iZZJP3Wr1DslklDeqzbQWx2RXRkXpQJ24nsVh+XNL5R6rem/FLeFPIWOxKDgVukJF91/AOcio+6YtuLXnr7Vcx48HpqxJEyCn8zMB0C6lcWjLVGW/rGrvBBHlnutGUabi/cS/idP6ahT6a0gzo4W7V8f7xQzCMyWrLb+9BC5e4miqDsq8O1Cylo1GG2asho2fgiUpDUfhE4K0zRvICDfL6u+/ybInOMJcVYYcWQwAXjHzL2BstlvDU3qoDn0AmtSC9gMN+8Q== x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123560025)(20161123564025)(20161123562025)(20161123555025)(6072148); SRVR:AM4PR05MB1507; BCL:0; PCL:0; RULEID:; SRVR:AM4PR05MB1507; x-forefront-prvs: 01630974C0 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39850400002)(39860400002)(39840400002)(39410400002)(39450400003)(24454002)(13464003)(189002)(199003)(377454003)(305945005)(6436002)(74316002)(7736002)(189998001)(2900100001)(92566002)(66066001)(97736004)(5660300001)(6506006)(38730400001)(81156014)(110136003)(81166006)(229853002)(77096006)(8936002)(7696004)(105586002)(102836003)(3846002)(6116002)(101416001)(122556002)(6916009)(2950100002)(76576001)(76176999)(50986999)(3660700001)(25786008)(86362001)(54356999)(33656002)(106356001)(2906002)(9686002)(106116001)(3280700002)(4326007)(68736007)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB1507; H:AM4PR05MB1505.eurprd05.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Dec 2016 13:04:55.8863 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB1507 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 13:04:57 -0000 This commit was sent early by a mistake the correct patch will be submitted at dev@dpdk.org with a copy for stable@= dpdk.org --Shahaf -----Original Message----- From: Yuanhan Liu [mailto:yuanhan.liu@linux.intel.com]=20 Sent: Wednesday, December 21, 2016 11:59 AM To: Shahaf Shuler Cc: stable@dpdk.org Subject: Re: [dpdk-stable] [PATCH] net/mlx5: fix send for multi segment pac= ket On Wed, Dec 21, 2016 at 10:51:11AM +0200, shahafs wrote: > Fixes: 2a66cf378954 ("net/mlx5: support inline send") >=20 > 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(-) >=20 > diff --git a/drivers/net/mlx5/mlx5_rxtx.c=20 > 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 <=3D 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 =3D 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 =3D (volatile rte_v128u32_t *) > + ((uintptr_t)wqe + > + ((ds-1) * MLX5_WQE_DWORD_SIZE)); > goto next_seg; > } > } else { > -- > 1.8.3.1