numam-dpdk/examples
Amit Prakash Shukla dae3a7affc examples/ipsec-secgw: fix build with GCC 12
Typecasting uint32_t array to uint16_t and accessing it as max array
size(at time of declaration of uint32_t array) causes gcc-12 to
throw an error.

GCC 12 raises the following warning:

In function 'send_multi_pkts',
    inlined from 'route6_pkts_neon' at
../examples/ipsec-secgw/ipsec_lpm_neon.h:170:2,
    inlined from 'ipsec_poll_mode_wrkr_inl_pr' at
../examples/ipsec-secgw/ipsec_worker.c:1257:4:
../examples/ipsec-secgw/ipsec_neon.h:261:21: error: 'dst_port' may be used
uninitialized [-Werror=maybe-uninitialized]
  261 |                 dlp = dst_port[i - 1];
      |                 ~~~~^~~~~~~~~~~~~~~~~
In file included from ../examples/ipsec-secgw/ipsec_worker.c:16:
../examples/ipsec-secgw/ipsec_worker.c: In function
'ipsec_poll_mode_wrkr_inl_pr':
../examples/ipsec-secgw/ipsec_lpm_neon.h:118:17:
	note: 'dst_port' declared here
  118 |         int32_t dst_port[MAX_PKT_BURST];
      |                 ^~~~~~~~

Fixes: 6eb3ba0399 ("examples/ipsec-secgw: support poll mode NEON LPM lookup")
Fixes: dcbf9ad5fd ("examples/ipsec-secgw: move fast path helper functions")
Cc: stable@dpdk.org

Signed-off-by: Amit Prakash Shukla <amitprakashs@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
2022-09-27 17:16:52 +02:00
..
bbdev_app fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
bond examples/bond: fix invalid use of trylock 2022-04-14 14:38:20 +02:00
bpf mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
cmdline doc: use code snippets in sample app guides 2021-07-31 15:42:43 +02:00
common examples/l3fwd: move packet group function in common 2022-06-30 06:54:21 +02:00
distributor eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
dma eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
ethtool dev: introduce device accessors 2022-09-23 16:14:34 +02:00
eventdev_pipeline eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
fips_validation eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
flow_classify examples/flow_classify: fix failure message 2022-03-08 14:17:27 +01:00
flow_filtering examples/flow_filtering: enhance code snippet readability 2021-11-16 16:22:26 +01:00
helloworld doc: use code snippets in sample app guides 2021-07-31 15:42:43 +02:00
ip_fragmentation mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
ip_pipeline kni: stop populating PCI info in examples 2022-09-23 16:14:33 +02:00
ip_reassembly replace zero-length arrays with flexible ones 2022-06-07 16:44:21 +02:00
ipsec-secgw examples/ipsec-secgw: fix build with GCC 12 2022-09-27 17:16:52 +02:00
ipv4_multicast ethdev: add namespace 2021-10-22 18:15:38 +02:00
kni examples/kni: add missing trailing newline in log 2022-03-08 14:27:11 +01:00
l2fwd examples/l2fwd: add promiscuous mode option 2021-10-25 22:31:53 +02:00
l2fwd-cat remove unnecessary null checks 2022-02-12 12:07:48 +01:00
l2fwd-crypto examples/l2fwd-crypto: add signal handler for exit 2022-06-01 16:26:35 +02:00
l2fwd-event examples: use mempool cache for vector pool 2022-06-13 07:58:25 +02:00
l2fwd-jobstats fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
l2fwd-keepalive eal: remove FINISHED lcore state 2021-10-25 18:20:59 +02:00
l3fwd dev: introduce device accessors 2022-09-23 16:14:34 +02:00
l3fwd-graph ethdev: add namespace 2021-10-22 18:15:38 +02:00
l3fwd-power eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
link_status_interrupt examples/link_status_interrupt: fix stats refresh rate 2022-07-08 16:44:04 +02:00
multi_process bus: introduce accessors 2022-09-23 16:14:34 +02:00
ntb eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
packet_ordering eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
pipeline examples/pipeline: fix build with some compilers 2022-09-25 16:02:25 +02:00
ptpclient eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
qos_meter eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
qos_sched eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
rxtx_callbacks eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
server_node_efd eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
service_cores examples/service_cores: fix lcore count check 2021-09-16 17:31:03 +02:00
skeleton eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
timer doc: use code snippets in sample app guides 2021-07-31 15:42:43 +02:00
vdpa dev: introduce device accessors 2022-09-23 16:14:34 +02:00
vhost eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
vhost_blk eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
vhost_crypto examples: skip build when missing dependencies 2021-11-10 11:42:34 +01:00
vm_power_manager eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
vmdq fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
vmdq_dcb ethdev: add namespace 2021-10-22 18:15:38 +02:00
meson.build examples/l3fwd: move packet group function in common 2022-06-30 06:54:21 +02:00