]> git.droids-corp.org - dpdk.git/commit
crypto/cnxk: fix extend tail calculation
authorAnoob Joseph <anoobj@marvell.com>
Fri, 17 Dec 2021 09:20:05 +0000 (14:50 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Fri, 21 Jan 2022 09:17:35 +0000 (10:17 +0100)
commitc99f673f950ea082df4344348f8b5cae88f245a8
treee19d5298df6d41ad88fa2666ce3f97784a3f6777
parent538bf10043542d0510aeabe460e0a29618885a84
crypto/cnxk: fix extend tail calculation

If the packet size to be incremented after IPsec processing is less
than size of hdr (size incremented before submitting), then extend_tail
can become negative. Allow negative values for the variable.

Fixes: 67a87e89561c ("crypto/cnxk: add cn9k lookaside IPsec datapath")
Cc: stable@dpdk.org
Signed-off-by: Anoob Joseph <anoobj@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
drivers/crypto/cnxk/cn9k_ipsec_la_ops.h