From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00086.outbound.protection.outlook.com [40.107.0.86]) by dpdk.org (Postfix) with ESMTP id 3A1171BAAC; Thu, 26 Oct 2017 01:30:55 +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=LL+ZR3gUTyVDuHmRy3MyyZXo7lE4+JDxUHH6gV2XCys=; b=USONgB6RBgMOyygppbmTI+A9c4buZOcFRHvvjWRSGWCZi2XH72ZQ9RRJfw452LenCGkTVENYUUA2B1tTQwmZA8izFivt023MMu++MWPMUzByUD4fSt5+SBbnCorjuD9ryMV1J9C6NsBcqOcESFZy9CtJACcJDITb1SLnlevX4Zo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; Received: from mellanox.com (209.116.155.178) by DB6PR0501MB2037.eurprd05.prod.outlook.com (2603:10a6:4:6::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.156.4; Wed, 25 Oct 2017 23:30:51 +0000 From: Yongseok Koh To: adrien.mazarguil@6wind.com, nelio.laranjeiro@6wind.com Cc: dev@dpdk.org, Yongseok Koh , stable@dpdk.org, Shachar Beiser Date: Wed, 25 Oct 2017 16:30:40 -0700 Message-Id: <20171025233040.16911-1-yskoh@mellanox.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [209.116.155.178] X-ClientProxiedBy: CY4PR03CA0096.namprd03.prod.outlook.com (2603:10b6:910:4d::37) To DB6PR0501MB2037.eurprd05.prod.outlook.com (2603:10a6:4:6::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ec4714e5-aa2c-4ee4-e62c-08d51c006e95 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(4534020)(4602075)(4627075)(201703031133081)(201702281549075)(2017052603199); SRVR:DB6PR0501MB2037; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2037; 3:owI4kE+ZaMcOhGdPT4sncsFpgMOXuFuOu8rSdpFQTEIdKxR3JjpYGaqPqr/9yDGgl2IUBtIjT6WqRI/+URb1Vvmh+ndAeQaY9gO96I+dZA7uUMdAiDOhSbXWcYjjpbNxo1arYzqZKxqXHZ66HLM9JkW8Ndt5qqUi9YpY2CLCQDAwaNkB7MzyyGQ0ZAjYcPCg9r01+buKhra80ykPZHG1BRlEIOVUW8TCaASPot9/15zlh/WBf5syoiEy9CVFL0EG; 25:g1ycrPthjEHnfTr5+DkO5q2QOOhXxsi8pJ26dDgUk8k+Kl6z6syZRPMeiD9GtGNzYZKxQQIHjn9i9v0KEJSg5ztDECbJotSP027I5LfKiQFHOGlKrJJqPpDF1tLIKCHG7DUGGsZTKKsy8zoA5yIffd+Pmnl0uRZdoltKGY+PSG59o6Z/xNKLNh0jaOuy4kgBa+FDHKey1r2ttPBrwpfcIxFWwSB1Mz/pmisvUUC5X83efUVtarxBi1E4ll+yRhyYwhVxVEu+fmNr1/Y8F7eFXJ2GJVXd90DNCttftAi4mQ0uqGLxFOGhtKM0S9IHU/cmsE3pkM9+30frBFUqWa4Y5jYRLu8rLLVyedw0mxm/oCs=; 31:cBG9It0taCgyq4bInAXJzq+P0u/1n0Ouy0pgC5TAgN4YGkohLM9tTz7Gc8p68gXNiHCcYjUuHy1hHgBVa+V7UenpG45k2bA57UaTBgto+xfUtYCid271l1+OKioaNtRr5LSa8+si38i8Tu2HvYuATe90QbI3rkd5b9ck9ymtzA6h4VZtT6z0tIovk68sxRLY1LYk4DZSstqtsDRXqPJN02tyKsztnw7A4c6PE9D4wnY= X-MS-TrafficTypeDiagnostic: DB6PR0501MB2037: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2037; 20:duUuVTHFxP5ve3oJT+wMzLDuLoJt2C308EvFTGjNQ7S42yikT7wR/gtOx4880gG10cBYuQuTwqq/nwf7IzTSTJiKmNG/Nay9LoiKl4aVLT0NgvJ8hUlL2EAnINF5lyB5QLesJdnKOoe7tcOh6P6iWIT/oydZFfu3RhedK6G48dHbn/n4YK7wYAqT2DvN1H4eiZFZ8qugQ5XmKHIBXiECgYFSdJbWWHRzhdN07unSqpBeUsfQx6kvtXARarcwJNyZrlbfrUUTmeFfRFGlLGB4mksoswlwv5z8DyO8lXpoJebnmjBv1DLEQ3cdo+KeuJ7JUBMLBKqlPugOxsMM1zrpgXrVQQOBztBNtZYSLhTLP2u2RhuZItUXRlRue9REh/SgkJGj/rexavaNQvusr0CdrfDPW71WaPnkgyOIENIGWVJtvhF0TWOvPfDA0k5YshHaFdAdJwWj+VeXk5TA3jBCpSXOsrBVkbe95Hj2oX5WVk/tGpYCHUN5qRK3PdKnt2tW; 4:Rq5DksAG+hgoI4S+3AmSMQrc2rfZzNPq2IRiQrCZ3u3+oTliTuA1y+zcwg4cwiwAxii+YIqWLeUZnmno2yKJyH9ZFMGrO6WydSB/4MxbybdFbs5Ux/7QQnJTNivHGBJR7X9wssYQ4zIoF0nJSJ+mMdzS2rL7wuBzetwRRpsdbwKCjCAi9ED9IpQpSjPq3rc7lawYKBfxweWVBB7gcPp+tutG6HU2AhaZ8SpgC+WmP7s7NTUN8PlqDzNxqhhVCo+ad3URR2iqKek+Jl71pjxpmkMhLaHGbiRJVI4ZRGrGqzk= 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)(5005006)(8121501046)(3231020)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6041248)(20161123560025)(20161123555025)(20161123562025)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DB6PR0501MB2037; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DB6PR0501MB2037; X-Forefront-PRVS: 0471B73328 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(39860400002)(199003)(189002)(81166006)(3846002)(6116002)(1076002)(316002)(4326008)(36756003)(54906003)(16586007)(16526018)(2906002)(55016002)(86362001)(575784001)(68736007)(5660300001)(189998001)(47776003)(5003940100001)(66066001)(305945005)(105586002)(106356001)(53936002)(6666003)(7736002)(33646002)(101416001)(21086003)(50226002)(97736004)(25786009)(69596002)(8936002)(478600001)(50986999)(48376002)(8676002)(50466002)(107886003)(81156014); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0501MB2037; H:mellanox.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) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0501MB2037; 23:ysxAcIa/DuHqMnr1yAiJ38KG2Xj7JyDXfeXeeBP?= =?us-ascii?Q?pOe8eDvQtCdy70cTNE8uBIJ5iad1UHx6K9C+UF74T1PRaa3hv+L1aPCRg7/r?= =?us-ascii?Q?3x8yGqzRLhrbzTIQG5Njy80lT47XRhhZGzaohK19wnbyNnBMH/L609blGTRE?= =?us-ascii?Q?KGCj3jFA302i0Awqp1tgLkH0nWGDX88HIWHro8M4kEG0koev48GDNrk9h8qN?= =?us-ascii?Q?RyHW0aBlWUHFRogUDrzwz1JSNu+/vSApALZtFiH6NKYT7MSUKRMuuji7nLa3?= =?us-ascii?Q?D1OAtk9sPt1hukKaan5XTWCkaivn7qUV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t1wDpb2pyO/AEJC0L0iCEfFsjBaKQuraCE1phq6C5ryhatEFzpxh4wEeDPMoF8yFu2uN4guImtzwz9mX8LiTLlzhl7soVy7FPamIwxDMkOv9teWtXkGJlySSkCizkWzQaqczbDOuS/KnVmfNbAYb1RpkAGj39OJ4pefd80eDWKnBZuZ3Ovoln4ep4Dm3GRz+HFu41LnMPzP6hnZfhh5GQnWzl12PyS9NngKzSVL4t1byGNInkXXkZCDZCyU/bqyNnPMWNUj4SONVudEgrDGpTZcb2qiqs7ICtXK+GkA3uOlUi3kIRsj4ajCwu1zUL3LiLhw5uFHVQ==; 5:1NgdR8IixWHViNekAPLpzyzwV43ixhmu/0Q2SHChoMsaCCTGjbSWM5Njwpb62Vt6ygRU9JwdN9LN2chAujQmnGFqe2EuG7hxXAG33TAz1IiC/m2rd9k2w5mOyWWcg8Aqscju53B4UjlDFsU9VU+bkA==; 24:fjzE3j/YGGXAwHof5ZBEOEdvtjz+ePEEfyKjqcJlO3KVUKGp7RxylG2wklN5KmJILgm8SoS/sUKJYqFCNrCAmftlVg1tq6SsBg0Cyye0ZHc=; 7:dkaL/WVmsCUzDBtOq1lLRqyEGXOxIx8Eu7BcUlCLnbtK4SnQHGechdpbZZ5g2rT9+OXxGNZ7qXnO1VYnlNL/5M8v8bUKERpqx2WiE1L+Sv/zjeP7CTwLu3zJlvcYW95FNM71hfpKfbC/zjrW0n9+tX+etJ9YguDtEWJFAKijFA8qeAbF34wKikpALACJT54ApI0qGHj1qMyTKV8sEissO6uBi7NpwTPLSVVp46VKzKM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2017 23:30:51.1813 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ec4714e5-aa2c-4ee4-e62c-08d51c006e95 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2037 Subject: [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: Wed, 25 Oct 2017 23:30:55 -0000 When "net/mlx5: replace network to host macros" is rebased for v4, changes of "net/mlx5: fix calculating TSO inline size" have been reverted. Fixes: 6b30a6a8552a ("net/mlx5: replace network to host macros") Cc: stable@dpdk.org Cc: Shachar Beiser Signed-off-by: Yongseok Koh --- drivers/net/mlx5/mlx5_rxtx.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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 -= n; if (tso) { - uint32_t inl = - rte_cpu_to_be_32(copy_b | - MLX5_INLINE_SEG); - - pkt_inline_sz = - MLX5_WQE_DS(tso_header_sz) * - MLX5_WQE_DWORD_SIZE; - + inl = rte_cpu_to_be_32(copy_b | + MLX5_INLINE_SEG); rte_memcpy((void *)raw, (void *)&inl, sizeof(inl)); raw += sizeof(inl); -- 2.11.0