From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0076.outbound.protection.outlook.com [207.46.100.76]) by dpdk.org (Postfix) with ESMTP id 737D2B455 for ; Tue, 21 Jun 2016 14:02:48 +0200 (CEST) Received: from BY2PR03CA043.namprd03.prod.outlook.com (10.141.249.16) by CY1PR03MB2378.namprd03.prod.outlook.com (10.166.207.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.523.12; Tue, 21 Jun 2016 12:02:47 +0000 Received: from BN1AFFO11FD009.protection.gbl (2a01:111:f400:7c10::105) by BY2PR03CA043.outlook.office365.com (2a01:111:e400:2c5d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.523.12 via Frontend Transport; Tue, 21 Jun 2016 12:02:47 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; 6wind.com; dkim=none (message not signed) header.d=none;6wind.com; dmarc=none action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1AFFO11FD009.mail.protection.outlook.com (10.58.52.69) with Microsoft SMTP Server (TLS) id 15.1.517.7 via Frontend Transport; Tue, 21 Jun 2016 12:02:46 +0000 Received: from Tophie.ap.freescale.net (Tophie.ap.freescale.net [10.232.14.199]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u5LC2TDJ004076; Tue, 21 Jun 2016 05:02:43 -0700 From: Shreyansh Jain To: CC: , Date: Tue, 21 Jun 2016 17:32:31 +0530 Message-ID: <1466510566-9240-3-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> References: <1454076516-21591-1-git-send-email-david.marchand@6wind.com> <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131109841665901976; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(979002)(6009001)(7916002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(5890100001)(50986999)(586003)(76176999)(92566002)(2950100001)(81156014)(356003)(87936001)(8676002)(81166006)(189998001)(106466001)(33646002)(105606002)(77096005)(48376002)(2351001)(229853001)(50466002)(68736007)(86362001)(110136002)(7846002)(6806005)(36756003)(5003940100001)(2906002)(575784001)(47776003)(104016004)(4326007)(8936002)(85426001)(97736004)(19580405001)(19580395003)(50226002)(11100500001)(69596002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB2378; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD009; 1:vGomy/MHrQHSysexHBsC2uAGWr2SM8SW/X+LrPt+a+YXgldQAZbLiLgRblrPm6M5bgsoVBCK7yeV647D07KsQV6IxCJNlXSuynhqfVV9RDPj3dRFN++b40ddLVysMRO1IIor/0axt9hfAYPMn/xYUfZ8xFh1NdP/yNlCsvgE9B9Lb/26VHDloQoOSNSmdgjoiLF3oGDH6n/exALPyQoZ3v6cu1YF7xeXoeta0C5jaSxPzzNqSpVIIDnQTga1L0MVn7A74ZTbsNZNprBtwsrDSAP5cS+zPSPVU8FysC+rw//vWqmMquA3Uux3kdSoLiR24HS9i3bBYyt2lJmnf6F6m21iG20RFaGxxg8ofPDUsatrOOdB0us7/8EAZfjvgZYzBwBdNJLAmdzhV7QHa5AkVJbSZXa98LHXFj6a+PqD//ZyY0h+TOL1JB4UGkPo2c4PWs1laR0ixy8mUPasr/EuQ4bPZ0ioqvtNSJRy6Ry2W+mmiu85hYY9kYxA5f9aySLNoqhUghjvd6d6u3dChPVdSAPSWFAtlw0yAxskx7qBFSRU34ni9ioUGMakNhWn9gHqwNnoW9qe3CdhGOJjCJfr/Q== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 786a3775-45d3-4ea6-f7ce-08d399cbf56c X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2378; 2:F/o1E70Sp4J6sx+8QuDvr05/xWR8tQ5u+fJ6Il8HogH3VyqPrxfN1iGAN1OnKqVejJLLpaXFjzwswNSOkzsR0dDHIC7/6dMz7UPd22dYVQsv16ud+rK5qVzAQzJn8dZceJo5LoCHPG2vxxCbvScJ9qQnm4yu/cXhubgSt0HHwMFm5jPW1/+wuhvsRhAPXAzI; 3:qL9ekUwj+0NKoL/j+RX/qK5EKNxtnQFKgGf/p+4883UtEkNq6TNfiVUh+KISQ5K6VvRsGbL74JeW3dEgSEDgYAk8CJuVk4A4zPT7DLM6dDTOHSH0GMlkqJQz+ggrTQxjMPr+QeCBXMa63JC8WijzK1CWrUZYCkU9iSaleCBoZ1Fhpm3UjKJy3oDpRJnjbpTuaC7BbNJRTgYkmvzhM2CbxNNISFscR3ukbFmb6Hg4C7E= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB2378; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2378; 25:tD4L8VhoQLaUEZuFhBW+ZjkFf/yi/4bpfIUX4RZwZ03swfOSWTzDBs6JV4tW7WMYGOwMAtvQEf69tJvQxvbzjMF92W4rFki7nHS4lDdCQYsmXpAqn5Vwpvn+Hz1TPYSGiAKxVuiuLWnHzobRfWyQQFaOvkEc7RF0wDwkIMZ4PrUvokgsgyYWNC9LUwfWaTMRfpASzdt/0Nqew51csRc+XXBBrD/jrY4sMLgeeWgtgrVy+W56/tKBIoG3CqgSsnJAuDGmly/iLPb705g2r0a+gup1ndjjLmOCVaVQbKdtGcR40ZT6tQNSugasSRL9rENIvuPdcJNMgACruo6Ve1G6L4M7xHyGBAaE72u+puTuJJ7G4NsIRXwqWla8OLLhD6RguGIhJ96TtpzW+rxdrdqDciGcqOwCKJocWaotBiizbGeUmVHgn8+sWhceb8zZSIWZW6Vniln6ERvWvf9F6l5gM4duD20LHbVoh/xruFoVcE6DfdRVwT9arK8hsm1/gvpyQ/J3H6LDwG3wY/TJkA2+6AsQ0gjGxktoNW0wbo7rv9Um29Rdpw8HUaEjo3eRK5/bpAG2cQnzPBSiyYcqhwE/sFDcpT2wxnxVX1CUt80CLzk7cZZyRaeTNV0TrOwt3QC3W9lLt7nsBnqNkTaHdGzH2eoT+/2U8IqLQBNptJHfEhqip+nNCuRfm1iOV5Dy+YHkfDL5j2CXbEXvgwxY0eD7hmxnHIgE+PBM/3t77BjsVkQuMSv8btJrPloKoGJQr4Gx X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13017025)(13024025)(13018025)(13015025)(13023025)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:CY1PR03MB2378; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR03MB2378; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2378; 4:hYn3nK1N5nYkvu8lG25syjQEqxAyYjEvsg/Z74qztT/UjsPgd4eMmQ1iM0PK/ExuFIvlfU4gEep01vG06KiITFgbiXIHx4thbaxXytqJlWOLY8wDxwtyQW7q4aDciGsMdWfmk1Hn9Pcz0tcqCzAk/7wYOpuh9j9embIK8fyYFswZxOivkAiSw7feECDBeezXo2trl6ttAs2f2ZsNiOI4zQOV/wMB7VrjI4H4d+JqPkTIe7dWLuJWji70vlUnhu2qsxgZErOtZnPPHdIlTfhUEP93Ite+hvCUSCNNP3tXNeGcxekfS2sul43yqetrQurCnNw+Wbox4QXDBnTrF6GhHvvWXwbdgczNbAOJPAw7bqB6Skee36/g6j5iQ4PCv1+JEiOJYL5mhthvyz2UhSQOJ18XzZoEKy3gFtzo22zHSCBn1QzKgRk0dEJ7QbqDm4O0mcER5Vu8fqtGGRAoOz33A8xMwo5qR6V1vJ4wbO0NPp/RhqKd9J+6eJw95mfIw6E691dtxeXZc8bjU8laTleaCg== X-Forefront-PRVS: 098076C36C X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB2378; 23:OSIJ89fRsQq5KzWZvqgQAHWZAb78TWXzQWzHnNKBt?= =?us-ascii?Q?K+kYNeXyPypISHYYr/5GZAx6ViM/puaSuZg4SMxFSCaUCNYt/sKx1zqcnVAC?= =?us-ascii?Q?7a41o4KH7ZlXpl0BbwA+Wqmf23twtf/xXZry9Lo6d2PTYLNm8oZBLzRbG/eI?= =?us-ascii?Q?Wv4KPbIoWAX/6j8Ikk6Q+LNr2gI3nMoVhL3mLyNeUaD51BX9IVuRvM8Xka66?= =?us-ascii?Q?RJzBpW9JKKLJ8GWeYnLQlAerwZcbY2F2odb0odY6duFct24Zy5GRLWqM4/Gq?= =?us-ascii?Q?sa8p570dX8jlQQUicIPEvJr5Cb/zWBktMStDriv90Bk5bOExm/c2DzePddOz?= =?us-ascii?Q?yNmO5pHwbWz5mcMvScrVN+IEzcDMdMYs9iMdpGqZoPaZrRF76JuRrO+ih9nW?= =?us-ascii?Q?zJndpT2J/TIhVGFPv0TMdtNDpYI9t+xZHDzVwFCuginYIqNdCOa9kQSarhzD?= =?us-ascii?Q?zCJxYChgENryEe+OtBCT+cidYH6SpmkBu5O4crx1L8YFcfl0i7ITuRGv0UzG?= =?us-ascii?Q?pZfNa6vWYX00zjy7y7VP4MBtTMI/C/py2QAIRlIJb1F8LnPYha+QhT9yZHk/?= =?us-ascii?Q?/ipEyLybsBcIRK6/VQXtxV6CtDsDqGRR3YTvSv+o64X0jCFcrkmeugKXcmaj?= =?us-ascii?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9xdbz4o5iEw0e1xZio=; 5:19pp7h8mmyQ8uhjmn4W2W2pLRMqzy3RKd7fL9kS/RIZPr76mpHVGgqhPhtpU3Y3F8vlbxBQTwqZC1XrQecq3voNTss40+skBPZOUzgrLVrIyilhIX4epXhpb06jzNGyV0lvN5FwE7lQKOQCc1mr5dd5a3Kt7sy8pw/i2gVREhlc=; 24:jTo093h1GAXqP5BjwFGGLI1xu4/2Tov+p7jfNCFQWmr1XgS7zrnwwUjdGM8OO+KCftRqYoERzEryQyggVWJ4nmX/CChw/IMMFVq4g3eD3fU=; 7:3ZvxCTiC8MnR6p/elA1gZWWV+1viNCtmMPJANuuoNnWqm9mYyESgiJ4lGIRZ9hNABkfPbXDcTwBOVruiQNBsOVDzFygxV/gV1HIqf+8sUkWDX9Dq0Twbjb8y856X5e2xIobziyIuDPlqmpn5WGtrKeIx4ICyAAIXXfDZ5wvWbOru10WfPukJCW9WWYRi2cdfRS6nmDOvACAA7BprBObI9+Y6dwdA9u1BU7rN7FETUN/XKLPNfYSzoMnWXvy0cvmG SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2016 12:02:46.0129 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB2378 Subject: [dpdk-dev] [PATCH v4 02/17] crypto: no need for a crypto pmd type X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2016 12:02:49 -0000 This information is not used and just adds noise. Signed-off-by: David Marchand Signed-off-by: Shreyansh Jain --- lib/librte_cryptodev/rte_cryptodev.c | 8 +++----- lib/librte_cryptodev/rte_cryptodev.h | 2 -- lib/librte_cryptodev/rte_cryptodev_pmd.h | 3 +-- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/lib/librte_cryptodev/rte_cryptodev.c b/lib/librte_cryptodev/rte_cryptodev.c index 960e2d5..b0d806c 100644 --- a/lib/librte_cryptodev/rte_cryptodev.c +++ b/lib/librte_cryptodev/rte_cryptodev.c @@ -230,7 +230,7 @@ rte_cryptodev_find_free_device_index(void) } struct rte_cryptodev * -rte_cryptodev_pmd_allocate(const char *name, enum pmd_type type, int socket_id) +rte_cryptodev_pmd_allocate(const char *name, int socket_id) { struct rte_cryptodev *cryptodev; uint8_t dev_id; @@ -269,7 +269,6 @@ rte_cryptodev_pmd_allocate(const char *name, enum pmd_type type, int socket_id) cryptodev->data->dev_started = 0; cryptodev->attached = RTE_CRYPTODEV_ATTACHED; - cryptodev->pmd_type = type; cryptodev_globals.nb_devs++; } @@ -318,7 +317,7 @@ rte_cryptodev_pmd_virtual_dev_init(const char *name, size_t dev_private_size, struct rte_cryptodev *cryptodev; /* allocate device structure */ - cryptodev = rte_cryptodev_pmd_allocate(name, PMD_VDEV, socket_id); + cryptodev = rte_cryptodev_pmd_allocate(name, socket_id); if (cryptodev == NULL) return NULL; @@ -360,8 +359,7 @@ rte_cryptodev_init(struct rte_pci_driver *pci_drv, rte_cryptodev_create_unique_device_name(cryptodev_name, sizeof(cryptodev_name), pci_dev); - cryptodev = rte_cryptodev_pmd_allocate(cryptodev_name, PMD_PDEV, - rte_socket_id()); + cryptodev = rte_cryptodev_pmd_allocate(cryptodev_name, rte_socket_id()); if (cryptodev == NULL) return -ENOMEM; diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h index 27cf8ef..f22eb43 100644 --- a/lib/librte_cryptodev/rte_cryptodev.h +++ b/lib/librte_cryptodev/rte_cryptodev.h @@ -700,8 +700,6 @@ struct rte_cryptodev { enum rte_cryptodev_type dev_type; /**< Crypto device type */ - enum pmd_type pmd_type; - /**< PMD type - PDEV / VDEV */ struct rte_cryptodev_cb_list link_intr_cbs; /**< User application callback for interrupts if present */ diff --git a/lib/librte_cryptodev/rte_cryptodev_pmd.h b/lib/librte_cryptodev/rte_cryptodev_pmd.h index 7d049ea..c977c61 100644 --- a/lib/librte_cryptodev/rte_cryptodev_pmd.h +++ b/lib/librte_cryptodev/rte_cryptodev_pmd.h @@ -454,13 +454,12 @@ struct rte_cryptodev_ops { * to that slot for the driver to use. * * @param name Unique identifier name for each device - * @param type Device type of this Crypto device * @param socket_id Socket to allocate resources on. * @return * - Slot in the rte_dev_devices array for a new device; */ struct rte_cryptodev * -rte_cryptodev_pmd_allocate(const char *name, enum pmd_type type, int socket_id); +rte_cryptodev_pmd_allocate(const char *name, int socket_id); /** * Creates a new virtual crypto device and returns the pointer -- 2.7.4