From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0073.outbound.protection.outlook.com [104.47.1.73]) by dpdk.org (Postfix) with ESMTP id E48AE1B9ED; Thu, 26 Oct 2017 07:48:35 +0200 (CEST) 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=Lkqv5ebt2byHPd0DFFXS/3fCp6KcWya5b7pNsMk00as=; b=gFqm2iH6EXjVQGln50VLH6B0i4DlM3IrwN8yDlf1kR23oJVSmr5fZo3JjA3ryuzJD9VS38ZKBY3PZqgyn6qXK1OrHzsPs5Y5sXXqAso8Fe4aYYvbauYi7yI4kUCDEv7AkrBIhp8hf6wEgAmrFYY5HedG1bDoIymtcP0G3srrlp4= Received: from VI1PR05MB3149.eurprd05.prod.outlook.com (10.170.237.142) by AM6PR0502MB3815.eurprd05.prod.outlook.com (52.133.21.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.178.6; Thu, 26 Oct 2017 05:48:34 +0000 Received: from VI1PR05MB3149.eurprd05.prod.outlook.com ([fe80::3c3c:8f27:30a1:cd59]) by VI1PR05MB3149.eurprd05.prod.outlook.com ([fe80::3c3c:8f27:30a1:cd59%13]) with mapi id 15.20.0077.023; Thu, 26 Oct 2017 05:48:34 +0000 From: Shahaf Shuler To: Yongseok Koh , Adrien Mazarguil , =?iso-8859-1?Q?N=E9lio_Laranjeiro?= CC: "dev@dpdk.org" , Yongseok Koh , "stable@dpdk.org" , Shachar Beiser Thread-Topic: [dpdk-stable] [PATCH] net/mlx5: fix TSO inline size calculation Thread-Index: AQHTTelQFUsPva+m1keemTCT3Ji4F6L1oBtQ Date: Thu, 26 Oct 2017 05:48:34 +0000 Message-ID: References: <20171025233040.16911-1-yskoh@mellanox.com> In-Reply-To: <20171025233040.16911-1-yskoh@mellanox.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: [193.47.165.251] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM6PR0502MB3815; 6:q29Re25ftq9KqB+TULGOJ+0neIkgs5CK24YtL2Cbv2KYZx9UjWSunHApJwxfWSb8GVtEvzXpdTjPnjDfBUUAbUxIlqUmTZEnQ3qmK/qzJNN5qiAICYYA7Mia/6qVTzV+rd6RbZzC6FPXBEfyX6v2iNQVDsDjvyFb9Q90oHNJyIJBciSb0cwjFUTVwGuJ+Q1gR94y0bvY06QAWW1q/Quh6/Ix+TatboRyMQ1+4jfHc1+YrN8kB244rzPY+95nOW9tpcl4+VJLwtq5YBWWEAYU33pLbIj8d6ZO+Q4tN9wiVOjACBx2cAsopfMuHMN1h8KHXT+51p5aRkASQwSJCZ63/4zIUna+q+fcpCFCQaOfYzY=; 5:MSSUKIaL8KANxtiZls6NKV9j8F8bmGqTGFSHoimlIcsmFzO6yRX7+cNHTGZ9yUswUS2ZVHWz+FPZLXPs+SIawPD6+J6YgQ/bGtPtVh4+xTZvYFSzde/byexibId4lvth/c/SmZ+dd8ieJknVrZf6qb3dr0JQMmbJ+OiXii5T7y8=; 24:XsCgRmWcmUmbYghfe5MER2GUGz6Oh+k13HOw1wkgB8KGkfCJHvlf7OEZItqSmn/sWxo6kdSFwkuWwn+yyHfrPtNP5cn6U/AdYOZlK4tMIdg=; 7:koZXgf4LqSRGlkTx6st7DS2QnP/t4Ri3eV1PTxComRD3fZk4utN1om7JUd5nJ6Wf8DK6QiW6OWEaSsFvfKLOe2i1CBXcntV/eBZ72OInMckq8IcNoNMBAEzJXB9KC98SEMl4eBAtQJFMcwF0Ipf/BthBGpdBL+El9yzjdqj6tO0RJqAuhJRKlgUXKIM/PyRjHw81cFuWuEyo9S/ZdQotvCHnHbfIXtECDxKDyGKVJ9OvLlkD41Gj9Izbu8z1eqsA x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 5b5651cd-3e64-453b-e0fd-08d51c353232 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(4534020)(4602075)(4627075)(201703031133081)(201702281549075)(2017052603199); SRVR:AM6PR0502MB3815; x-ms-traffictypediagnostic: AM6PR0502MB3815: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-exchange-antispam-report-test: UriScan:(788757137089); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(93006095)(93001095)(100000703101)(100105400095)(3231020)(3002001)(10201501046)(6055026)(6041248)(20161123560025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM6PR0502MB3815; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM6PR0502MB3815; x-forefront-prvs: 04724A515E x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(39860400002)(199003)(189002)(81156014)(105586002)(106356001)(6436002)(6246003)(14454004)(9686003)(99286003)(53936002)(4326008)(3846002)(6116002)(8936002)(102836003)(101416001)(2950100002)(68736007)(33656002)(2906002)(189998001)(107886003)(3280700002)(81166006)(7696004)(3660700001)(8676002)(86362001)(6506006)(229853002)(7736002)(305945005)(2900100001)(5660300001)(74316002)(55016002)(575784001)(478600001)(5250100002)(54906003)(25786009)(110136005)(316002)(66066001)(97736004)(54356999)(76176999)(50986999); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR0502MB3815; H:VI1PR05MB3149.eurprd05.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5b5651cd-3e64-453b-e0fd-08d51c353232 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Oct 2017 05:48:34.2114 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0502MB3815 Subject: Re: [dpdk-stable] [PATCH] net/mlx5: fix TSO inline size calculation 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: Thu, 26 Oct 2017 05:48:36 -0000 Thursday, October 26, 2017 2:31 AM, Yongseok Koh: > When "net/mlx5: replace network to host macros" is rebased for v4, change= s > of "net/mlx5: fix calculating TSO inline size" have been reverted. >=20 > Fixes: 6b30a6a8552a ("net/mlx5: replace network to host macros") > Cc: stable@dpdk.org > Cc: Shachar Beiser >=20 > Signed-off-by: Yongseok Koh > --- > drivers/net/mlx5/mlx5_rxtx.c | 10 ++-------- > 1 file changed, 2 insertions(+), 8 deletions(-) >=20 > diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c > index af0a75546..7785ced44 100644 > --- a/drivers/net/mlx5/mlx5_rxtx.c > +++ b/drivers/net/mlx5/mlx5_rxtx.c > @@ -558,14 +558,8 @@ mlx5_tx_burst(void *dpdk_txq, struct rte_mbuf > **pkts, uint16_t pkts_n) > break; > max_wqe -=3D n; > if (tso) { > - uint32_t inl =3D > - rte_cpu_to_be_32(copy_b | > - MLX5_INLINE_SEG); > - > - pkt_inline_sz =3D > - > MLX5_WQE_DS(tso_header_sz) * > - MLX5_WQE_DWORD_SIZE; > - > + inl =3D rte_cpu_to_be_32(copy_b | > + > MLX5_INLINE_SEG); > rte_memcpy((void *)raw, > (void *)&inl, sizeof(inl)); > raw +=3D sizeof(inl); Acked-by: Shahaf Shuler > -- > 2.11.0