aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/test/pktio_ipc
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2020-07-03 17:03:49 +0300
committerGitHub <noreply@github.com>2020-07-03 17:03:49 +0300
commitaa55e35150da8099ed9f565173993609650010af (patch)
tree90573ee0b4ff53ff2c080f28b4c66a4e90f0f864 /platform/linux-generic/test/pktio_ipc
parentbd75b10924e6df74089d27482dd68bdef33eaf83 (diff)
parente20ecf15d8af37602a2eb0873d0a91dc5167dd28 (diff)
Merge ODP v1.24.0.0v1.24.0.0_DPDK_18.11
Merge and port ODP linux-generic v1.24.0.0 commits into odp-dpdk.
Diffstat (limited to 'platform/linux-generic/test/pktio_ipc')
-rw-r--r--platform/linux-generic/test/pktio_ipc/ipc_common.c1
-rw-r--r--platform/linux-generic/test/pktio_ipc/pktio_ipc2.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/platform/linux-generic/test/pktio_ipc/ipc_common.c b/platform/linux-generic/test/pktio_ipc/ipc_common.c
index b064177bc..655cd80d5 100644
--- a/platform/linux-generic/test/pktio_ipc/ipc_common.c
+++ b/platform/linux-generic/test/pktio_ipc/ipc_common.c
@@ -22,6 +22,7 @@ int ipc_odp_packet_send_or_free(odp_pktio_t pktio,
odp_pktout_queue_t pktout;
int i;
+ memset(&pktout, 0, sizeof(pktout));
start_time = odp_time_local();
wait = odp_time_local_from_ns(ODP_TIME_SEC_IN_NS);
end_time = odp_time_sum(start_time, wait);
diff --git a/platform/linux-generic/test/pktio_ipc/pktio_ipc2.c b/platform/linux-generic/test/pktio_ipc/pktio_ipc2.c
index 0d64e94ba..9d4f91341 100644
--- a/platform/linux-generic/test/pktio_ipc/pktio_ipc2.c
+++ b/platform/linux-generic/test/pktio_ipc/pktio_ipc2.c
@@ -73,6 +73,7 @@ static int ipc_second_process(int master_pid)
return -1;
}
+ memset(&pktin, 0, sizeof(pktin)); /* not needed but makes GCC happy */
if (odp_pktin_queue(ipc_pktio, &pktin, 1) != 1) {
odp_pool_destroy(pool);
ODPH_ERR("no input queue\n");