cryptodev: add min headroom and tailroom requirement
authorAnoob Joseph <anoob.joseph@caviumnetworks.com>
Tue, 10 Jul 2018 14:42:37 +0000 (20:12 +0530)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 11 Jul 2018 01:57:24 +0000 (03:57 +0200)
commitdb10602b76f2d90a076538bccc6a07728036cd5a
tree808fa888cf39e9a763e62993f726d6cde3309a79
parent2d349f603449f36f490e8e805ebebb497f0dc881
cryptodev: add min headroom and tailroom requirement

Enabling crypto devs to specify the minimum headroom and tailroom it
expects in the mbuf. For net PMDs, standard headroom has to be honoured
by applications, which is not strictly followed for crypto devs. This
prevents crypto devs from using free space in mbuf (available as
head/tailroom) for internal requirements in crypto operations. Addition
of head/tailroom requirement will help PMDs to communicate such
requirements to the application.

The availability and use of head/tailroom is an optimization if the
hardware supports use of head/tailroom for crypto-op info. For devices
that do not support using the head/tailroom, they can continue to operate
without any performance-drop.

Signed-off-by: Anoob Joseph <anoob.joseph@caviumnetworks.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
doc/guides/rel_notes/release_18_08.rst
lib/librte_cryptodev/rte_cryptodev.h