examples/ipsec-secgw: get rid of maximum SA limitation
authorVladimir Medvedkin <vladimir.medvedkin@intel.com>
Fri, 31 Jan 2020 17:39:41 +0000 (17:39 +0000)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 5 Feb 2020 14:20:51 +0000 (15:20 +0100)
commite1143d7dbbf484837f3eefb077a9b0af0f7e1c45
treecba7a6cae725e9c31d901f5916e1c64513b995d2
parentdf3e1d9489b094b49ba5ec2dc2a2720d247dc373
examples/ipsec-secgw: get rid of maximum SA limitation

Get rid of maximum SA limitation.
Keep parsed SA's into the sorted by SPI value array.
Use binary search in the sorted SA array to find appropriate SA
for a given SPI.

Signed-off-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
Acked-by: Anoob Joseph <anoobj@marvell.com>
examples/ipsec-secgw/ipsec.h
examples/ipsec-secgw/parser.c
examples/ipsec-secgw/parser.h
examples/ipsec-secgw/sa.c