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

Get rid of maximum SP limitation.
Keep parsed SP's into the sorted by SPI value array.
Use binary search in the sorted SP array to find appropriate SP
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/parser.c
examples/ipsec-secgw/parser.h
examples/ipsec-secgw/sp4.c
examples/ipsec-secgw/sp6.c