From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20057.outbound.protection.outlook.com [40.107.2.57]) by dpdk.org (Postfix) with ESMTP id A46B61C0B for ; Wed, 23 May 2018 13:27:34 +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:X-MS-Exchange-SenderADCheck; bh=sGFyBrja3CA1NKFn8zxjAzmdmsmBy8cFrcJzcJq81L4=; b=XA2izOfyaDR++V5IR5GnyobMSltGGD5JXkEs01XdDchZuCPE5DNXj8g66euKvObOh9zpi/95Jsxp6vCW5tOtwaT1jj5b2d+GWqf/MPoFAbW+DtkFP5vmyWWySWPfHbFLVx4hxhHWaACs+5SsEwJXl7AyTlIyPRyDLqGJ8FRhdtw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; Received: from mellanox.com (209.116.155.178) by VI1PR0501MB2045.eurprd05.prod.outlook.com (2603:10a6:800:36::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.776.11; Wed, 23 May 2018 11:27:29 +0000 From: Yongseok Koh To: shahafs@mellanox.com, adrien.mazarguil@6wind.com, nelio.laranjeiro@6wind.com Cc: dev@dpdk.org, Yongseok Koh Date: Wed, 23 May 2018 04:27:09 -0700 Message-Id: <20180523112709.10729-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: CO2PR04CA0104.namprd04.prod.outlook.com (2603:10b6:104:6::30) To VI1PR0501MB2045.eurprd05.prod.outlook.com (2603:10a6:800:36::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(2017052603328)(7153060)(7193020); SRVR:VI1PR0501MB2045; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0501MB2045; 3:kT5pXEXq1OWusJfW3vTdP8vZJZSwOaYCbTrmEOUfxDGun0cOhVmYT5ZQceBr3kvt3qeeVQ9H9GDgJjSltQeWp/+5iYhGzTqsKdfozX4RTU/RscqP1PuT1yXZ0GH0VpMrVvWqYc6ch9MUFaZMl93FhcIOVSf+ZOpw9Qgo7TjtsWGZl5wN/ytz3Mjl6s0i42PChXdEWJnnsd41d0cj0R/60/ePq+QAcRMiqzVA/3DXgAwW/Am9Y9OdlUGR7buJ0vhz; 25:qlF+XJnEQgfUwRcNq9MA7+owY1PTGK58Gw58LyBcFjFMSoRu1e04liKw4CyjHLTcdgFfapXQe9m6UdG2TiLnnaLS5Gkp6MbBeX3aSKA5uNTVgDoHcQlZa0WvI0qnGIPZD8+iX45haagu3sOc0ZRG4TRElaWNmMXendBUXvevYW+NcYyVIq28s2EUjRkNhvV7MvDPTwB8TFlXZzaz9xhcG76hQGintuUptW6l27lpmNHQBBktyL251BTMI4db8rSKqWvnuvaUu2wg561e4HPT6IhTTe3EA4WBmugLKWmspv6sxomTX3i6AwpWIuIICzaRuXJv/WYL2KaN+bIwT3NzTg==; 31:GsnWuzUlpg6Q/XmCjt5jRouZQr+M2K7HZZXtOmX+mvW/Trw8+XoEDOEzpCoXUNvzS0BRnraRaWGM2fnFYEgUSnNWpWPWyMemd+wZF+4LAjjDCAXhmtgkPpbS570t9Hzm+QjiRKBNiVMdR56aSAUsX13fBZ5K66tbIz6qGetKBI5dXFkSXUzt9zfOKYlYUE+JXj5DsrLfMP7U+R99aNoQe5u6Qa0KgHQ97123+Y56cLw= X-MS-TrafficTypeDiagnostic: VI1PR0501MB2045: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; VI1PR0501MB2045; 20:onKdjSvaZySvTRgss+KOeEKiD6SwITj/C6Wci0CQHo13tIwbqbJ2LEAXbxJ6lYEWfTxuUN5ZTkUq5a514FUbHp2dKPu7x0ysriV0bcKLFovq78MBaBKv5TjpgXwxGoqbMuzWrsgOUbOVOi51SpkT4uUD8IIfhw3RDvUVGkUalfoDLSh5WgnL3twfwH1hjgsTKLJCXG/m4aX2r5jgEoZ8k2fHXs2SUj60cOXo/Lw+G7Fw8ZSoJpKBQrz0esnPtfRCVQUgmB+6iiIbxtB4CT4w78vaSEYgUkcod2X4MIPW89QXiA15tW2ToHO0+CCZ+P7xDEFs6d+DVBdAUtGnjScOTZVtk6FjCN7ya59Ov2PqFuiqoeZurRJV1qrwTP3/0MO4ycdrxatyUlUENLKgYZdKelbj++I7KuKTjkGDQQPlSfLKiN01zuTm+6AW2QSoWqqRN4w7nQxGFFxvik5JnCPaTW4u4pqb39Tx/0sDFQhJkANB3Ga9Ree5/W17Ptv7vpf+; 4:+iTqmf7gNtXhKc5JDI7yqbXzuQgQHA7E1ITOSw6UH1VIV7RHYHZFbfGYi1M7SQrF0Cv42azzmZZqRN6IKxyRAHUz36lrmZ1asFF8Pfu8XpCOLrT0UCZc94AFGH3RR9dG+yiahRjoBvLvf0+hCp79hMzfHe6DZos9O3goP9CyKVnDroLhwt9RoUfE8yGDuZZ2VTM4oMVgreozESDIVIpu/2SXlxAcuKytMUOHNxEFIq3jZqAVOZBabD0/bcxq1Br2uUCBEqoZsie7bdcjeWTQUQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:VI1PR0501MB2045; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0501MB2045; X-Forefront-PRVS: 06818431B9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(376002)(366004)(39380400002)(39860400002)(396003)(199004)(189003)(2906002)(5660300001)(7696005)(25786009)(3846002)(86362001)(81166006)(478600001)(1857600001)(50226002)(16526019)(26005)(6116002)(81156014)(55016002)(52116002)(21086003)(1076002)(51416003)(8936002)(107886003)(53936002)(386003)(6666003)(105586002)(48376002)(97736004)(106356001)(69596002)(486006)(47776003)(66066001)(68736007)(4326008)(36756003)(50466002)(316002)(305945005)(476003)(2616005)(956004)(8676002)(7736002)(16586007); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0501MB2045; H:mellanox.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:3; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0501MB2045; 23:2gmojN677EBBpKtniN6/aQ94szkFyhImUrT0afc?= =?us-ascii?Q?YoFC8iboKeTUhDzdvH/jkU2mQtfKtqwSL9klewDbaiJ8ga618jZn/la4ukyH?= =?us-ascii?Q?PeUtyWub+5b0RwAg/pZiJH11aoQZHceZPf/S42S6nxlp4KttZ3/M+N9cGm9x?= =?us-ascii?Q?pHmPBuXSGh4yTwXjFQtXp8FbHwuf5lxrzKHEStep+hn2BhJGk3mV6YIqj3wh?= =?us-ascii?Q?NGRLwn8E8tkG8rKN/GpRgFTCJSObycfzkPLgrkFrEl/bE2vNoJojgb9ykNEt?= =?us-ascii?Q?qMDoS2FyejOcLMLCNHEYDTkT6PPzw7UfwaV6RsycfLcWq6dYisP2BoM/HCAu?= =?us-ascii?Q?/OETu8KZZbw3wrf+lbXKajeutIPYj8PIn7zzbaAPFQrFqRDlG/1stJp8Oo4h?= =?us-ascii?Q?rt+EvNh3eG+aqsVL34IYj7gs+U3RdmlkYiOAo4Wa6TB48VzOWKHEXxF658/i?= =?us-ascii?Q?LYYahYa6YbUYAQkXB2/rcD7ca50S7x2CrLPmwmRDqOQ8RHxYwQmq56r84H40?= =?us-ascii?Q?7thszCyRlk71oas7l0XEdsX4vXO12zdSuvV86rughcmjeNBXk7DYVYvPIxoI?= =?us-ascii?Q?0hZkfxbM8+aq0Mosq3xYs22oKYHvGlkqBUva4EsKuTBUHE87Z33qx37pUlNo?= =?us-ascii?Q?zB5Suh6yxsIC9N/D8BRSt/H+4EqjprsAcsy1kFimPWtYGs3YoFpF2l43HdKj?= =?us-ascii?Q?hHlGpwJ0vrpxD31G6R3TUhcBXKGGwjKJenEzqv6lg7kgOgm6l7VYDF4mda2c?= =?us-ascii?Q?elpu16Lre1ycm1EolF2wOeZOcSRv9H/EfWBUHpUhtsPZyJNWuhemHLykhmj6?= =?us-ascii?Q?HY26rg/IylBEfh9iBtxVvQhNxWoEn3Mvc46GeXuZXIxmUHY0+tkY5apjxvhR?= =?us-ascii?Q?nVU9pXi9de/eXO0xlKSTOzM88HZlXAbD3ZwZxA1q/UactDc2vl0Fqqyf5Sdu?= =?us-ascii?Q?+gAQVzGOlOyGVTVdp1RfODdCt1G+BN6/lpcwyH8b1hY79Zovn3A8Eg9ca/ae?= =?us-ascii?Q?elMjAD073q1g0LTH1jZzlAlwLCwXpB10/5b1FyTnrpvJ+Od4k2hEcLlruMCJ?= =?us-ascii?Q?dNoyUFP3wfA/jM3bNHb2TryqkLnlmb89+XVWHqEz2k05RSGVmuFTWYT9KVOX?= =?us-ascii?Q?3mmYlvjtirfAQd/qA3HjkRz603PgjfkpJ+NHnX4qkC+1hQNmJmCOCW3URrvh?= =?us-ascii?Q?DThA3D0AfFcVeqkc=3D?= X-Microsoft-Antispam-Message-Info: 3BLO5iDOZkv6fx+CWM89pspE01RcCq9a/43tjaM5xhINQ6REz8TJlOEWQuSmYszlfvhGWi3I2AJVCDcZD/1xB6zq8FLn54uC1Buv8u39SmyE50k8X3zRLEJkw+6tsmBJVhloXMM9/hY2S1/V7os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XTpamYOQtRSe7ef0sLo0UH5yPr4O06QFwLkezd73enMSDfmSpNudEXup4OCdx8YnO4TlIs4LKl2aJMlW0hG/mleojFDk3v4TpPNbxwWRTRz9l X-MS-Office365-Filtering-Correlation-Id: ef4a656d-b10f-4995-0b3d-08d5c0a02c38 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2018 11:27:29.8994 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ef4a656d-b10f-4995-0b3d-08d5c0a02c38 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0501MB2045 Subject: [dpdk-dev] [PATCH] net/mlx5: fix SW parser offset X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 May 2018 11:27:34 -0000 Fixes: 8589e944d075 ("net/mlx5: fix setting offsets for SW parser") Signed-off-by: Yongseok Koh --- drivers/net/mlx5/mlx5_rxtx.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/mlx5/mlx5_rxtx.h b/drivers/net/mlx5/mlx5_rxtx.h index d65cd1be8..f53bb43c3 100644 --- a/drivers/net/mlx5/mlx5_rxtx.h +++ b/drivers/net/mlx5/mlx5_rxtx.h @@ -687,10 +687,9 @@ txq_mbuf_to_swp(struct mlx5_txq_data *txq, struct rte_mbuf *buf, */ off = buf->outer_l2_len + (vlan ? sizeof(struct vlan_hdr) : 0); offsets[1] = off >> 1; /* Outer L3 offset. */ - if (tunnel == PKT_TX_TUNNEL_UDP) { - off += buf->outer_l3_len; + off += buf->outer_l3_len; + if (tunnel == PKT_TX_TUNNEL_UDP) offsets[0] = off >> 1; /* Outer L4 offset. */ - } if (inner_ip) { off += buf->l2_len; offsets[3] = off >> 1; /* Inner L3 offset. */ -- 2.11.0