]> git.droids-corp.org - dpdk.git/commit
crypto/cnxk: fix inflight count calculation
authorAnoob Joseph <anoobj@marvell.com>
Fri, 17 Dec 2021 09:20:01 +0000 (14:50 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Fri, 21 Jan 2022 08:40:01 +0000 (09:40 +0100)
commitec6ca0536e912d465a47d28ab90994d9ca576234
treeb11fce2adec52f5803a62a99ad5335f2f5939c03
parent2842ba07af34360eaa68a8e55545c2eb9bec196f
crypto/cnxk: fix inflight count calculation

Inflight count calculation is updated to cover wrap around cases where
head can become smaller than tail.

Fixes: fd390896f4a3 ("crypto/cnxk: allow different cores in pending queue")
Cc: stable@dpdk.org
Reported-by: Kiran Kumar K <kirankumark@marvell.com>
Signed-off-by: Anoob Joseph <anoobj@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
drivers/crypto/cnxk/cnxk_cryptodev_ops.h