From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-eopbgr790083.outbound.protection.outlook.com [40.107.79.83]) by dpdk.org (Postfix) with ESMTP id 614691B76F for ; Wed, 17 Apr 2019 17:45:41 +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=DP+mPRTQOTIzL+aNqyou6U4d24w1PqxnSm6dJ0bMpmM=; b=F2yrzkIQbIy4rE7XfsRB8+V2SXxOUFhzWBzeB65NuMzBZQA+cUg0cWNSr84qUQ1QyRacPrBY58sNGg6al6rA6uI3vEOCpbpS7hCQO3hiugWByPbchp/9dxV4PTKx7xK9QeP0lXnxKys9B/Jm3pQrl7nUI2N7h0FZrBLrIxFdG50= Received: from DM6PR11MB3625.namprd11.prod.outlook.com (20.178.230.149) by DM6PR11MB3738.namprd11.prod.outlook.com (20.179.16.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.12; Wed, 17 Apr 2019 15:45:37 +0000 Received: from DM6PR11MB3625.namprd11.prod.outlook.com ([fe80::f035:2c20:5a61:7653]) by DM6PR11MB3625.namprd11.prod.outlook.com ([fe80::f035:2c20:5a61:7653%3]) with mapi id 15.20.1813.011; Wed, 17 Apr 2019 15:45:37 +0000 From: Igor Russkikh To: "dev@dpdk.org" CC: "ferruh.yigit@intel.com" , "thomas@monjalon.net" , "arybchenko@solarflare.com" , "konstantin.ananyev@intel.com" , Igor Russkikh , Pavel Belous Thread-Topic: [PATCH v2 4/7] net/atlantic: interrupt handling of macsec events Thread-Index: AQHU9TSZxnSHYjnTokyZqphDrMXoHA== Date: Wed, 17 Apr 2019 15:45:36 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR07CA0027.namprd07.prod.outlook.com (2603:10b6:a02:bc::40) To DM6PR11MB3625.namprd11.prod.outlook.com (2603:10b6:5:13a::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: d15d32d7-3e7c-4b08-245b-08d6c34bbbdc x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600140)(711020)(4605104)(2017052603328)(7193020); SRVR:DM6PR11MB3738; x-ms-traffictypediagnostic: DM6PR11MB3738: x-microsoft-antispam-prvs: x-forefront-prvs: 0010D93EFE x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39850400004)(346002)(396003)(136003)(376002)(366004)(199004)(189003)(2906002)(25786009)(54906003)(14444005)(256004)(7736002)(97736004)(316002)(4326008)(71200400001)(53936002)(5640700003)(107886003)(71190400001)(99286004)(68736007)(8676002)(1730700003)(5660300002)(86362001)(2351001)(6512007)(305945005)(52116002)(6436002)(106356001)(81166006)(2501003)(36756003)(81156014)(105586002)(8936002)(6916009)(386003)(102836004)(26005)(6116002)(186003)(50226002)(72206003)(6506007)(76176011)(6486002)(14454004)(66066001)(478600001)(3846002)(476003)(118296001)(486006)(2616005)(44832011)(446003)(11346002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR11MB3738; H:DM6PR11MB3625.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: 2DKMkb2XmiSUtCjPv/+flaenVxKCbEYDDrOV33nyevY/eUOWb8pjeAjMG3WxknvbfElFDl0lYH9fPet3nlpkcT1/4FxjAMjReOb1JirozmoSe1XNi+g6SvBHnhMELgXj0EHPW6hwQyoDZcACNKTX3lc1pQwbbm6RYLNNCs++7Q7aHc5sUqOHc6r4pwLgyn6qe+sKniC8x8o2d/yr3ejUOtvIkLL6dwAvJ/tUy8Cy3ASf7jnPiobqlpFklvWK1Wmqi6j+etvH53s4DXmycCk77eTdVjTVjgrXgCRYZfmvF0MHow/+jW/nLNLivALUelEQFKf3UhCYQqYuXktr92YUDShK6bIZa3hLorWDw6chkPG7UBw4PeRgt8rExfex97yF3WGCu+U/Afzjm7KYR41Qii2CNRPzucueKiOCk9cTj7g= 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: d15d32d7-3e7c-4b08-245b-08d6c34bbbdc X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Apr 2019 15:45:36.8689 (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: DM6PR11MB3738 Subject: [dpdk-dev] [PATCH v2 4/7] net/atlantic: interrupt handling of macsec events 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, 17 Apr 2019 15:45:42 -0000 RnJvbTogUGF2ZWwgQmVsb3VzIDxwYXZlbC5iZWxvdXNAYXF1YW50aWEuY29tPg0KDQpNQUNTRUMg c2hvdWxkIGJlIGNvbmZpZ3VyZWQgb25seSBhZnRlciBsaW5rIHVwIGV2ZW50LCB0aHVzIHdlIHVz ZQ0KbGluayBpbnRlcnJ1cHQgdG8gZmlsZSBhbiBhbGFybSBmb3IgY29uZmlndX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iAJYXRsX2VuYWJsZV9pbnRyKGRldik7DQogCXJ0ZV9pbnRyX2Vu YWJsZShpbnRyX2hhbmRsZSk7DQogDQpkaWZmIC0tZ2l0IGEvZHJpdmVycy9uZXQvYXRsYW50aWMv YXRsX2V0aGRldi5oIGIvZHJpdmVycy9uZXQvYXRsYW50aWMvYXRsX2V0aGRldi5oDQppbmRleCBi MTYyMTM4YzU5ZDMuLmY1NDc1NzFiNWM5NyAxMDA2NDQNCi0tLSBhL2RyaXZlcnMvbmV0L2F0bGFu dGljL2F0bF9ldGhkZXYuaA0KKysrIGIvZHJpdmVycy9uZXQvYXRsYW50aWMvYXRsX2V0aGRldi5o DQpAQCAtMzQsNyArMzQsNyBAQA0KIAkoJigoc3RydWN0IGF0bF9hZGFwdGVyICopYWRhcHRlcikt Pmh3X2NmZykNCiANCiAjZGVmaW5lIEFUTF9GTEFHX05FRURfTElOS19VUERBVEUgKHVpbnQzMl90 KSgxIDw8IDApDQotI2RlZmluZSBBVExfRkxBR19ORUVEX0xJTktfQ09ORklHICh1aW50MzJfdCko NCA8PCAwKQ0KKyNkZWZpbmUgQVRMX0ZMQUdfTUFDU0VDICh1aW50MzJfdCkoNCA8PCAwKQ0KIA0K IHN0cnVjdCBhdGxfaW50ZXJydXB0IHsNCiAJdWludDMyX3QgZmxhZ3M7DQotLSANCjIuMTcuMQ0K DQo= 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 828A9A00E6 for ; Wed, 17 Apr 2019 17:46:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 243D61B767; Wed, 17 Apr 2019 17:45:43 +0200 (CEST) Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-eopbgr790083.outbound.protection.outlook.com [40.107.79.83]) by dpdk.org (Postfix) with ESMTP id 614691B76F for ; Wed, 17 Apr 2019 17:45:41 +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=DP+mPRTQOTIzL+aNqyou6U4d24w1PqxnSm6dJ0bMpmM=; b=F2yrzkIQbIy4rE7XfsRB8+V2SXxOUFhzWBzeB65NuMzBZQA+cUg0cWNSr84qUQ1QyRacPrBY58sNGg6al6rA6uI3vEOCpbpS7hCQO3hiugWByPbchp/9dxV4PTKx7xK9QeP0lXnxKys9B/Jm3pQrl7nUI2N7h0FZrBLrIxFdG50= Received: from DM6PR11MB3625.namprd11.prod.outlook.com (20.178.230.149) by DM6PR11MB3738.namprd11.prod.outlook.com (20.179.16.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.12; Wed, 17 Apr 2019 15:45:37 +0000 Received: from DM6PR11MB3625.namprd11.prod.outlook.com ([fe80::f035:2c20:5a61:7653]) by DM6PR11MB3625.namprd11.prod.outlook.com ([fe80::f035:2c20:5a61:7653%3]) with mapi id 15.20.1813.011; Wed, 17 Apr 2019 15:45:37 +0000 From: Igor Russkikh To: "dev@dpdk.org" CC: "ferruh.yigit@intel.com" , "thomas@monjalon.net" , "arybchenko@solarflare.com" , "konstantin.ananyev@intel.com" , Igor Russkikh , Pavel Belous Thread-Topic: [PATCH v2 4/7] net/atlantic: interrupt handling of macsec events Thread-Index: AQHU9TSZxnSHYjnTokyZqphDrMXoHA== Date: Wed, 17 Apr 2019 15:45:36 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR07CA0027.namprd07.prod.outlook.com (2603:10b6:a02:bc::40) To DM6PR11MB3625.namprd11.prod.outlook.com (2603:10b6:5:13a::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: d15d32d7-3e7c-4b08-245b-08d6c34bbbdc x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600140)(711020)(4605104)(2017052603328)(7193020); SRVR:DM6PR11MB3738; x-ms-traffictypediagnostic: DM6PR11MB3738: x-microsoft-antispam-prvs: x-forefront-prvs: 0010D93EFE x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39850400004)(346002)(396003)(136003)(376002)(366004)(199004)(189003)(2906002)(25786009)(54906003)(14444005)(256004)(7736002)(97736004)(316002)(4326008)(71200400001)(53936002)(5640700003)(107886003)(71190400001)(99286004)(68736007)(8676002)(1730700003)(5660300002)(86362001)(2351001)(6512007)(305945005)(52116002)(6436002)(106356001)(81166006)(2501003)(36756003)(81156014)(105586002)(8936002)(6916009)(386003)(102836004)(26005)(6116002)(186003)(50226002)(72206003)(6506007)(76176011)(6486002)(14454004)(66066001)(478600001)(3846002)(476003)(118296001)(486006)(2616005)(44832011)(446003)(11346002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR11MB3738; H:DM6PR11MB3625.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: 2DKMkb2XmiSUtCjPv/+flaenVxKCbEYDDrOV33nyevY/eUOWb8pjeAjMG3WxknvbfElFDl0lYH9fPet3nlpkcT1/4FxjAMjReOb1JirozmoSe1XNi+g6SvBHnhMELgXj0EHPW6hwQyoDZcACNKTX3lc1pQwbbm6RYLNNCs++7Q7aHc5sUqOHc6r4pwLgyn6qe+sKniC8x8o2d/yr3ejUOtvIkLL6dwAvJ/tUy8Cy3ASf7jnPiobqlpFklvWK1Wmqi6j+etvH53s4DXmycCk77eTdVjTVjgrXgCRYZfmvF0MHow/+jW/nLNLivALUelEQFKf3UhCYQqYuXktr92YUDShK6bIZa3hLorWDw6chkPG7UBw4PeRgt8rExfex97yF3WGCu+U/Afzjm7KYR41Qii2CNRPzucueKiOCk9cTj7g= 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: d15d32d7-3e7c-4b08-245b-08d6c34bbbdc X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Apr 2019 15:45:36.8689 (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: DM6PR11MB3738 Subject: [dpdk-dev] [PATCH v2 4/7] net/atlantic: interrupt handling of macsec events 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: <20190417154536.hmBVxKcES8EsxXHQGoK8LNJ6mXu_ZU0gMf44gwJWL2k@z> RnJvbTogUGF2ZWwgQmVsb3VzIDxwYXZlbC5iZWxvdXNAYXF1YW50aWEuY29tPg0KDQpNQUNTRUMg c2hvdWxkIGJlIGNvbmZpZ3VyZWQgb25seSBhZnRlciBsaW5rIHVwIGV2ZW50LCB0aHVzIHdlIHVz ZQ0KbGluayBpbnRlcnJ1cHQgdG8gZmlsZSBhbiBhbGFybSBmb3IgY29uZmlndXJhdGlvbi4NCg0K RlcgYWxzbyB1c2VzIGxpbmsgaW50ZXJydXB0IGxpbmUgdG8gaW5kaWNhdGUgaW5jb21pbmcgZXZl bnRzIGZyb20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