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 444EBA045E for ; Fri, 31 May 2019 18:15:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8C5CE1B9AF; Fri, 31 May 2019 18:14:52 +0200 (CEST) Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-eopbgr780070.outbound.protection.outlook.com [40.107.78.70]) by dpdk.org (Postfix) with ESMTP id B164D1B9A3 for ; Fri, 31 May 2019 18:14:50 +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=+txudga9IkJsAbOf6uTW8RF1f46g7d5lM1nzilNBvlY=; b=ZSzJmJJeIFKzbHotuHlbbV7YdzpcqH2q9goAEczGyLROvbYkzZwvF+PjIkNxMfwXG3lYPrKjlg+863bEbHD7PdDQKa3jMhzvQA6aX2QcuMdV8jTI0AGD6XgFpgE4ZkSxgHXazNxzfmCgyEZhAcSbaQDwygarp49NCThf7sY7dqI= 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:14:48 +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:14:48 +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 2/5] app/testpmd: macsec on command draft via security context Thread-Index: AQHVF8v4ZNO8ylb0CUKs+MwCwK9cPg== Date: Fri, 31 May 2019 16:14:48 +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: a9a71632-bc50-4a17-1052-08d6e5e31a3b 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:7219; 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: +qVFct2BhUQtGnNwd5WuIaNYESC7AbIjtHHPzyduzrtBi0T22QWKE1N/htjhYTPZ3261d/oTFztIQ/aMk7pjP97ZCW3hH95jjpkKwDomMMqaJ+csaviijZTBGn2MB8FfNxFn4v6Q3QVBIrPJe1zuUyHBm3g03CmZMlZASpMR+6h0G9aQpcQXXrftCfYpoJYkCM8rAyKCPV+yox+OFck2ogmY9nsK/t5tEdCn3afoL2KICtwIfshwDIsZG4zbU1zrNRxxkmSKoPsp2KHV6AjdgOt9JWLHvg+9uoT5AaDJryOdzOIGJ25Bcrke4rTGE+H/OTmRvp8GYpNcqeNja5Ss3oZ6zNRDPKhVLWumnYGAoAIB/IQd4IAio3uL/jO0JxhPhQLDn7Vd0hg2uEXQJScPmaNvqwUwkZF6lS8QtPtcmqY= 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: a9a71632-bc50-4a17-1052-08d6e5e31a3b X-MS-Exchange-CrossTenant-originalarrivaltime: 31 May 2019 16:14:48.6284 (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 2/5] app/testpmd: macsec on command draft via security context 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" SGVyZSB3ZSBjcmVhdGUvZ2V0IHNlY3VyaXR5IG1lbXBvb2wsIGdldCBzZWNfY3R4LCBhbmQgdGhl bg0KcmVxdWVzdCBzZXNzaW9uIGNyZWF0aW9uIHdpdGggbWFjc2VjIHNwZWNpZmljIHNlc3Npb24g Y29uZmlndXJhdGlvbi4NCg0KZW5jcnlwdCBhbmQgcmVwbGF5X3Byb3RlY3Rpb24gcGFyYW1ldGVy cyBhcmUgcmVhbGx5IG5vdCBhIGdsb2JhbCBtYWNzZWMNCmF0dHJpYnV0ZXMsIHRoZXkgYXJlIHJl bGF0ZWQgdG8gdHggYW5kIHJ4IHNlY3VyaXR5IGNvbm5lY3Rpb24gcHJvcGVydGllcy4NCg0KQnV0 IHdlIGtlZXAgdGVzdHBtZCBjb21tYW5kcyBzdHJ1Y3R1cmUgdGhlIHNhbWUgZm9yIG5vdyBhbmQg d2lsbCByZWRlc2lnbg0KaXQgaW4gbGF0ZXIgY29tbWl0cy4NCg0KU2lnbmVkLW9mZi1ieTogSWdv ciBSdXNza2lraCA8aWdvci5ydXNza2lraEBhcXVhbnRpYS5jb20+DQotLS0NCiBhcHAvdGVzdC1w bWQvY21kbGluZS5jIHwgNTQgKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKystLS0t LS0tDQogMSBmaWxlIGNoYW5nZWQsIDQ2IGluc2VydGlvbnMoKyksIDggZGVsZXRpb25zKC0pDQoN CmRpZmYgLS1naXQgYS9hcHAvdGVzdC1wbWQvY21kbGluZS5jIGIvYXBwL3Rlc3QtcG1kL2NtZGxp bmUuYw0KaW5kZXggYzEwNDJkZDk4MjE0Li5kYmVlM2Q5NThjMmUgMTAwNjQ0DQotLS0gYS9hcHAv dGVzdC1w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