From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50082.outbound.protection.outlook.com [40.107.5.82]) by dpdk.org (Postfix) with ESMTP id 73FC023A for ; Sun, 6 May 2018 08:06:53 +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=HkPsRvAWln7OFs385SXfHMJie2ls+qebkxQuoNl9oJk=; b=KJ3iQyOjRTXnyj3Nrgp2PrFyNy22Fzw9BZrElYyUO0YGmhku0vz5BNgfrI+rXj6dOvo6euqk+JFEQUc8diL2bHRh61pwLx1IalI7C7cU0Ig5hQManhiO2nMYKPmG6jlLQawTbTljqt9bD7GRCXKhqK1aWMni5p4qO4honb4BOLs= 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:51 +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:50 +0300 Message-Id: <395e674911b2622257e690daa9a354257999a603.1525586526.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:d3RIFI/FnI+iPdHrI2uK2LIiQf1d19wguOrrEan6TI35M4CThkkTakRmfW5FKupqbvgMNgwsCukMhx9PcQtlwQ/7/9F/DO2d6t1m2WLZvFn7/sgrUr7WxbFosZYXAE9JDPvCvw6Vci4UFoj9b7dXB2lVStnK7KbI5KJpKUPd4Ti88b0XJ/ksvgeKPxqpcGv3PxjHYF5EakoFdD6G7zJoHTyETJXPLSiB+0rTxDz1OeTH++npoL+gAuMxLIAFAxK8; 25:XKQkWsRt8SFCu5nHf8pbBz+fOOR6i8ohHe3yGiVxwQyoTn1L43V/rAa9R9U2rqVnAXRFZQd4pFwe8t8NddngGZIFAHxG85V9AM6rz0ghme5cNREQYIZk0/1v6RcuHdwn9bMsEEwUqKhvB8mimQx2O1e1nyHhZu+7/jFrujZnhgoc9pwkioNDAZc548iXzysDmSCXF9ChjGqEPqHNghOdIyEKL517BjsD3mDMq3ztffjt3BebO1V5ujIufkYPczZ5N9nvI2eJIyTGhJ1FPc3ViWO++seeHSsn1AbXjwLVseKpdna+5nkuYQEKAP9mZ5+ejrZH0AgKUUQV77J/LosyTQ==; 31:x0oyhvXfW6XEFnAU6EuK0vYX7udodeshEEn3eKhU3x9/tofggW5a8TMfNzcyOixE0P+qf6/V+Tyko48QRr/oaRqwVeA8HNFNP0MhfyfexEC8EZ2aZmGOFE04/U3Vr+EqmAOy+7Fm/bB8XIdbXRvb+8VXikOxgKdjbEecNRkzEs+mInDHOdX0nohdWWsUREQLFZTwnbOUusXBTEH3gsqasw8QAxFhuQGRS6eNd9Fqols= X-MS-TrafficTypeDiagnostic: AM6PR05MB4422: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4422; 20:HuJ7qU3QDM5/dmyinZEdZ7AhR710hcd545/R20Ob2oEMGe31fXRhfGbc6wvIVLoSvAH4XyJllxUxVeckb+Q6a4XDiV3/YmDBTMJMiXVy88eCaVznh0eodFifjuPsFsTVZi03RhVHfel2pNXh96d8n6AxnSDmAFT32eAvyOl3L7oRiRCWBDuUFTPGY8tHJCIpTmGZiZ/jby4kfQM28TsZlBzWgfio3vrWjp6mSpA4OKnM0GmhInYP2jPFH79R9YS9F/vH/oCTk9vu8Uf5CbPmoshUDE5/Us+U0tYCfTAUT8PEBWNU/mfQltYOG3AGp2dZ5Nhz8HtQ13RR3lTip7HkIcCrQCL5BEnS1hYDBHE80Y2Q7reFRMfYM9XT8nyWZf1GA0N0il+Hx+VCPqis3ODv26apkaTbEAEaCjtPu5ETAz1goPYq7tV2nnY34LvdGcD9VlO426crUnviD+ybE5ix461fUEfBy+alKgy6ilqbl0sLGuY/jNksNn3WXs5CvdSx; 4:Vc9eEa1sgZNAjKDsw5HKC6aSWbnZ5nVEDTuEv6qpEC8PkZO+fmoosPXLp5cE/LNdfqpilyPxHofGcxaBzCyU5KCjaGmb4mths6fCOhJTHcQ+T0r525KSuvGrmDGwS1a6nimn8XY7u4iwcQGbIB5QAV51onO609mU+nQK4N/1f682GY0hfIPGDTPvqfQKK1pqVslbvlQ+1sOk20rvK+z5Agl/e9GBdcNaq1wjf312cKD6if9i0JB0ehFLq/0N2yAqP4BWbUqcTRkPcvXC3VnhGQ== 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)(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:g1HrabIQ0LNlN5RIvDwodbE7gqt4D+iaUR7V3kyjy?= =?us-ascii?Q?PuoUWAiZkYR5/m3po6EAhYZODG6Rfm0fxpKMOeBmyaC+D3dlDFXwZ8CGaf6e?= =?us-ascii?Q?Ae0wqTGsSz25jT80eEC+jIG8kwFFIMs3CSRxRI/vdFnJ/0tQWMoucW9Hu5Ek?= =?us-ascii?Q?m1tUb9SnkETY+a7O68RpYZ4vWtBI7VDd5NxyZVkO3VFw6oMtkdWlmvruguz+?= =?us-ascii?Q?epwP37VuSEF+obbYbfbTtpAzBhk9ywl/71uu0qctfTcF8Mp9ClnzlX3wsiFK?= =?us-ascii?Q?pT1o2SiiyY03Rfc5Dk0mb1/iZGSaBbqoY+tLR3q7te++Vvokvx9M3Xebr7h8?= =?us-ascii?Q?1/MYleUxcA11+ve0lQz9vMRft2Dp4SoBtUjktptJG4dQzmxq96XyQL6x6H5F?= =?us-ascii?Q?cyvFwK/pcXZ+8QNM83rK++WtnHwnHsClJaLSApQ5k8EuRY3kxkRhkUejt0Po?= =?us-ascii?Q?0SHavgAg6FfjS6PsvtmMiL5F9jrgu1aeRDHlUo7B9kZlIJtnaa861vU4Y4zL?= =?us-ascii?Q?ILIfftOXmVb/0zw3hvZvyT3z8GTZOREKKLvRQvPJH3HeQZQFvA3CGHDdVZ/3?= =?us-ascii?Q?ZM7rF3IgAsYyq3GIKhdH0KdDtdxRmNrxTUg4Psb1qRVii7UgKg8s1WlDY5yV?= =?us-ascii?Q?nO56iiLYinRkiqmQmskBF/mYby3Jc7eeynl8t+81P6c7PVQvorBi1t5VG0TF?= =?us-ascii?Q?UPUDXNuICOZsehkcruqnFnihTV6s2ZnsV6gc63+TWUpwvyMJM20oujnbL9QD?= =?us-ascii?Q?KTXaJZ3EqYiJsh9LiJfb9jzMrnXSMsyVl4laBwkC329/EV3CwwFu07bfBULe?= =?us-ascii?Q?6VcYdLh4pTYraItogbgP7LvrPt+NplTzL+e8c+v8BoRb5qqx+dROmD7pHcHG?= =?us-ascii?Q?3QKORa3EQDIOcwnSYn44KA4I85LXtoKrenX/7jX9csKw1mx2NEfnP0d0HgTz?= =?us-ascii?Q?LnkF55IVP6NkG4YWpGZXuwRrQBTzerypY3qqlsQFDCQVu9WIuqToCKOrNVCd?= =?us-ascii?Q?xrY96tKDQrbldCNu3fDfPuMKnhFfQs+vxOxI9nip/a4y7OCLhze0MQUoNNJM?= =?us-ascii?Q?mX79lcdGeBHEbBMYoxgSGiApaQGdtuforhj/j3TgIuQVdcU2GAimkoE7zgkF?= =?us-ascii?Q?cE7sjnXaUdd2FL98bAvPAY8eCeZ21+zxFgrAe4qg0yloYycoxv+lav45Ic+f?= =?us-ascii?Q?mGCItOJeVVts2v9PYXXTGnw67yE9VRicBCmMb/UP7TnoGnFd12CEH6LibZUS?= =?us-ascii?Q?xIfoyMuDuuYn9Br8Kp9iAc+dfAN27XLnuRIdfAZ?= X-Microsoft-Antispam-Message-Info: kygvDgNoOWuOJWwa/S43Nm7wnG0mwudmRxEyvhAslkmieMgB8WK0ktNcScUrcINnbwN+KxyhvKuJsQwLpZrRy4trSVVuCWUs8iFFO8LmZ2CSXina99az4f5dW3FtH+1GVC4U91uOMsuB1zC+yZl4HxCVB5dfl6fldtfvdkjA+cAomXdlr0XMfTjJ6s34U1Ih X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4422; 6:re6ARoo+AQo50xfaryaybQ3JbGXrYxPb8+gSRLSdv4GYwHOEWnhr8LOYeywMcslWcvbOKZtKWcTSdMKOBeiHPaL5lGjhjoNDxzBACGGu152fi8OPZ67NkUz4GTCd8K7LCJeKodv7cVIkwRzMlmt18Bs+fafGuz55rLuqLZHolBLcHU04xmfIrO++JCsKH51FZ2di3sf3a+xgmbAWEdvecHmBBo6GY6RFuvmWKOPz0ZS3EmoTNY8G8DJ1OazzU4kai5ROtN3lMyLJBHxk78m9TU0UQ/rjiVC82Vu1Q5zdbVz74vEubK+cMRt6l6efmI8P6Pt2GbJhpQj7AwRBiYj5RpKPmJ1Un4qcYnGg1E23nofutDOA8wse2ynLXz6lJbNHZEggu5KcJHfGTHtmKSLfGed3WArv0wnPjtjuDU+JQDNnC+J2db/9UprPhiQZ4Kjmv/7BwZmva0/7nMkIiosvtA==; 5:5gbSRvVZ1/g8marw4C8Flm8BCx0JkT5D1eYoxMM+MJVgk0yvTb3AkWeJ8FU4pltSmDoHrcAM6UjAQqIhu43U/p+nfCR2LHkOVd8e/rWs1p0w9lDIBpIWUit6H3HAbBPRMJhBQLzbqaTG0T8W6tYYGIT7YIliDdHSuBaIszZQGVY=; 24:INF/VzkgZk9IE2mkhsdNmoJexBX9x42BCwexZgUAaz4N1eV4y1NBC/VMYTMiNDyEGVgsHfPNWQEnPOp/Hx0MeAyTkX/dG3K6IN9cSTkDR8E= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4422; 7:N9M/BIyEalEJu4okMnQnxHDkCih0JBj3E4290aBDpqJXQMzf3fKSiNjmpgVjQ84sCcg5gQ168j/iPH9yfM6tYjyCR2N2dKfRuG1xk7/WyZeWU0aksH0aPdNV8pwQIUulGyLVRlzjAkC5BxhOf5X8rjMYrKXlqT3TUxe7ClZyLft195SbXDPGD1+y+3vWvDQDRdX10q+xbQKxLEIGvRyHEsQ6CuyV3Pi5mV5MX0SDkZbexwIm27dhNcFxPEaG8usN X-MS-Office365-Filtering-Correlation-Id: 3736ed70-e79e-49ae-7f78-08d5b3178ff5 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2018 06:06:51.8174 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3736ed70-e79e-49ae-7f78-08d5b3178ff5 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 21/33] net/mlx5: fix TSO enablement 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:53 -0000 [ upstream commit b7059e6e436852c1d8be241970c042dd182ff63d ] TSO should be set if either of the TSO offload flags is requested. Fixes: dbccb4cddcd2 ("net/mlx5: convert to new Tx offloads API") Cc: stable@dpdk.org Signed-off-by: Shahaf Shuler Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_txq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c index 042704cc62..9b96abef04 100644 --- a/drivers/net/mlx5/mlx5_txq.c +++ b/drivers/net/mlx5/mlx5_txq.c @@ -657,7 +657,9 @@ txq_set_params(struct mlx5_txq_ctrl *txq_ctrl) eth_tx_burst_t tx_pkt_burst = mlx5_select_tx_function(txq_ctrl->priv->dev); int is_empw_func = is_empw_burst_func(tx_pkt_burst); - int tso = !!(txq_ctrl->txq.offloads & DEV_TX_OFFLOAD_TCP_TSO); + int tso = !!(txq_ctrl->txq.offloads & (DEV_TX_OFFLOAD_TCP_TSO | + DEV_TX_OFFLOAD_VXLAN_TNL_TSO | + DEV_TX_OFFLOAD_GRE_TNL_TSO)); txq_inline = (config->txq_inline == MLX5_ARG_UNSET) ? 0 : config->txq_inline; -- 2.12.0