From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0089.outbound.protection.outlook.com [104.47.0.89]) by dpdk.org (Postfix) with ESMTP id 455352BBF for ; Tue, 22 May 2018 16:16:17 +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=PJPvFGyhRV+6ieha3ztxI5LWK1FLmMSGUrnpKsej464=; b=EAWLfaur8mjeUrXge73nm43ZJ0LgS0wpGCb20BSaP5pzFcA2WqetWT0ytkTb5wJ3RN3hQjoonPPzro2Ws4zcrzLilMhUZiiXr0NyZrewMszaETVXgJlOyn37dtUGk3QaoSDeVPlvLYu/pY3nMoYBeu7ReORrPxxhhGlAGEd46Tw= Received: from DB7PR05MB4426.eurprd05.prod.outlook.com (52.134.109.15) by DB7PR05MB4826.eurprd05.prod.outlook.com (20.176.235.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.776.16; Tue, 22 May 2018 14:16:16 +0000 Received: from DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::e57e:5e77:595f:d4f7]) by DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::e57e:5e77:595f:d4f7%13]) with mapi id 15.20.0776.015; Tue, 22 May 2018 14:16:16 +0000 From: Shahaf Shuler To: Yongseok Koh , Adrien Mazarguil , =?iso-8859-1?Q?N=E9lio_Laranjeiro?= CC: "dev@dpdk.org" Thread-Topic: [PATCH v3 1/2] net/mlx5: fix setting offsets for SW parser Thread-Index: AQHT8atCK+ckvkvqlEyel1PRcLL996Q7y23A Date: Tue, 22 May 2018 14:16:15 +0000 Message-ID: References: <20180522085943.15574-1-yskoh@mellanox.com> In-Reply-To: <20180522085943.15574-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; DB7PR05MB4826; 7:23LvscZnLfBZcuYcq7vDlOR3RB6hdDs000FLTL8NRoqDzYnkFxIM4T7Nu+KydcP/GQMvJb+mdP/CkuE1EcZcYTJSs3tqq9/UIHFe868SXAoxulSzg0VCXLVFXZ2rIksV7z35trH1M5I67kav3yZcKV8tfypjqtCtedGtNNDGwYLeHs2kA6KX5Zs3J44U69JprwZJo9woR+5QTLuZD82EMmYRvOyy/+/RGzpKcyF7J6bKd66XNFiTxRrm9DS7xvN8 x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(2017052603328)(7153060)(7193020); SRVR:DB7PR05MB4826; x-ms-traffictypediagnostic: DB7PR05MB4826: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr 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)(8121501046)(5005006)(3231254)(944501410)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:DB7PR05MB4826; BCL:0; PCL:0; RULEID:; SRVR:DB7PR05MB4826; x-forefront-prvs: 0680FADD48 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(396003)(366004)(39380400002)(376002)(39860400002)(189003)(199004)(2906002)(7736002)(3280700002)(14454004)(478600001)(25786009)(68736007)(229853002)(81166006)(8936002)(86362001)(8676002)(486006)(4326008)(6436002)(446003)(74316002)(11346002)(81156014)(3846002)(476003)(6116002)(305945005)(76176011)(55016002)(7696005)(316002)(53936002)(110136005)(99286004)(9686003)(26005)(33656002)(97736004)(102836004)(6246003)(6506007)(3660700001)(106356001)(5250100002)(66066001)(105586002)(5660300001)(2900100001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR05MB4826; H:DB7PR05MB4426.eurprd05.prod.outlook.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-antispam-message-info: RxrGE+xynUpyRpelrpkFmoT5sVkGIerU+DNZQ31xUb41NB5sYlE8wpDoOD2VOcDIeQla+0G9kLWMO7aMtEFEVTEjIsTUpeMNo2/LP0NJMRF1KevuXK0c0LP4aBJg6ehHR69M9VlW2Ua7NJAaOUQJlQKcUBtwAhywBLjDxEGgLABw6JfJyWOBXtRqeRlFCHiA spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: a0088f71-e01b-41df-dc71-08d5bfee94b2 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: a0088f71-e01b-41df-dc71-08d5bfee94b2 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 May 2018 14:16:15.9727 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR05MB4826 Subject: Re: [dpdk-dev] [PATCH v3 1/2] net/mlx5: fix setting offsets for SW parser 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: Tue, 22 May 2018 14:16:17 -0000 Tuesday, May 22, 2018 12:00 PM, Yongseok Koh: > Subject: [PATCH v3 1/2] net/mlx5: fix setting offsets for SW parser >=20 > Since ConnectX-5, SW parser just complements HW parser. SW parser starts > to engage only if HW parser can't reach a header. For the older devices, = HW > parser will not kick in if any of SWP offsets is set. Therefore, all of t= he > L3 offsets should be set regardless of HW offload. As IPv6 doesn't have > header checksum, the mbuf can't have PKT_TX_[OUTER_]IP_CKSUM if outer > or inner L3 is IPv6. >=20 > And if inner packet isn't IP, the inner offsets shouldn't be set. >=20 > Fixes: 5f8ba81c4228 ("net/mlx5: support generic tunnel offloading") Series applied to next-net-mlx, thanks.=20