From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-eopbgr820073.outbound.protection.outlook.com [40.107.82.73]) by dpdk.org (Postfix) with ESMTP id 0BDB65F1B for ; Wed, 10 Apr 2019 13:19:04 +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=lYw3S5LZLGZXtSmBSnIuE+fgw76YLxEkEYe+YMVtQqQ=; b=kaN+Y7XMrcuej01svcRBYoBhSyzvgNmrOFdIfhLxnUy6fp9H/7ft4m1/30rWe9Exz6Qz2LOmz1VWh3i/OSnnviE468DYRKpZRgULNirogS1QKCruxxTaFRPr87oGx+JcKJuct0burWamGtNltdSgWh98K5QXTYmZ+GWx/JlsNTY= 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:19:02 +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:19:02 +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 06/10] net/atlantic: macsec firmware interface Thread-Index: AQHU748zQ9psX1HDFE+0FODu/zRypQ== Date: Wed, 10 Apr 2019 11:19:02 +0000 Message-ID: <43e5c460000d04f7f8875189d746da05ab75e50a.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: 22c5dad4-ac72-48a0-bf92-08d6bda6559a 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: PF5JezSs03qCSZQsSUNbk3R+W7xg7DBcjxhSDhSJ6cweLtR8AfDYqDDK0RUOKfIs38WUu/A46tD0ssiTqRQGnKvX8RhU89rVPXS6RnBmjzyXJFnXvYzgvkkQxiKkha6IClbWMSRbGgr8tkranv6QR3tfQkMBj0jxLupo9uga7Lk/4GoeFsuAOE6jE1GukRkZbDHeyh6wOa5oZ1S6LV/Q7caEixFqXgQ8kEb1/oGj/ZTQgeGI13Bz9VhCAuNZWlTo0U43Zn/qgMFNX4pH/QynvxaTLkwVZcJctMi0GtsDrr78czxcwKvM/1zHjZZC0YNYOtF5CMBBG+uYVub/SWOoLxpuI1+0K1DftotvnaIKKAf7a07UyuO/17XalCVFbHUoPMXeNVTuqSnKq+XZYG2ucegKMWUgGkWurEKSy7Kfm7o= 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: 22c5dad4-ac72-48a0-bf92-08d6bda6559a X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Apr 2019 11:19:02.1632 (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 06/10] net/atlantic: macsec firmware interface 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:19:04 -0000 RnJvbTogUGF2ZWwgQmVsb3VzIDxwYXZlbC5iZWxvdXNAYXF1YW50aWEuY29tPg0KDQpJbXBsZW1l bnRhdGlvbiBvZiBmaXJtd2FyZSBpbnRlcmZhY2UgZm9yIG1hY3NlYyBjb25maWd1cmF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lcHJvbSwNCiAJLnNldF9lZXByb20gPSBhcV9mdzJ4X3NldF9l ZXByb20sDQorCS5zZW5kX21hY3NlY19yZXEgPSBhcV9mdzJ4X3NlbmRfbWFjc2VjX3JlcXVlc3Qs DQogfTsNCi0tIA0KMi4xNy4xDQoNCg== 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 EA066A0096 for ; Wed, 10 Apr 2019 13:19:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2148F5F36; Wed, 10 Apr 2019 13:19:08 +0200 (CEST) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-eopbgr820073.outbound.protection.outlook.com [40.107.82.73]) by dpdk.org (Postfix) with ESMTP id 0BDB65F1B for ; Wed, 10 Apr 2019 13:19:04 +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=lYw3S5LZLGZXtSmBSnIuE+fgw76YLxEkEYe+YMVtQqQ=; b=kaN+Y7XMrcuej01svcRBYoBhSyzvgNmrOFdIfhLxnUy6fp9H/7ft4m1/30rWe9Exz6Qz2LOmz1VWh3i/OSnnviE468DYRKpZRgULNirogS1QKCruxxTaFRPr87oGx+JcKJuct0burWamGtNltdSgWh98K5QXTYmZ+GWx/JlsNTY= 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:19:02 +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:19:02 +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 06/10] net/atlantic: macsec firmware interface Thread-Index: AQHU748zQ9psX1HDFE+0FODu/zRypQ== Date: Wed, 10 Apr 2019 11:19:02 +0000 Message-ID: <43e5c460000d04f7f8875189d746da05ab75e50a.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: 22c5dad4-ac72-48a0-bf92-08d6bda6559a 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: PF5JezSs03qCSZQsSUNbk3R+W7xg7DBcjxhSDhSJ6cweLtR8AfDYqDDK0RUOKfIs38WUu/A46tD0ssiTqRQGnKvX8RhU89rVPXS6RnBmjzyXJFnXvYzgvkkQxiKkha6IClbWMSRbGgr8tkranv6QR3tfQkMBj0jxLupo9uga7Lk/4GoeFsuAOE6jE1GukRkZbDHeyh6wOa5oZ1S6LV/Q7caEixFqXgQ8kEb1/oGj/ZTQgeGI13Bz9VhCAuNZWlTo0U43Zn/qgMFNX4pH/QynvxaTLkwVZcJctMi0GtsDrr78czxcwKvM/1zHjZZC0YNYOtF5CMBBG+uYVub/SWOoLxpuI1+0K1DftotvnaIKKAf7a07UyuO/17XalCVFbHUoPMXeNVTuqSnKq+XZYG2ucegKMWUgGkWurEKSy7Kfm7o= 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: 22c5dad4-ac72-48a0-bf92-08d6bda6559a X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Apr 2019 11:19:02.1632 (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 06/10] net/atlantic: macsec firmware interface 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: <20190410111902.N1G-z4bniUmlNlvKay0YhNHkeKTE7JhlL1k-t4HZILU@z> RnJvbTogUGF2ZWwgQmVsb3VzIDxwYXZlbC5iZWxvdXNAYXF1YW50aWEuY29tPg0KDQpJbXBsZW1l bnRhdGlvbiBvZiBmaXJtd2FyZSBpbnRlcmZhY2UgZm9yIG1hY3NlYyBjb25maWd1cmF0aW9uLg0K U3RydWN0dXJlIHdpdGggY29uZmlnIGRhdGEgaXMgd3JpdHRlbiBpbnRvIEZXIG1lbW9yeSwgdGhl biB3ZSB0cmlnZ2VyDQpGVyB0byBleGVjdXRlIHRoZSByZXF1ZXN0IGFuZCB3YWl0IGZvciByZXN1 bHQuDQoNClNpZ25lZC1vZmYtYnk6IFBhdmVsIEJlbG91cyA8cGF2ZWwuYmVsb3VzQGFxdWFudGlh LmNvbT4NClNpZ25lZC1vZmYtYnk6IElnb3IgUnVzc2tpa2ggPGlnb3IucnVzc2tpa2hAYXF1YW50 aWEuY29tPg0KLS0tDQogZHJpdmVycy9uZXQvYXRsYW50aWMvYXRsX3R5cGVzLmggICAgICAgICAg ICAgIHwgIDIgKw0KIC4uLi9uZXQvYXRsYW50aWMvaHdfYXRsL2h3X2F0bF91dGlsc19mdzJ4LmMg ICB8IDUxICsrKysrKysrKysrKysrKysrKysNCiAyIGZpbGVzIGNoYW5nZWQsIDUzIGluc2VydGlv bnMoKykNCg0KZGlmZiAtLWdpdCBhL2RyaXZlcnMvbmV0L2F0bGFudGljL2F0bF90eXBlcy5oIGIv ZHJpdmVycy9uZXQvYXRsYW50aWMvYXRsX3R5cGVzLmgNCmluZGV4IDNjYzllOTYwODllOC4uZGJ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