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 C180AA045E for ; Fri, 31 May 2019 18:15:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9CBAE1B9BC; Fri, 31 May 2019 18:15:02 +0200 (CEST) Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-eopbgr780078.outbound.protection.outlook.com [40.107.78.78]) by dpdk.org (Postfix) with ESMTP id EBAEA1B9BC for ; Fri, 31 May 2019 18:15:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=AQUANTIA1COM.onmicrosoft.com; s=selector1-AQUANTIA1COM-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KcLW/U/n0k6YTgyLvXDCJS+kuTmGePgrd9JxTwpZP+8=; b=eoILzjO00Lxi2HqoY/cNc97HY+bhI++leEVWeEK5mWlrhOnIJJMvfXujeKpY9o/K4VQ+Z1wiPDMOV1Jwub4Vk89CvIztKWknfk1X+fhJsGaHVbBDBTwRMVT0sXfliJ9CMnEf2kPuHnJpRAN5NCIzYfYwzL1wwWb2yWf8EJg9Q3E= Received: from MWHPR11MB1968.namprd11.prod.outlook.com (10.175.54.143) by MWHPR11MB1262.namprd11.prod.outlook.com (10.169.236.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1922.23; Fri, 31 May 2019 16:15:00 +0000 Received: from MWHPR11MB1968.namprd11.prod.outlook.com ([fe80::fd20:d79e:4027:a437]) by MWHPR11MB1968.namprd11.prod.outlook.com ([fe80::fd20:d79e:4027:a437%3]) with mapi id 15.20.1943.016; Fri, 31 May 2019 16:15:00 +0000 From: Igor Russkikh To: "dev@dpdk.org" CC: "ferruh.yigit@intel.com" , Pavel Belous , John McNamara , Konstantin Ananyev , Thomas Monjalon , Akhil Goyal , Declan Doherty , Igor Russkikh Thread-Topic: [RFC 5/5] net/atlantic: macsec security context draft Thread-Index: AQHVF8v+3LcRfvTRE0iMnFrOR5xg8g== Date: Fri, 31 May 2019 16:15:00 +0000 Message-ID: References: <4595add642bf8ca1114488657d12a973b966e8f5.1559319237.git.igor.russkikh@aquantia.com> In-Reply-To: <4595add642bf8ca1114488657d12a973b966e8f5.1559319237.git.igor.russkikh@aquantia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HE1PR0401CA0056.eurprd04.prod.outlook.com (2603:10a6:3:19::24) To MWHPR11MB1968.namprd11.prod.outlook.com (2603:10b6:300:111::15) 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: 56e5f9c2-335e-4817-24d8-08d6e5e32115 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:MWHPR11MB1262; x-ms-traffictypediagnostic: MWHPR11MB1262: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2803; x-forefront-prvs: 00540983E2 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(136003)(39850400004)(366004)(346002)(376002)(189003)(199004)(256004)(14444005)(50226002)(66946007)(81166006)(8676002)(11346002)(44832011)(81156014)(14454004)(7736002)(478600001)(72206003)(5660300002)(1730700003)(476003)(2351001)(76176011)(2616005)(26005)(66446008)(71200400001)(186003)(73956011)(71190400001)(68736007)(66556008)(15650500001)(66476007)(64756008)(118296001)(2501003)(25786009)(99286004)(6916009)(305945005)(6116002)(6436002)(4326008)(5640700003)(6512007)(3846002)(102836004)(52116002)(36756003)(2906002)(8936002)(446003)(86362001)(6506007)(54906003)(316002)(107886003)(66066001)(386003)(53936002)(6486002)(486006); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR11MB1262; H:MWHPR11MB1968.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A: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: 4PRvcUsr2Sg3y6FhK0w/RYFh+C7oYv33UvaHj0PGjh8vhQmds3CV8U1HqEjZRiUVpei1V+LH/h7KYLG6GjJKh+LfrJsG/h9h15/MSPqyzdrHEceYDP40YcaKrilTg+DUNv28jELWzKwI5el1LA+57d0680GaCin8kZk5W0AXo1AAD5k8acm+b6+XLoPzbS9WF9ZrDYQB0GCP6i2eCVOGzsR1HywF3/E+GBTucyTgnNpAnUxUWq7XIHMPQZb/MPcwQpb/J9UNkInfe3/gyFf3LDl/FHYc70oudov+ZzlWe7Qhhb7jgpGFGTPE4SNRHh2HyahnI8pu9PDGWuSwkIVWxQiAAakls3gQmXK+Qm0Z2a76OE/ztgs1eCRjPrZfeaqiVBukIh1Yzrons8xfoB2EiYXT6BxH42PUVkgJrsu3upo= 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: 56e5f9c2-335e-4817-24d8-08d6e5e32115 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 May 2019 16:15:00.0669 (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-CrossTenant-userprincipalname: irusski@aquantia.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1262 Subject: [dpdk-dev] [RFC 5/5] net/atlantic: macsec security context draft 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" LS0tDQogZHJpdmVycy9uZXQvYXRsYW50aWMvYXRsX2V0aGRldi5jIHwgMTE2ICsrKysrKysrKysr KysrKysrKysrKysrKysrKysrKw0KIGRyaXZlcnMvbmV0L2F0bGFudGljL21lc29uLmJ1aWxkICB8 ICAgMSArDQogMiBmaWxlcyBjaGFuZ2VkLCAxMTcgaW5zZXJ0aW9ucygrKQ0KDQpkaWZmIC0tZ2l0 IGEvZHJpdmVycy9uZXQvYXRsYW50aWMvYXRsX2V0aGRldi5jIGIvZHJpdmVycy9uZXQvYXRsYW50 aWMvYXRsX2V0aGRldi5jDQppbmRleCBjOWMxNzk1YTE2MzkuLmI2ZmNmMzZmMGYyNyAxMDA2NDQN Ci0tLSBhL2RyaXZlcnMvbmV0L2F0bGFudGljL2F0bF9ldGhkZXYuYw0KKysrIGIvZHJpdmVycy9u ZXQvYXRsYW50aWMvYXRsX2V0aGRldi5jDQpAQCAtNSw2ICs1LDkgQEANCiAjaW5jbHVkZSA8cnRl X3N0cmluZ19mbnMuaD4NCiAjaW5jbHVkZSA8cnRlX2V0aGRldl9wY2kuaD4NCiAjaW5jbHVkZSA8 cnRlX2FsYXJtLmg+DQorI2luY2x1ZGUgPHJ0ZV9zZWN1cml0eS5oPg0KKyNpbmNsdWRlIDxydGVf c2VjdXJpdHlfZHJpdmVyLmg+DQorI2luY2x1ZGUgPHJ0ZV9jcnlwdG9kZXYuaD4NCiANCiAjaW5j bHVkZSAiYXRsX2V0aGRldi5oIg0KICNpbmNsdWRlICJhdGxfY29tbW9uLmgiDQpAQCAtMTIyLDYg KzEyNSw3IEBAIHN0YXRpYyBpbnQgZXRoX2F0bF9wY2lfcmVtb3ZlKHN0cnVjdCBydGVfcGNpX2Rl dmljZ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