Skip to content

Commit

Permalink
test/ipsec: fix performance test
Browse files Browse the repository at this point in the history
[ upstream commit 3ab95f3 ]

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: f7f3ac6 ("test/ipsec: add performance cases")

Signed-off-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
  • Loading branch information
vmedvedk authored and steevenlee committed Jul 19, 2022
1 parent 8d49e2f commit b39e829
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/test/test_ipsec_perf.c
Expand Up @@ -580,8 +580,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;

Expand Down

0 comments on commit b39e829

Please sign in to comment.