From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id A71FE2C5E for ; Thu, 3 Aug 2017 11:02:18 +0200 (CEST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP; 03 Aug 2017 02:02:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,315,1498546800"; d="scan'208";a="135536921" Received: from silpixa00399464.ir.intel.com (HELO silpixa00399464.ger.corp.intel.com) ([10.237.222.157]) by fmsmga006.fm.intel.com with ESMTP; 03 Aug 2017 02:02:14 -0700 From: Pablo de Lara To: thomas@monjalon.net, jerin.jacob@caviumnetworks.com, akhil.goyal@nxp.com, hemant.agrawal@nxp.com, fiona.trahe@intel.com, deepak.k.jain@intel.com, john.griffin@intel.com, declan.doherty@intel.com Cc: dev@dpdk.org, Pablo de Lara Date: Thu, 3 Aug 2017 02:02:36 +0100 Message-Id: <20170803010236.17503-1-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 2.9.4 Subject: [dpdk-dev] [PATCH] doc: announce API change in crypto driver allocation 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: Thu, 03 Aug 2017 09:02:19 -0000 rte_cryptodev_allocate_driver() function gets one parameter (rte_driver), as the cryptodev_driver structure is allocated inside the function with rte_malloc. This function is called from a constructor function, when crypto PMDs are registered. If malloc fails, there is no way to recover from it, so it is better to allocate this structure statically, in each PMD. Therefore, it is required to add an extra parameter in this function, to also get a pointer to this structure. Signed-off-by: Pablo de Lara --- doc/guides/rel_notes/deprecation.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index f6bd910..bd4aa89 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst @@ -69,3 +69,9 @@ Deprecation Notices be removed in 17.11: - ``rte_cryptodev_create_vdev`` + +* cryptodev: the following function will have an extra parameter, passing a + statically allocated crypto driver structure, instead of calling malloc, + in 17.11: + + - ``rte_cryptodev_allocate_driver`` -- 2.9.4