Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933722AbeAJLhQ (ORCPT + 1 other); Wed, 10 Jan 2018 06:37:16 -0500 Received: from mail-ve1eur01on0046.outbound.protection.outlook.com ([104.47.1.46]:20702 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933529AbeAJLhO (ORCPT ); Wed, 10 Jan 2018 06:37:14 -0500 From: Yossef Efraim To: Shannon Nelson , "David S. Miller" , Steffen Klassert , Herbert Xu , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Boris Pismenny , Yevgeny Kliteynik , Yossi Kuperman Subject: RE: [PATCH net-next 3/3] xfrm: Add ESN support for IPSec HW offload Thread-Topic: [PATCH net-next 3/3] xfrm: Add ESN support for IPSec HW offload Thread-Index: AQHTaC49YNlGHAWMkU6aq8Ji5FPjlaMu43gAgD5S4MA= Date: Wed, 10 Jan 2018 11:37:09 +0000 Message-ID: References: <1511862571-3494-1-git-send-email-yossefe@mellanox.com> <1511862571-3494-3-git-send-email-yossefe@mellanox.com> <6bfd5012-a22b-a70e-c052-21f2d47d364f@oracle.com> In-Reply-To: <6bfd5012-a22b-a70e-c052-21f2d47d364f@oracle.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=yossefe@mellanox.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;HE1PR0501MB2716;7:GPeJIW35Ok8qw5hsA0v18bwt7qlNPquQQQq9SvvJpNLZKFlDuh8tPUFJzG/FZD+l/Si79e/ijlTWnNSYSZtFQYTGA8r9v8iE7SI6ULPaDlBFX1eQk1XwvmCm+bqK/LtnUYIugc5UNE/a48sd1S+UtzE8xjPzNq4BQ1IZJBWAOAo9F8TsOom9akwxyZx5TaL+Xbw/gbxiDpaLTiUg97QhLvNeCKOb7FxYci6nsqhb8HzrjzgUa3O8zyjmSavO5HO5 x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: c0c55350-e00d-4fe3-4432-08d5581e7bce x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(48565401081)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7153060)(7193020);SRVR:HE1PR0501MB2716; x-ms-traffictypediagnostic: HE1PR0501MB2716: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231023)(944501075)(3002001)(10201501046)(6055026)(6041268)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011);SRVR:HE1PR0501MB2716;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:HE1PR0501MB2716; x-forefront-prvs: 0548586081 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(39860400002)(346002)(376002)(39380400002)(366004)(51914003)(199004)(189003)(24454002)(14454004)(105586002)(3280700002)(316002)(2501003)(33656002)(54906003)(106356001)(5250100002)(110136005)(68736007)(102836004)(3660700001)(8936002)(8676002)(81156014)(81166006)(76176011)(7696005)(6506007)(53546011)(229853002)(478600001)(66066001)(4326008)(2900100001)(5660300001)(99286004)(2950100002)(2201001)(53936002)(2906002)(55016002)(25786009)(74316002)(97736004)(9686003)(305945005)(86362001)(7736002)(6246003)(107886003)(3846002)(6116002)(6436002);DIR:OUT;SFP:1101;SCL:1;SRVR:HE1PR0501MB2716;H:VI1PR0502MB3758.eurprd05.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; x-microsoft-antispam-message-info: q+A2qn7wJURc/Jrw6Vf2RlTlgmuMrFNrhzqwzIx9nji+F0ntVU3f0CmdvxGfgCK4LhcAr09XxwvnZkaWBgeWtA== 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: c0c55350-e00d-4fe3-4432-08d5581e7bce X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Jan 2018 11:37:09.0609 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0501MB2716 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: PiBPbiAxMS8yOC8yMDE3IDE6NDkgQU0sIHlvc3NlZmVAbWVsbGFub3guY29tIHdyb3RlOg0KPiA+ IEZyb206IFlvc3NlZiBFZnJhaW0gPHlvc3NlZmVAbWVsbGFub3guY29tPg0KPiA+DQo+ID4gVGhp cyBwYXRjaCBhZGRzIEVTTiBzdXBwb3J0IHRvIElQc2VjIGRldmljZSBvZmZsb2FkLg0KPiA+IEFk ZGluZyBuZXcgeGZybSBkZXZpY2Ugb3BlcmF0aW9uIHRvIHN5bmNocm9uaXplIGRldmljZSBFU04u DQo+ID4NCj4gPiBTaWduZWQtb2ZmLWJ5OiBZb3NzZWYgRWZyYWltIDx5b3NzZWZlQG1lbGxhbm94 LmNvbT4NCj4gPiAtLS0NCj4gPiAgIGluY2x1ZGUvbGludXgvbmV0ZGV2aWNlLmggfCAgMSArDQo+ ID4gICBpbmNsdWRlL25ldC94ZnJtLmggICAgICAgIHwgMTIgKysrKysrKysrKysrDQo+ID4gICBu ZXQveGZybS94ZnJtX2RldmljZS5jICAgIHwgIDQgKystLQ0KPiA+ICAgbmV0L3hmcm0veGZybV9y ZXBsYXkuYyAgICB8ICAyICsrDQo+ID4gICA0IGZpbG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