numam-dpdk/examples
Kevin Traynor f8afd29247 examples/ipsec-gw: fix gcc 10 maybe-uninitialized warning
gcc 10.0.1 reports:

../examples/ipsec-secgw/ipsec_process.c: In function ‘ipsec_process’:
../examples/ipsec-secgw/ipsec_process.c:132:34:
error: ‘grp.m’ may be used uninitialized in this function
 [-Werror=maybe-uninitialized]
  132 |    grp[n].cnt = pkts + i - grp[n].m;
      |                            ~~~~~~^~

This is a correct warning for the initial execution of the statement.
However, it is the design of the loop that grp[0].cnt will later be
written with the correct value using an initialized grp[0].m before it
is used.

In order to remove the warning, initialize grp[0].m for the initial and
unused calculation of grp[0].cnt.

Fixes: 3e5f4625dc ("examples/ipsec-secgw: make data-path to use IPsec library")
Cc: stable@dpdk.org

Suggested-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2020-05-06 11:18:36 +02:00
..
bbdev_app examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
bond replace unused attributes 2020-04-16 18:30:58 +02:00
bpf examples/bpf: remove from list of examples to build 2019-10-27 17:23:05 +01:00
cmdline ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
distributor ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
ethtool ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
eventdev_pipeline ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
fips_validation replace unused attributes 2020-04-16 18:30:58 +02:00
flow_classify replace no-return attributes 2020-04-16 18:30:58 +02:00
flow_filtering ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
helloworld ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
ioat ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
ip_fragmentation ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
ip_pipeline replace packed attributes 2020-04-16 18:16:46 +02:00
ip_reassembly ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
ipsec-secgw examples/ipsec-gw: fix gcc 10 maybe-uninitialized warning 2020-05-06 11:18:36 +02:00
ipv4_multicast ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
kni examples/kni: add SIGTERM signal handling 2020-02-13 18:27:44 +01:00
l2fwd replace unused attributes 2020-04-16 18:30:58 +02:00
l2fwd-cat ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
l2fwd-crypto examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
l2fwd-event ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
l2fwd-jobstats ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
l2fwd-keepalive ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
l3fwd ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
l3fwd-acl ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
l3fwd-graph examples/l3fwd-graph: add graph config and main loop 2020-05-05 23:46:11 +02:00
l3fwd-power examples/l3fwd-power: implement proper shutdown 2020-04-26 23:51:23 +02:00
link_status_interrupt ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
multi_process ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
ntb mempool: return 0 if area is too small on populate 2020-05-05 00:27:05 +02:00
packet_ordering ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
performance-thread ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
ptpclient ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
qos_meter ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
qos_sched ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
rxtx_callbacks replace no-return attributes 2020-04-16 18:30:58 +02:00
server_node_efd ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
service_cores ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
skeleton ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
tep_termination examples/tep_term: remove redundant info get 2020-02-21 11:14:35 +01:00
timer ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
vdpa vhost: prefix vDPA enum value for PCI address type 2020-04-21 13:57:07 +02:00
vhost examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
vhost_blk examples/vhost_blk: use common macro for minimum 2020-04-21 13:57:07 +02:00
vhost_crypto examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
vm_power_manager ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
vmdq examples/vmdq: fix RSS configuration 2020-04-21 13:57:06 +02:00
vmdq_dcb ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
Makefile examples/l3fwd-graph: add graph-based l3fwd skeleton 2020-05-05 23:42:26 +02:00
meson.build examples/l3fwd-graph: add graph-based l3fwd skeleton 2020-05-05 23:42:26 +02:00