test/ipsec: fix performance test
This patch initializes with 0 rte_ipsec_sa_prm inside the ipsec_sa struct. Before it was passed uninitialized to rte_ipsec_sa_init(), which does not check whether prm->ipsec_xform.esn.value is greater than sa->sqn_mask. Bugzilla ID: 1023 Fixes: f7f3ac6dcbe2 ("test/ipsec: add performance cases") Cc: stable@dpdk.org Signed-off-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
This commit is contained in:
parent
7a0f8fe76b
commit
3ab95f3d1c
@ -592,8 +592,8 @@ testsuite_teardown(void)
|
||||
static int
|
||||
test_libipsec_perf(void)
|
||||
{
|
||||
struct ipsec_sa sa_out;
|
||||
struct ipsec_sa sa_in;
|
||||
struct ipsec_sa sa_out = { .sa_prm = { 0 } };
|
||||
struct ipsec_sa sa_in = { .sa_prm = { 0 } };
|
||||
uint32_t i;
|
||||
int ret;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user