common/qat: optimise calculation of cookie index
authorFiona Trahe <fiona.trahe@intel.com>
Wed, 11 Mar 2020 12:26:08 +0000 (13:26 +0100)
committerAkhil Goyal <akhil.goyal@oss.nxp.com>
Sun, 5 Apr 2020 16:26:04 +0000 (18:26 +0200)
commitdda27cb3c1b7de2062c273ad46e0dfefc9e6a80c
tree8b986b2fcdde37ce56b4fe2a86c72ee8ad78060b
parent603ad3ae915efff712d19875c8c7eb33fb71f0df
common/qat: optimise calculation of cookie index

Avoid costly division, use shift instead.

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