From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0045.outbound.protection.outlook.com [104.47.2.45]) by dpdk.org (Postfix) with ESMTP id 133582B9E for ; Sun, 16 Sep 2018 07:53:32 +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=hAU1+FCoRsJCMVtyuK1T67KzCMdWFOy+1N5TKjnTNA0=; b=Cpqm94zn+PxOTZS7xsWWTvLrfz1nRgh/B8kmacMRDLTxuujrzR867McjJcl8tsanb/NFESN2C7FXStziBiEmRc6LY4vMiUQf3RSVOtK2X9PCdUS1jfg3dLkreErRTQv6TGeP0CSoEk9mihLIVNpr+x2QbRHjojK2sSxsXW/7zm8= Received: from DB7PR05MB4426.eurprd05.prod.outlook.com (52.134.109.15) by DB7PR05MB4236.eurprd05.prod.outlook.com (52.134.108.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.18; Sun, 16 Sep 2018 05:53:31 +0000 Received: from DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::c8e7:d9c1:5054:693b]) by DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::c8e7:d9c1:5054:693b%6]) with mapi id 15.20.1122.020; Sun, 16 Sep 2018 05:53:31 +0000 From: Shahaf Shuler To: Jerin Jacob CC: Wenzhuo Lu , Jingjing Wu , Bernard Iremonger , John McNamara , Marko Kovacevic , Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko , Olivier Matz , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 3/4] ethdev: add Rx offload outer L4 checksum definitions Thread-Index: AQHUS9fiqYUnfgaMw0aR61VBVUdB1aTyaegA Date: Sun, 16 Sep 2018 05:53:30 +0000 Message-ID: References: <20180913134707.23698-1-jerin.jacob@caviumnetworks.com> <20180913134707.23698-3-jerin.jacob@caviumnetworks.com> <20180914030541.GA3822@jerin> In-Reply-To: <20180914030541.GA3822@jerin> 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; DB7PR05MB4236; 6:aoXcBSBBgnCbIywenkkx///a8wFYpVqo6AOPlSMgjZoEzU0FGDaVyQDEaWYzB9eViyas1qfXFsGhtZPt1wlo8RU7Ez3Bjhx/TZAEQI1Rw0Q4UKLXCMEL9+yvKIm0x0/yQaTpgc6XTs7YPJXXe6tIxl7IaBPxHNENWkVGF8RFfQpuMzAHnSy9OjeKfoxLfazSs7AA3+XPPtgetpgHYLux5J8TmktROVEYZWX4jBwzlHpWPVR4Jcy/YwZSvbcMQ8rJP3wfh666SCIHefUJIBoJrbQCPJjpGFLRwEzuZlFen1g6CKJaAktI5zZzroeQByVUdZmd9sIBrxWrxiaNaU+KFb2D2MFPWcbrMGD+M0MTSjMqSU7c6SVtMjhrJKVomwLvspS82XzSkDxI8OV2kg9mPhBxVH4NNl6FR4pMkzZEnMjmPjALBshAsznikg9iaqtSC390gORcG0KD2o1NQpTFUQ==; 5:mdLIABvcyJqQIdCBLQT6eatQrqhTUBkaXODMy894OB3Eu1R4YRNSFfXm33qJPAF3dvR82MMWTDoF6RNCoDgJcTmeVoRbw1a0gT35aBWIB2ou9ZJY6sjvQCGKy41EAb8F8MRrvDrpJX3es9cuKKtQP7GlusAoUq9jHm3Y3qOQHw8=; 7:qweB9Dfh28HtRIJjD8bSdPvSAN5NKmWkiLKWRVyJrIq6JL/BxeNLC+H3hGi+SpY6ZgIrXNw1NhMCe8iAPGdsrvGnL3V+Xt0KWiW2pLZucxFbSro8Rm/2yVhcFqJLyTLJTNuIsy1nt7Z6nB2t+mgzlgpt2hccArEtCGAqStddIowkSZWYCLg2e11qZMpe/X3/gIm91RjOYF/xOM8NMU9iOv2xC5CGiUKiBF5QISRID89bbcwIN1QuDHIOBBAvrElI x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: bea80ecc-7259-4b51-841d-08d61b98bb4d x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:DB7PR05MB4236; x-ms-traffictypediagnostic: DB7PR05MB4236: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(228905959029699); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231355)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699050); SRVR:DB7PR05MB4236; BCL:0; PCL:0; RULEID:; SRVR:DB7PR05MB4236; x-forefront-prvs: 079756C6B9 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(396003)(376002)(39860400002)(346002)(136003)(189003)(199004)(13464003)(81166006)(6246003)(9686003)(6436002)(55016002)(8676002)(2906002)(4326008)(99286004)(66066001)(7696005)(68736007)(316002)(53936002)(81156014)(33656002)(6916009)(8936002)(25786009)(93886005)(54906003)(5660300001)(446003)(6116002)(256004)(186003)(26005)(86362001)(229853002)(7416002)(11346002)(486006)(476003)(5250100002)(106356001)(97736004)(3846002)(2900100001)(105586002)(7736002)(6506007)(74316002)(14454004)(478600001)(76176011)(102836004)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR05MB4236; 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: lweyHFCRKNWBZXT5fX4ZGtfra0pTKeUUALIDoD5ilfunj1U4pEC8IYnushONCIL8eK7LpjIJM3Kc4QtOLgih1NZVJncOW3cF0BjD6wP9MuArXRvWnw/etFHVp6Rt20hnMDanU3VTi2fqnlGxH44l3i1O8G7E4d5e1QVsNakqIBL9JIOSpGau9HPpdqjM1cl+e1tB5Lo+aH8Vep/pgAfDLjfmF2HJPR4fHdaS3qL5nZZ2RD8yV/T8TehErVo3KoFtwjlBuHyRvwLDpWdbkjjXI76XvuGl7dx9CymRIq21psGiklHpQJEui4bbaoCTa7Shn/L3oruDg+zkppqVlu9mD3kKSU7YPJcWqgAfgYLIf0A= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: bea80ecc-7259-4b51-841d-08d61b98bb4d X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Sep 2018 05:53:30.8950 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR05MB4236 Subject: Re: [dpdk-dev] [PATCH 3/4] ethdev: add Rx offload outer L4 checksum definitions 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: Sun, 16 Sep 2018 05:53:32 -0000 Friday, September 14, 2018 6:06 AM, Jerin Jacob: > Subject: Re: [dpdk-dev] [PATCH 3/4] ethdev: add Rx offload outer L4 > checksum definitions >=20 > -----Original Message----- > > Date: Thu, 13 Sep 2018 17:24:26 +0000 > > From: Shahaf Shuler > > To: Jerin Jacob , Wenzhuo Lu > > , Jingjing Wu , Bernard > > Iremonger , John McNamara > > , Marko Kovacevic > > , Thomas Monjalon > , > > Ferruh Yigit , Andrew Rybchenko > > , Olivier Matz > > CC: "dev@dpdk.org" > > Subject: RE: [dpdk-dev] [PATCH 3/4] ethdev: add Rx offload outer L4 > > checksum definitions > > > > > > Thursday, September 13, 2018 4:47 PM, Jerin Jacob: > > > Subject: [dpdk-dev] [PATCH 3/4] ethdev: add Rx offload outer L4 > > > checksum definitions > > > > > > Introduced DEV_RX_OFFLOAD_OUTER_UDP_CKSUM, > > > DEV_RX_OFFLOAD_OUTER_TCP_CKSUM and > DEV_RX_OFFLOAD_OUTER_SCTP_CKSUM > > > offload flags and > > > > Out of curiosity, which TCP based tunnels you target with this current > patchset? >=20 > I am not aware of any _popular_/_non proprietary_ protocols except SSTP > for VPN. And your device can support such protocol inner and outer checksum check? >>From what I see the inner packet of SSTP is encrypted by SSL. So for outer and inner checksum validation device will need to: 1. compute the outer TCP checksum 2. if valid decrypt the inner PPP packet 3. compute the PPP checksum.=20