DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] doc: announce API change in crypto driver allocation
@ 2017-08-03  1:02 Pablo de Lara
  2017-08-03 10:39 ` Mcnamara, John
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Pablo de Lara @ 2017-08-03  1:02 UTC (permalink / raw)
  To: thomas, jerin.jacob, akhil.goyal, hemant.agrawal, fiona.trahe,
	deepak.k.jain, john.griffin, declan.doherty
  Cc: dev, Pablo de Lara

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 <pablo.de.lara.guarch@intel.com>
---
 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-08-08 10:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-03  1:02 [dpdk-dev] [PATCH] doc: announce API change in crypto driver allocation Pablo de Lara
2017-08-03 10:39 ` Mcnamara, John
2017-08-03 10:43 ` Akhil Goyal
2017-08-08 10:21   ` Thomas Monjalon
2017-08-03 14:14 ` Jain, Deepak K

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).