From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50054.outbound.protection.outlook.com [40.107.5.54]) by dpdk.org (Postfix) with ESMTP id 1D43B2D13 for ; Sun, 6 May 2018 08:06:38 +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=keMicksKKXhAPo0EKIcOl3pOfN2KLB+QunnKDOFM8ms=; b=qIxpBwGtf0XfDCeT0uTbY0QFcfSFlcEqP+v+BHj9qiQsnYM0Cxjy3MRr9/8vV5XXBKbERfWTMm8p6emlB9ts8uCQs3hCGluYrciBogAtHlNKROhxUcwWtkgL96owqtQiW0QMYRlmcMrbSRBWjaxEuoJOdsP62Ars9uXQ7J6Idvo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; Received: from mellanox.com (141.226.120.58) by AM6PR05MB4422.eurprd05.prod.outlook.com (2603:10a6:209:43::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.735.16; Sun, 6 May 2018 06:06:36 +0000 From: Shahaf Shuler To: bluca@debian.org Cc: stable@dpdk.org, nelio.laranjeiro@6wind.com, yskoh@mellanox.com, adrien.mazarguil@6wind.com Date: Sun, 6 May 2018 09:05:33 +0300 Message-Id: <650d3e145d8867888223c665ed0878587e6ad0b7.1525586525.git.shahafs@mellanox.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [141.226.120.58] X-ClientProxiedBy: LO2P265CA0008.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:62::20) To AM6PR05MB4422.eurprd05.prod.outlook.com (2603:10a6:209:43::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM6PR05MB4422; X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4422; 3:h8UCVU1MNszthRkln5ZciqmEzPap05qfHl1xcku3Fm6XsNmYZ1VLLxN5praLIw5QrzPdVaCtL+IqjPcLVy8WjAMTH++euLs4gT2KJ3aRFNewJ/Fi/JdCCOp6FnnAwPs15krrCV5krSIVLw1JgAn06ERTOjwlobkZewJM9KECNWi1e/5pSjf8y6FL/OMve/pmOIRP551lpbdcBngWnPFl5LPyXP6H1IcB/bRMiB8GWorrF/9tYKS8TRaqdqoZXI89; 25:BAsRzChCp/yn9oZY+VtkBG7KAXOwrheyhn+5ZWMa+G17DOVmpeqHVQJ/w7Unx7Ddymx7vXwZ7zXmyX++yxOiOkbHJb6gke9Z1hZbYfTEqQAqeTNQPxOvbY+oPyizVm/MMUREofKDVn7eRv0VQ+u0deYnOQd3OGh+Ewp2nFqsKOUeWxLEWCanMyIeFTPE94u9jq7gsyPuyuhSoFXfcYBzXrLrshk02HBpLm6BsVYelkPqhYh0zqr9qGIdt3Z/CzYn2Cy8v0/r+48VJtTsUe5NokA4leBfWhAhY1s0TdMFmts+Tz/0TK9ZMOeUw2dKW0mcd5xIzVatfu5ySFGgD6A1UQ==; 31:bIDLdTc57MExHcEfKfN4s746JQ5iTuaGU0EprEVioEJYLeHsHi6NdZwDNGU7cknppGJDrlPtvQ7lthtXvVCRSgs9g7byxOvwhGDnoTe1RwCWvUe2YDDMxrmyOmUPVlHwU9tt6anvPoqNvMCu2VeWhfTu15DKFH5b2cwFB08XaW++gYJeh/tH3iAg3+BkCKSy0aL6l6k1oHu779KTvJjicNqRqumGfYBe9a/7WGIitrA= X-MS-TrafficTypeDiagnostic: AM6PR05MB4422: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4422; 20:e4ibosuoFxcDTe/aPjZQ+30+ifmJ5rbcED9rkk25KDPaQMaP/qzzkirbCMIjaM0sOZjR+lU0lCkq8N+hA/l1tLhf/7mgO8GJPJX2WoHsqamTY04yfXBhOHIHXImEay8TNAlyvrlQDLQv6k3rDn5mw16uOWnrW5BjwoBEMsTTDwIyuvErfra9dbFNzwKgVGuPJY+SJFB97d/PsZBOmKGgFRjZZB/+TfXmU9CU5gEoUi0s/dJA3dvTo1UTAq2SMhI/xl9Ky3RbCQFG7fY6hmnJ2GHcwUqnT9BHzg+NU/4aCCFfEcBT+XeExHCEInZaDQw5D154avb3FaweRR0F7cqSiEyPJ2ENoO2olZCOtXDSJfUVBrhQwXlTwi6raafJCwAYHqwwyBibpuPG33uOvT/Q62TJhqHZsxSNQWolmaGqW2X2xXRwYQgZxdJjMAAoVEkZxWYxpO8JdX4gyYCR3y+9oFSbPHnaw0DaRkdKajLAkC8Xq0fXTTGC38H5f7Z7uZ68; 4:3Ql1uy8uonOMmgGpo1CjDtvWxgPMaslCYktlxQ4IxWOtSyBmWhqtJJTa2URi9P6cX0ruzwiWGR8K45kF0oculNwCMAYy1dzn8GefnVmg8+CGvH2ivub8YoxsbReUPy2zEKGmL/Tx/h+jNYnfO2GKXEX2AaloDEhSu2X5J/BUvwU1xf+q0Y+Hzp/gGvlyas8Dv0EFInge8/FqzofMPHPyQYUoz1YRRAy3NuxdmIuc5hc+pPEqCxY87abO6ACp7j/jZN7gWF8rVPUz5XkdirpmVg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231254)(944501410)(52105095)(93006095)(93001095)(6055026)(6041310)(20161123564045)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011); SRVR:AM6PR05MB4422; BCL:0; PCL:0; RULEID:; SRVR:AM6PR05MB4422; X-Forefront-PRVS: 06640999CA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(376002)(39380400002)(396003)(346002)(39860400002)(189003)(199004)(105586002)(8676002)(16586007)(8936002)(316002)(2351001)(53936002)(86362001)(2361001)(6116002)(3846002)(106356001)(118296001)(66066001)(36756003)(47776003)(81156014)(55016002)(2906002)(50226002)(4326008)(68736007)(305945005)(7736002)(81166006)(50466002)(25786009)(486006)(5660300001)(476003)(2616005)(48376002)(69596002)(16526019)(26005)(59450400001)(386003)(97736004)(956004)(186003)(478600001)(7696005)(52116002)(6916009)(21086003)(51416003)(6666003)(446003)(11346002)(76176011); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR05MB4422; H:mellanox.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM6PR05MB4422; 23:n9ZEVvTSKS0PmABm6NOoQcPuiAE6tXXYqN672fzql?= =?us-ascii?Q?/Jdxl/b9Z7ccffByP/iJoH8yolujAucRu5bDzhMV8b6SYKbv4RKagfQE+wwn?= =?us-ascii?Q?rZsKELSIrD4NnYNbMqJ4O54Oo0prCcnKFb07gfSZeWQDa/97x9mYCdMl3TL5?= =?us-ascii?Q?0H7TFxoPU3fJe0TR0MQNSBjbOnslHrBSSqB9Bt415I0Eg2qaPkhR6gvd4oPe?= =?us-ascii?Q?lNNuavmKCOpy85wlOWkgh07S8x6YP5AZAOpBxw23/Ymcr6rDQHhhup3fCbFa?= =?us-ascii?Q?6iUEADwUk+Y59IAmWfno0fRculBn+XjdkVb6vJY87FmI9fZZZLxZWCNn/Cd5?= =?us-ascii?Q?nrtouf9YiK0NYHvovUnvRJqmYEjxTV2/ulR9zUzJm6/7PO0/9OUrSEG+5y/7?= =?us-ascii?Q?7tQUmyRo2vXgXjy1UaevVzE6630ReYU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soft-Antispam-Message-Info: RrQyPMqMCyZiamqap1rGEbh7Ro8VMzRxoaWY4eXmtCO8lpkPOm/mOW6ObEAMKY2SrTtVBREUeJZoB7+d4fupOLoZtxC1MYzVu/ERVq+9inS8br26/j6a8gK33zBHB1CTA/cMVQAnMmLV17/iZdQE+wJ+PzCkLjDmaFCP4jKvBMXIDRj4Bwsl+hlVE0MTykGH X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4422; 6:yd59Pa5yZRxHZ2FpV5aQ/bRsyUE18xSQQ9rgwc7uWCBuUMiaFzw2L5CYqtye+3Nn8VRMHoIq6gysWdC/TDFdeTdGMWx5NRkrAZoENfY/9vZ6GGLoclFsyamGJo15qtxDWT7L/JkKiZ87ZseGSluXI6X+RmcRbI2VhLcbHzaSWtMlCgcOPMqBKWlw8vyUwnrNX+n4SxLQGl5zRryEJoylDMabU4phQoefM3nZAfWJjS5i6CNeR/ijRnlpRm4pI0lX1sOq6mvB/Uq6eu1T2r3NPiaVKff6AQMilkSugtJ+yV5xxvFv6NoIgF1EWNpCrmzRg77y1k+SsL6Y012KUkJPxmyVS4cAEWkt0F1WmnrnQUG6rvqetzL6+SklXU6UfRMLafBMGuAq7hgZOXqqHci5+Tl2SWc+ktW80Rs+wBh3D6uqjnB7fWIBBju1DDXXP46zuWQotScigLwDtaZz5bYzYQ==; 5:LyNIjB97hNEQhNiPLVlEVuZpM5Q4/711bpatoUuSCIDB5u8NaaUpsSSLrE6JfhA8Rm4SnXuimgwfVjXFuF70lBtK7KMqSByM53h8mIMIaYjg9I+bRZsy0YOaWx6LOQWoF+e1V95MNFW/fh4NS0A0KXokDdRBba0cHmXdNYFJu9I=; 24:0b2NmTO+KClvOQEGwkkE33ToGPcoaPT4rgPTJ8ADQn/0bZFLHlNuWbaT21fDoiXA3PrNKi08OXNzDiKG77YiCrLA3vh26K8bJ0gAI5q3VI8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4422; 7:unYIhk14ItRcOaAfguVLcUXVhk1V5Pk+5DlKvWcvTu4TeYxD2VXjfaOIuX3mpNTeA265ulo7ITiOW52TxXauG0fDmQffz1JhKUbSdvKOCWzaM/TqiLmDKfjpneoQuGZrpuELhLZvsxhBTjjyLMOHuTyYaY5LiQbq2OHgzBSyrhc+t4PLScBSk4dIXflhz/M6xrAk0gg+3l8jEySwU4H56dpSGCf76aWi2LvcvtofflS6kxVPL7P3+E7dV7NfrnxN X-MS-Office365-Filtering-Correlation-Id: 66884555-b03b-478b-5f80-08d5b3178699 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2018 06:06:36.1142 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 66884555-b03b-478b-5f80-08d5b3178699 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB4422 Subject: [dpdk-stable] [PATCH 04/33] net/mlx5: fix disabling Tx packet inlining 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: Sun, 06 May 2018 06:06:38 -0000 From: Yongseok Koh [ upstream commit 24a8f52455ff69826da460068ba1a5db17cc1085 ] Adding 'txq_inline=0' to PMD parameter should disable Tx packet inlining but it doesn't work properly for Enhanced Multi-Packet Send. Fixes: 6ce84bd88919 ("net/mlx5: add enhanced multi-packet send for ConnectX-5") Cc: stable@dpdk.org Signed-off-by: Yongseok Koh Acked-by: Shahaf Shuler Acked-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index dc4ead9348..049f7e6c1f 100644 --- a/drivers/net/mlx5/mlx5_rxtx.c +++ b/drivers/net/mlx5/mlx5_rxtx.c @@ -1382,7 +1382,7 @@ txq_burst_empw(struct mlx5_txq_data *txq, struct rte_mbuf **pkts, (!txq->mpw_hdr_dseg || mpw.total_len >= MLX5_WQE_SIZE); } - if (do_inline) { + if (max_inline && do_inline) { /* Inline packet into WQE. */ unsigned int max; -- 2.12.0