examples/ipsec-secgw: fix bypass rule processing
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Tue, 5 Jun 2018 14:16:02 +0000 (15:16 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 25 Jul 2018 06:36:19 +0000 (08:36 +0200)
commitc1fe6dbfcec2b17dd5fd115dcdec2ea573c4de0d
tree04d11b29f6abaff0b5abace11a52011a58bccfbc
parentb9cf7fe64d8431ac73c783f30a92287b749a2c42
examples/ipsec-secgw: fix bypass rule processing

For outbound ports BYPASS rule is erroneously treated as PROTECT one
with SA idx zero.

Fixes: 2a5106af132b ("examples/ipsec-secgw: fix corner case for SPI value")
Cc: stable@dpdk.org
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
examples/ipsec-secgw/ipsec-secgw.c