Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932357AbeAKI25 (ORCPT + 1 other); Thu, 11 Jan 2018 03:28:57 -0500 Received: from mail-eopbgr10069.outbound.protection.outlook.com ([40.107.1.69]:52920 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932160AbeAKI2z (ORCPT ); Thu, 11 Jan 2018 03:28:55 -0500 From: Yossi Kuperman To: Shannon Nelson CC: Yossef Efraim , Jonathan Corbet , "David S. Miller" , Steffen Klassert , Herbert Xu , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , Boris Pismenny , Yevgeny Kliteynik Subject: RE: [PATCH net-next v2] xfrm: Add ESN support for IPSec HW offload Thread-Topic: [PATCH net-next v2] xfrm: Add ESN support for IPSec HW offload Thread-Index: AQHTif7WlCKxchudjUCGCX5U1N/V9KNtXx+AgABc44iAAEZXAIAASeJA Date: Thu, 11 Jan 2018 08:28:51 +0000 Message-ID: References: <1515580453-18470-1-git-send-email-yossefe@mellanox.com> In-Reply-To: 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=yossiku@mellanox.com; x-originating-ip: [192.114.105.254] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DB6PR0501MB2711;7:EKaJtVOjnLkRRIjdI2gaw1EBfpElVbn3zbDoHA+0XPsaPr1e+qqF7hGpCyOKgmVd2YMO4rBoic7y21NyrXxSYoTeLfkijyOfZr14Z8EvBzmDvj/GQciylqE+G9ptJ6uoXwAFPXpfEsdOvNMrUZGCXVWyviibcGVQIM43HrWfqCdCPjeIlQbt+sFbboJo8uyeJmkgAvSv5hA9GoqygOY3+AdSH0fn/ST+LJaCDDB6OnsW+cwmn4r0HXG2nuWRj1Sf x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: e62549ba-1248-4919-f100-08d558cd5866 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(48565401081)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7153060)(7193020);SRVR:DB6PR0501MB2711; x-ms-traffictypediagnostic: DB6PR0501MB2711: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(146099531331640); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(8121501046)(5005006)(3002001)(3231023)(944501075)(10201501046)(93006095)(93001095)(6055026)(6041268)(20161123564045)(20161123562045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DB6PR0501MB2711;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:DB6PR0501MB2711; x-forefront-prvs: 0549E6FD50 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(39380400002)(366004)(396003)(346002)(376002)(24454002)(51444003)(199004)(189003)(478600001)(8676002)(81156014)(4326008)(5660300001)(54906003)(7736002)(6916009)(2950100002)(93886005)(6116002)(3846002)(14454004)(3280700002)(25786009)(105586002)(3660700001)(305945005)(229853002)(2906002)(74316002)(86362001)(102836004)(107886003)(106356001)(6436002)(33656002)(59450400001)(6506007)(8936002)(9686003)(53546011)(5250100002)(55016002)(2900100001)(53936002)(6246003)(68736007)(66066001)(316002)(99286004)(81166006)(7696005)(76176011)(97736004);DIR:OUT;SFP:1101;SCL:1;SRVR:DB6PR0501MB2711;H:DB6PR0501MB2710.eurprd05.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; x-microsoft-antispam-message-info: nzAvtq/ItPhxHVZgZYiFwFKocanoMBxqUB/Q6iqWdEhHR0KaxvQ/srgbNltVtFWhjFjXWLoVxIrwa0L5nJh14Q== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: e62549ba-1248-4919-f100-08d558cd5866 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Jan 2018 08:28:51.5755 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2711 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: PiBGcm9tOiBTaGFubm9uIE5lbHNvbiBbbWFpbHRvOnNoYW5ub24ubmVsc29uQG9yYWNsZS5jb21d DQo+IFNlbnQ6IFRodXJzZGF5LCBKYW51YXJ5IDExLCAyMDE4IDU6MjEgQU0NCj4gDQo+IE9uIDEv MTAvMjAxOCAzOjA5IFBNLCBZb3NzaSBLdXBlcm1hbiB3cm90ZToNCj4gPj4gT24gMTAgSmFuIDIw MTgsIGF0IDE5OjM2LCBTaGFubm9uIE5lbHNvbiA8c2hhbm5vbi5uZWxzb25Ab3JhY2xlLmNvbT4g d3JvdGU6DQo+ID4+DQo+ID4+PiBPbiAxLzEwLzIwMTggMjozNCBBTSwgeW9zc2VmZUBtZWxsYW5v eC5jb20gd3JvdGU6DQo+ID4+PiBGcm9tOiBZb3NzZWYgRWZyYWltIDx5b3NzZWZlQG1lbGxhbm94 LmNvbT4NCj4gPj4+IFRoaXMgcGF0Y2ggYWRkcyBFU04gc3VwcG9ydCB0byBJUHNlYyBkZXZpY2Ug b2ZmbG9hZC4NCj4gPj4+IEFkZGluZyBuZXcgeGZybSBkZXZpY2Ugb3BlcmF0aW9uIHRvIHN5bmNo cm9uaXplIGRldmljZSBFU04uDQo+ID4+PiBTaWduZWQtb2ZmLWJ5OiBZb3NzZWYgRWZyYWltIDx5 b3NzZWZlQG1lbG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