From patchwork Wed Jul 12 20:15:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Blunck X-Patchwork-Id: 26868 X-Patchwork-Delegate: pablo.de.lara.guarch@intel.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 0C6452E8B; Wed, 12 Jul 2017 22:15:55 +0200 (CEST) Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id B9239276C for ; Wed, 12 Jul 2017 22:15:52 +0200 (CEST) Received: by mail-wm0-f67.google.com with SMTP id p204so1027659wmg.1 for ; Wed, 12 Jul 2017 13:15:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=cfOdorD273UeYpLyqBjCa6lFxLxHogUcPzUEdq5XovE=; b=CJKhh2FdktL8v0f214sk6ElkIaNYDl1vu0t70lh0WPXs5SHfTVphI2NYtXmLK60gUE +7zfBjy/gDNCO+V/yt7/3CBsJRZ7BLAfERomEA2w60LKFWhRkXyhABtouf0BbsKolppD FhYuj+xBfQBnnP2TDq8Q68wkDhx3SQTzvgt1DSfCtAr6YHo8naOZMipR339VR9UG74Y/ d8VTx11tw99gfq1cI4oGoHOswGIoFv/KfA/u2A2XuoYSGS303UCJU2GtdepvFuMbVbaU lI1m4iZvEqPT5kb5RGNJungg5Nbi2/wa4IbxJTpsouAOTOnV1QoYrJdo0X3zQGlwAq3U 7UZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=cfOdorD273UeYpLyqBjCa6lFxLxHogUcPzUEdq5XovE=; b=Gc9hme/DTFMyV1u2IsHCEAUuYz8qtf7V2TWw4ACpg78Bds1bVAXFcT/TqtTr+il7Nf UjB/jIpoMYOPzE28NpTr6bI8klgGvstCJBVd7xr6c0IfbT2nt4CgKgoNCDRrhRrhCx7M 7oviRtijfF/tMhZ6JMkGV4hSQX/CJt58da+xAqLvhO1ZBXB7VhnYP8gujUxEJLIFDEoB jekgQCmL1oiM5oShhyHsJl1ousyH9kiElwVxK+9gFEwI0mw7w6sebEIrUGDK0Z1bIZVB gqHFia6qh4pV8j2qPCRQ+5pobNRW5aJDWnZnEPgMOeUioAssPOKFlp0hE2Gp8ITKNPZM MLzQ== X-Gm-Message-State: AIVw110CDqt+9ZvhXQdEePyudUku0p2wsaEnXkTtX7xUaTlzSw6Oc5DK BnA0VTf0yq2vtmqy X-Received: by 10.80.168.70 with SMTP id j64mr208357edc.110.1499890552237; Wed, 12 Jul 2017 13:15:52 -0700 (PDT) Received: from localhost.localdomain ([37.228.147.16]) by smtp.gmail.com with ESMTPSA id n53sm2753813edn.53.2017.07.12.13.15.51 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 12 Jul 2017 13:15:51 -0700 (PDT) From: Jan Blunck To: dev@dpdk.org Cc: declan.doherty@intel.com, pablo.de.lara.guarch@intel.com Date: Wed, 12 Jul 2017 16:15:37 -0400 Message-Id: <20170712201537.65691-1-jblunck@infradead.org> X-Mailer: git-send-email 2.13.2 Subject: [dpdk-dev] [PATCH] cryptodev: deprecate rte_cryptodev_create_vdev() 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 function is an alias for rte_vdev_init() which is scheduled to move out of the rte_eal library. Lets deprecate this function to be able to remove it from the cryptodev library in 17.11. Signed-off-by: Jan Blunck Acked-by: Pablo de Lara Acked-by: Declan Doherty Acked-by: Sergio Gonzalez Monroy --- doc/guides/rel_notes/deprecation.rst | 5 +++++ lib/librte_cryptodev/rte_cryptodev.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index 257dcba32..3c687b1b8 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst @@ -64,3 +64,8 @@ Deprecation Notices be removed in 17.11: - ``rte_eal_parse_devargs_str``, replaced by ``rte_eal_devargs_parse`` + +* cryptodev: the following function is deprecated starting from 17.08 and will + be removed in 17.11: + + - ``rte_cryptodev_create_vdev`` diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h index 2048d6e29..39253a8e2 100644 --- a/lib/librte_cryptodev/rte_cryptodev.h +++ b/lib/librte_cryptodev/rte_cryptodev.h @@ -435,6 +435,8 @@ struct rte_cryptodev_stats { /**< Max length of name of crypto PMD */ /** + * @deprecated + * * Create a virtual crypto device * * @param name Cryptodev PMD name of device to be created. @@ -445,6 +447,7 @@ struct rte_cryptodev_stats { * which will be between 0 and rte_cryptodev_count(). * - In the case of a failure, returns -1. */ +__rte_deprecated extern int rte_cryptodev_create_vdev(const char *name, const char *args);