examples/ipsec_secgw: fix security session
authorFan Zhang <roy.fan.zhang@intel.com>
Tue, 23 Jan 2018 12:32:11 +0000 (12:32 +0000)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Mon, 29 Jan 2018 19:22:33 +0000 (20:22 +0100)
commita6b57a534d5462cdc8656549218a3a031d77b174
treeea8487462c82b270dfa7f9ab0f298042c20bafb4
parentc202320775bb8094c41eaaff562a38cd6d7bce70
examples/ipsec_secgw: fix security session

Fixes: 3da37f682173 ("examples/ipsec_secgw: create session mempools for ethdevs")

Some NICs do not have the rte_security context, this patch fixes the segment fault
caused by this.

Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Radu Nicolau <radu.nicolau@intel.com>
examples/ipsec-secgw/ipsec-secgw.c