From patchwork Thu Apr 18 11:39:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Russkikh X-Patchwork-Id: 52917 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D17871B99C; Thu, 18 Apr 2019 13:39:50 +0200 (CEST) Received: from NAM04-CO1-obe.outbound.protection.outlook.com (mail-eopbgr690062.outbound.protection.outlook.com [40.107.69.62]) by dpdk.org (Postfix) with ESMTP id 2A3061B99A for ; Thu, 18 Apr 2019 13:39:49 +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=1H/e85lu5hYZnZuvORogu6Gq/81/a9TZSgy1JYsGknE=; b=rDqimXPfGDW0wLrtKsT9WTrn/pgMayhiumzFWHR16/r54RypfiT5O5Wsr0+iF/I232dQuda7lPbHYIDdXYPw4Q06eUqgm9Jh4knwQS533SffBnvJ3/WNNlxjzxX/Xtr62G9EBUPnUuNJb3TGwEruSlufsWVhtQIYnVRI/P6NhA4= Received: from DM6PR11MB3625.namprd11.prod.outlook.com (20.178.230.149) by DM6PR11MB3866.namprd11.prod.outlook.com (10.255.61.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.14; Thu, 18 Apr 2019 11:39:46 +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; Thu, 18 Apr 2019 11:39:46 +0000 From: Igor Russkikh To: "dev@dpdk.org" CC: "ferruh.yigit@intel.com" , "thomas@monjalon.net" , "arybchenko@solarflare.com" , "konstantin.ananyev@intel.com" , Pavel Belous , Igor Russkikh Thread-Topic: [PATCH v3 0/6] add MACSEC hw offload to atlantic PMD Thread-Index: AQHU9dtsgAqA5j0uA0iXOh3FWAlbJw== Date: Thu, 18 Apr 2019 11:39:46 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR11CA0051.namprd11.prod.outlook.com (2603:10b6:a03:80::28) 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: 836a2c3c-598b-4e24-7a9e-08d6c3f28e54 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(2017052603328)(7193020); SRVR:DM6PR11MB3866; x-ms-traffictypediagnostic: DM6PR11MB3866: x-microsoft-antispam-prvs: x-forefront-prvs: 0011612A55 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(39850400004)(136003)(366004)(376002)(346002)(199004)(189003)(186003)(6486002)(26005)(97736004)(2501003)(102836004)(1730700003)(81156014)(6506007)(6116002)(8676002)(3846002)(386003)(81166006)(6916009)(5640700003)(2906002)(52116002)(50226002)(256004)(99286004)(14444005)(6436002)(86362001)(71200400001)(71190400001)(44832011)(4326008)(66066001)(14454004)(486006)(25786009)(36756003)(72206003)(478600001)(8936002)(476003)(2351001)(6512007)(53936002)(7736002)(5660300002)(54906003)(316002)(107886003)(2616005)(68736007)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR11MB3866; 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: a7NA+ablrvvdKSsWUQWfuDIYoqA7fSdDmmu0nUrkLrkg1LtsJRGfAdofNVbx8lt8KzSDLveKSuiYMB4FD9YQ9ZVQSuC3nptJY220MHkP4MASLRbV+mouZW0yPdz6LLEW9j0RrTzQj9HgZMNknv62dCMoDQf1FxOQGbNpcb0eY3p4x9+yg59A6xbVXmT+nmjH+0V90GSQZ4GFo8OqL0fEawsbywdorvb/IIlMxTFyeSA/VSd7k6YNO4BsLU5mb9sE+hj0HR65lUI233fsIvbt3nY4/RvGF0BM8HT9nt7XBqRKUvFw0rmqq9jcZRsF6Bq4NBsQJt6CYxNpe6W3AvE7YC9DHYYoHKpqgQ6ZdQvD3cOCnM5qMcU+9m3UO109RhdHIsbVAcAqqJGuohcxKU1foLmnWFzlwaiM0gftn4X5aDU= MIME-Version: 1.0 X-OriginatorOrg: aquantia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 836a2c3c-598b-4e24-7a9e-08d6c3f28e54 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Apr 2019 11:39:46.0679 (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: DM6PR11MB3866 Subject: [dpdk-dev] [PATCH v3 0/6] add MACSEC hw offload to atlantic PMD 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" This patchset implements MACSEC hardware offload configuration in Atlantic PMD via experimental PMD API. There is an agreement to work on 19.08 timeframe for the generic MACSEC API inside of rte_security. v3 changes after Ferruh's comments: - Fixed per-patch build by rearranging patch 2/4. - Added documentation comments into the API header. v2 changes: - Removed public API changes for macsec, leave only PMD experimental API for MACSEC in a form, similar to what ixgbe driver provides. - Joined doc and features update into commit where macsec features gets actually enabled Igor Russkikh (1): net/atlantic: bump internal driver version Pavel Belous (5): net/atlantic: macsec hardware structures declaration net/atlantic: enable macsec configuration net/atlantic: macsec firmware interface net/atlantic: interrupt handling and macsec configuration net/atlantic: implement macsec statistics doc/guides/nics/atlantic.rst | 6 + doc/guides/nics/features/atlantic.ini | 1 + drivers/net/atlantic/Makefile | 1 + drivers/net/atlantic/atl_common.h | 2 +- drivers/net/atlantic/atl_ethdev.c | 364 +++++++++++++++++- drivers/net/atlantic/atl_ethdev.h | 14 +- drivers/net/atlantic/atl_types.h | 39 ++ drivers/net/atlantic/hw_atl/hw_atl_utils.h | 148 +++++++ .../net/atlantic/hw_atl/hw_atl_utils_fw2x.c | 51 +++ drivers/net/atlantic/meson.build | 1 + drivers/net/atlantic/rte_pmd_atlantic.c | 102 +++++ drivers/net/atlantic/rte_pmd_atlantic.h | 120 ++++++ .../net/atlantic/rte_pmd_atlantic_version.map | 12 + 13 files changed, 844 insertions(+), 17 deletions(-) create mode 100644 drivers/net/atlantic/rte_pmd_atlantic.c create mode 100644 drivers/net/atlantic/rte_pmd_atlantic.h