numam-dpdk/examples
Piotr Azarewicz 2d8d97b734 examples/ip_pipeline: fix coverity warnings
The source and destination both are the arrays of cmdline_parse_ctx_t.
So the goal is to copy elements size of cmdline_parse_ctx_t not
cmdline_parse_ctx_t*.

CID 120412:  Code maintainability issues  (SIZEOF_MISMATCH)
Passing argument "&app->cmds[app->n_cmds]" of type "cmdline_parse_ctx_t *"
and argument "n_cmds * 8UL /* sizeof (cmdline_parse_ctx_t *) */"
to function "memcpy" is suspicious.
In this case, "sizeof (cmdline_parse_ctx_t *)" is equal to
"sizeof (cmdline_parse_ctx_t)", but this is not a portable assumption.

Coverity issue: 120412
Fixes: b4aee0fb9c ("examples/ip_pipeline: reconfigure thread binding dynamically")
Fixes: ea0908c4ab ("examples/ip_pipeline: add master pipeline")
Fixes: eb32fe7c55 ("examples/ip_pipeline: rework initialization parameters")

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Piotr Azarewicz <piotrx.t.azarewicz@intel.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
2015-12-09 22:02:33 +01:00
..
bond examples/bond: fix FreeBSD build 2015-12-07 03:21:13 +01:00
cmdline examples: fix whitespace 2015-06-12 11:10:10 +02:00
distributor examples/distributor: fix build with icc 2015 2015-11-27 21:43:35 +01:00
dpdk_qat replace bzero with memset 2015-12-07 04:57:16 +01:00
ethtool examples/ethtool: remove dead code 2015-12-09 22:02:33 +01:00
exception_path apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
helloworld tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
ip_fragmentation mbuf: remove packet type from offload flags 2015-09-03 19:22:48 +02:00
ip_pipeline examples/ip_pipeline: fix coverity warnings 2015-12-09 22:02:33 +01:00
ip_reassembly mbuf: remove packet type from offload flags 2015-09-03 19:22:48 +02:00
ipv4_multicast examples/ipv4_multicast: support double vlan stripping and insertion 2015-07-07 16:42:49 +02:00
kni examples/kni: fix crash on exit 2015-08-10 16:25:30 +02:00
l2fwd examples: fix whitespace 2015-06-12 11:10:10 +02:00
l2fwd-crypto examples/l2fwd-crypto: fix option -t 2015-12-07 03:21:13 +01:00
l2fwd-ivshmem apps: fix default mbuf size 2015-05-11 15:51:14 +02:00
l2fwd-jobstats apps: fix default mbuf size 2015-05-11 15:51:14 +02:00
l2fwd-keepalive examples/l2fwd-keepalive: add sample application 2015-11-19 15:45:26 +01:00
l3fwd examples/l3fwd: fix crash with unaligned L2 header 2015-12-07 03:21:13 +01:00
l3fwd-acl acl: remove old API 2015-09-03 19:22:48 +02:00
l3fwd-power examples/l3fwd-power: disable Rx interrupt when waking up 2015-10-29 23:47:37 +01:00
l3fwd-vf hash: rename unused field 2015-07-13 19:27:31 +02:00
link_status_interrupt apps: fix default mbuf size 2015-05-11 15:51:14 +02:00
load_balancer mbuf: use offset macro 2015-06-24 12:01:14 +02:00
multi_process examples: fix whitespace 2015-06-12 11:10:10 +02:00
netmap_compat examples: fix whitespace 2015-06-12 11:10:10 +02:00
packet_ordering apps: fix default mbuf size 2015-05-11 15:51:14 +02:00
ptpclient examples/ptpclient: add minimal PTP client 2015-11-13 17:44:49 +01:00
qos_meter apps: fix default mbuf size 2015-05-11 15:51:14 +02:00
qos_sched examples/qos_sched: remove duplicated cfgfile library 2015-10-22 18:09:36 +02:00
quota_watermark examples: fix whitespace 2015-06-12 11:10:10 +02:00
rxtx_callbacks apps: fix default mbuf size 2015-05-11 15:51:14 +02:00
skeleton apps: fix default mbuf size 2015-05-11 15:51:14 +02:00
tep_termination eal/linux: fix build with glibc < 2.12 2015-11-25 14:41:37 +01:00
timer tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
vhost examples/vhost: fix statistics 2015-12-07 03:21:13 +01:00
vhost_xen examples/vhost_xen: fix build 2015-12-07 03:21:13 +01:00
vm_power_manager examples/vm_power_manager: fix build with libvirt < 1.0 2015-12-08 00:09:43 +01:00
vmdq examples/vmdq: fix crash when using too many pools 2015-12-07 03:21:13 +01:00
vmdq_dcb ethdev: rename DCB field in config structs 2015-11-01 14:44:31 +01:00
Makefile examples/ethtool: add user-space ethtool sample application 2015-12-08 03:00:42 +01:00