crypto/qat: check multi-segment buffers for DOCSIS
authorDavid Coyle <david.coyle@intel.com>
Thu, 16 Jul 2020 15:33:31 +0000 (16:33 +0100)
committerAkhil Goyal <akhil.goyal@nxp.com>
Sat, 18 Jul 2020 21:27:31 +0000 (23:27 +0200)
commit6b048cdfa211de588c2ca77b2040e88b8f45ae6c
treec3b6d94ebf904050b39f1c7a75b036180e31ab3b
parent3829fe6487d5fd74458245391dac8169a57b3c9f
crypto/qat: check multi-segment buffers for DOCSIS

Multi-segment mbufs are not supported for DOCSIS security protocol.
This patch adds an explicit check for this and returns an op error if
this case is found. This limitation is also added to the QAT cryptodev
documentation.

Fixes: 6f0ef237404b ("crypto/qat: support DOCSIS protocol")

Signed-off-by: David Coyle <david.coyle@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
doc/guides/cryptodevs/qat.rst
drivers/crypto/qat/qat_sym.c