examples/ipsec-secgw: move global array from header
authorRadu Nicolau <radu.nicolau@intel.com>
Wed, 3 Nov 2021 11:56:18 +0000 (11:56 +0000)
committerAkhil Goyal <gakhil@marvell.com>
Thu, 4 Nov 2021 18:46:27 +0000 (19:46 +0100)
commit6f1d5c0b8e535822f44175fd548eadb1c08f8fa7
tree7fee08586593ecd78c4c087b793210cf39910bb4
parent1345c5baae35d16b20126704c8636c476c4f32eb
examples/ipsec-secgw: move global array from header

When STATS_INTERVAL is set to a non-zero value the
core_statistics array will be defined in multiple
compilation units and this can trigger a linker error
on particular environments. In order to fix this the
core_statistics definition was moved out of the header file.

Fixes: 1329602b6c8f ("examples/ipsec-secgw: add per-core packet statistics")
Cc: stable@dpdk.org
Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
examples/ipsec-secgw/ipsec-secgw.c
examples/ipsec-secgw/ipsec-secgw.h