From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-eopbgr790077.outbound.protection.outlook.com [40.107.79.77]) by dpdk.org (Postfix) with ESMTP id 1FD305592 for ; Wed, 10 Apr 2019 13:18:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=AQUANTIA1COM.onmicrosoft.com; s=selector1-aquantia-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fEN/3aV1EOskfOINKeraXqm36dkydOJYkOhDOnQa2wM=; b=e+qeoLfGUxmhYou0eGAnz8S+JrRTYEG37HPR/gz7aAgDxMVBGFX4qWWFboRzJs50jeErT5TOZuOa6ElKLPnJBIKBhVARj4XvUfLQkRWsj081aFeylMUMqGHN86BHaikyfael9lrFjcyDdhiK0GyE3hWj57asJycE9plRa+CDs7g= Received: from BN8PR11MB3618.namprd11.prod.outlook.com (20.178.219.85) by BN8PR11MB3540.namprd11.prod.outlook.com (20.178.218.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1771.21; Wed, 10 Apr 2019 11:18:40 +0000 Received: from BN8PR11MB3618.namprd11.prod.outlook.com ([fe80::9d38:1845:842d:a489]) by BN8PR11MB3618.namprd11.prod.outlook.com ([fe80::9d38:1845:842d:a489%3]) with mapi id 15.20.1771.016; Wed, 10 Apr 2019 11:18:40 +0000 From: Igor Russkikh To: "dev@dpdk.org" CC: Pavel Belous , Wenzhuo Lu , Jingjing Wu , Bernard Iremonger , John McNamara , Marko Kovacevic , Konstantin Ananyev , Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko , Igor Russkikh Thread-Topic: [PATCH 01/10] ethdev: introduce MACSEC device ops Thread-Index: AQHU748mXHLLDK9oYE6FEmEkoBUS2w== Date: Wed, 10 Apr 2019 11:18:40 +0000 Message-ID: <69b3fcf19cb3e11fae93281f40a1bbc0ec5a2e38.1554894242.git.igor.russkikh@aquantia.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR05CA0061.namprd05.prod.outlook.com (2603:10b6:a03:74::38) To BN8PR11MB3618.namprd11.prod.outlook.com (2603:10b6:408:85::21) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Igor.Russkikh@aquantia.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [95.79.108.179] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: fa3dd50a-de3a-4242-b206-08d6bda64886 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(2017052603328)(7193020); SRVR:BN8PR11MB3540; x-ms-traffictypediagnostic: BN8PR11MB3540: x-microsoft-antispam-prvs: x-forefront-prvs: 00032065B2 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(39850400004)(376002)(366004)(136003)(346002)(199004)(189003)(486006)(107886003)(6506007)(316002)(2616005)(386003)(54906003)(7416002)(53936002)(8936002)(68736007)(446003)(6916009)(476003)(72206003)(2501003)(105586002)(11346002)(44832011)(99286004)(2351001)(52116002)(186003)(26005)(118296001)(106356001)(14454004)(102836004)(76176011)(71200400001)(81156014)(7736002)(14444005)(8676002)(81166006)(25786009)(256004)(6116002)(5660300002)(71190400001)(1730700003)(5640700003)(2906002)(66066001)(6512007)(478600001)(6486002)(50226002)(305945005)(97736004)(4326008)(3846002)(36756003)(6436002)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN8PR11MB3540; H:BN8PR11MB3618.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: aquantia.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: aBqlm+3kEcbHpT/YoIkKTtHiX4FkKQe0ydqw8lwDR050/lTSmKHCVbR3CzZqm/J6J+D/BW2LmY9SaqrRhJqmE3NKMe0QWO+zwBPxFPNW3y6s1i9okwMqhYjeJh2tV65WiT89QBs1E/9g9JsTiYlkFEt00eUihdYsCVR1JFpCMDN8hn6jH2zDfxPlt/xZWxr2jGU2KtzZW7buEOs+mC/E4ZxoLer35ibvkA3vSYY7cwKj1tK3WHD5RM2Ao/S9lQ/Ar+sMh5ueIoPNSGq63ZQMXTuG4pIUvFXcymKV4vZ5/FCwa7aO/MfAj3XEslUuYLuFDG5szrKBMurZGQcTZziOFb89XfeA8SyprTjh8KCHdjoJG0xmWrThOUR1lkLp4usqNVZHYwNvuzKWXChpeWQfTYfOpsuBKhXqAF+rxfTn57Q= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: aquantia.com X-MS-Exchange-CrossTenant-Network-Message-Id: fa3dd50a-de3a-4242-b206-08d6bda64886 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Apr 2019 11:18:40.2504 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 83e2e134-991c-4ede-8ced-34d47e38e6b1 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR11MB3540 Subject: [dpdk-dev] [PATCH 01/10] ethdev: introduce MACSEC device ops 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, 10 Apr 2019 11:18:43 -0000 TUFDU0VDIHJlbGF0ZWQgZGV2aWNlIG9wcywgQVBJIGFuZCBwYXJhbWV0ZXJzIGFyZSB0YWtlbiBm cm9tIHRoZQ0KZXhpc3RpbmcgaXhnYmUgUE1EIG9wcw0KDQpTaWduZWQtb2Z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Y29uZmlndXJlIHR4ICovDQorCWV0aF9t YWNzZWNfc2VsZWN0X3J4c2FfdCBtYWNzZWNfc2VsZWN0X3J4c2E7DQorCS8qKiBtYWNzZWMgc2Vs ZWN0IHJ4IHNlY3VyaXR5IGFzc29jaWF0aW9uICovDQorCWV0aF9tYWNzZWNfc2VsZWN0X3R4c2Ff dCBtYWNzZWNfc2VsZWN0X3R4c2E7DQorCS8qKiBtYWNzZWMgc2VsZWN0IHR4IHNlY3VyaXR5IGFz c29jaWF0aW9uICovDQogfTsNCiANCiAvKioNCi0tIA0KMi4xNy4xDQoNCg== From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 94026A0096 for ; Wed, 10 Apr 2019 13:18:49 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 424935689; Wed, 10 Apr 2019 13:18:44 +0200 (CEST) Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-eopbgr790077.outbound.protection.outlook.com [40.107.79.77]) by dpdk.org (Postfix) with ESMTP id 1FD305592 for ; Wed, 10 Apr 2019 13:18:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=AQUANTIA1COM.onmicrosoft.com; s=selector1-aquantia-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fEN/3aV1EOskfOINKeraXqm36dkydOJYkOhDOnQa2wM=; b=e+qeoLfGUxmhYou0eGAnz8S+JrRTYEG37HPR/gz7aAgDxMVBGFX4qWWFboRzJs50jeErT5TOZuOa6ElKLPnJBIKBhVARj4XvUfLQkRWsj081aFeylMUMqGHN86BHaikyfael9lrFjcyDdhiK0GyE3hWj57asJycE9plRa+CDs7g= Received: from BN8PR11MB3618.namprd11.prod.outlook.com (20.178.219.85) by BN8PR11MB3540.namprd11.prod.outlook.com (20.178.218.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1771.21; Wed, 10 Apr 2019 11:18:40 +0000 Received: from BN8PR11MB3618.namprd11.prod.outlook.com ([fe80::9d38:1845:842d:a489]) by BN8PR11MB3618.namprd11.prod.outlook.com ([fe80::9d38:1845:842d:a489%3]) with mapi id 15.20.1771.016; Wed, 10 Apr 2019 11:18:40 +0000 From: Igor Russkikh To: "dev@dpdk.org" CC: Pavel Belous , Wenzhuo Lu , Jingjing Wu , Bernard Iremonger , John McNamara , Marko Kovacevic , Konstantin Ananyev , Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko , Igor Russkikh Thread-Topic: [PATCH 01/10] ethdev: introduce MACSEC device ops Thread-Index: AQHU748mXHLLDK9oYE6FEmEkoBUS2w== Date: Wed, 10 Apr 2019 11:18:40 +0000 Message-ID: <69b3fcf19cb3e11fae93281f40a1bbc0ec5a2e38.1554894242.git.igor.russkikh@aquantia.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR05CA0061.namprd05.prod.outlook.com (2603:10b6:a03:74::38) To BN8PR11MB3618.namprd11.prod.outlook.com (2603:10b6:408:85::21) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Igor.Russkikh@aquantia.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [95.79.108.179] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: fa3dd50a-de3a-4242-b206-08d6bda64886 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(2017052603328)(7193020); SRVR:BN8PR11MB3540; x-ms-traffictypediagnostic: BN8PR11MB3540: x-microsoft-antispam-prvs: x-forefront-prvs: 00032065B2 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(39850400004)(376002)(366004)(136003)(346002)(199004)(189003)(486006)(107886003)(6506007)(316002)(2616005)(386003)(54906003)(7416002)(53936002)(8936002)(68736007)(446003)(6916009)(476003)(72206003)(2501003)(105586002)(11346002)(44832011)(99286004)(2351001)(52116002)(186003)(26005)(118296001)(106356001)(14454004)(102836004)(76176011)(71200400001)(81156014)(7736002)(14444005)(8676002)(81166006)(25786009)(256004)(6116002)(5660300002)(71190400001)(1730700003)(5640700003)(2906002)(66066001)(6512007)(478600001)(6486002)(50226002)(305945005)(97736004)(4326008)(3846002)(36756003)(6436002)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN8PR11MB3540; H:BN8PR11MB3618.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: aquantia.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: aBqlm+3kEcbHpT/YoIkKTtHiX4FkKQe0ydqw8lwDR050/lTSmKHCVbR3CzZqm/J6J+D/BW2LmY9SaqrRhJqmE3NKMe0QWO+zwBPxFPNW3y6s1i9okwMqhYjeJh2tV65WiT89QBs1E/9g9JsTiYlkFEt00eUihdYsCVR1JFpCMDN8hn6jH2zDfxPlt/xZWxr2jGU2KtzZW7buEOs+mC/E4ZxoLer35ibvkA3vSYY7cwKj1tK3WHD5RM2Ao/S9lQ/Ar+sMh5ueIoPNSGq63ZQMXTuG4pIUvFXcymKV4vZ5/FCwa7aO/MfAj3XEslUuYLuFDG5szrKBMurZGQcTZziOFb89XfeA8SyprTjh8KCHdjoJG0xmWrThOUR1lkLp4usqNVZHYwNvuzKWXChpeWQfTYfOpsuBKhXqAF+rxfTn57Q= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: aquantia.com X-MS-Exchange-CrossTenant-Network-Message-Id: fa3dd50a-de3a-4242-b206-08d6bda64886 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Apr 2019 11:18:40.2504 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 83e2e134-991c-4ede-8ced-34d47e38e6b1 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR11MB3540 Subject: [dpdk-dev] [PATCH 01/10] ethdev: introduce MACSEC device ops 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190410111840.GC2naZWD4KVYvrm-cOpoJWrwmetynW4lX1g90YoK7s0@z> TUFDU0VDIHJlbGF0ZWQgZGV2aWNlIG9wcywgQVBJIGFuZCBwYXJhbWV0ZXJzIGFyZSB0YWtlbiBm cm9tIHRoZQ0KZXhpc3RpbmcgaXhnYmUgUE1EIG9wcw0KDQpTaWduZWQtb2ZmLWJ5OiBJZ29yIFJ1 c3NraWtoIDxpZ29yLnJ1c3NraWtoQGFxdWFudGlhLmNvbT4NCi0tLQ0KIGxpYi9saWJydGVfZXRo ZGV2L3J0ZV9ldGhkZXYuYyAgICAgIHwgIDg3ICsrKysrKysrKysrKysrKysrKysrKw0KIGxpYi9s aWJydGVfZXRoZGV2L3J0ZV9ldGhkZXYuaCAgICAgIHwgMTE1ICsrKysrKysrKysrKysrKysrKysr KysrKysrKysNCiBsaWIvbGlicnRlX2V0aGRldi9ydGVfZXRoZGV2X2NvcmUuaCB8ICAyMyArKysr KysNCiAzIGZpbGVzIGNoYW5nZWQsIDIyNSBpbnNlcnRpb25zKCspDQoNCmRpZmYgLS1naXQgYS9s aWIvbGlicnRlX2V0aGRldi9ydGVfZXRoZGV2LmMgYi9saWIvbGlicnRlX2V0aGRldi9ydGVfZXRo ZGV2LmMNCmluZGV4IDI0M2JlYjRkZDVlZi4uMzE1YzMxZGM2NjdkIDEw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