crypto/qat: optimise check for chained mbufs
authorFiona Trahe <fiona.trahe@intel.com>
Wed, 11 Mar 2020 12:26:07 +0000 (13:26 +0100)
committerAkhil Goyal <akhil.goyal@oss.nxp.com>
Sun, 5 Apr 2020 16:26:04 +0000 (18:26 +0200)
commit603ad3ae915efff712d19875c8c7eb33fb71f0df
tree4850ffe44d177af5a7e18810a9ab1834b1c3582b
parent5390f304b7ecb670cb0ae5aba4bd9655651a4d13
crypto/qat: optimise check for chained mbufs

To detect if sgl, use nb_segs > 1, instead of checking for next pointer,
as nb_segs is in first cache-line while next is in second cache-line.

Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
Acked-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
drivers/crypto/qat/qat_sym.c