Signed-off-by: Bill Fischofer <bill.fischo...@linaro.org>
---
 example/classifier/odp_classifier.c | 2 +-
 example/generator/odp_generator.c   | 4 ++--
 example/ipsec/odp_ipsec.c           | 4 ++--
 example/packet/odp_pktio.c          | 2 +-
 example/timer/odp_timer_test.c      | 1 +
 5 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/example/classifier/odp_classifier.c 
b/example/classifier/odp_classifier.c
index ef95f95..e9b3700 100644
--- a/example/classifier/odp_classifier.c
+++ b/example/classifier/odp_classifier.c
@@ -430,7 +430,7 @@ int main(int argc, char *argv[])
        printf("cpu mask:           %s\n", cpumaskstr);
 
        /* Create packet pool */
-       memset(&params, 0, sizeof(params));
+       odp_pool_param_init(&params);
        params.pkt.seg_len = SHM_PKT_POOL_BUF_SIZE;
        params.pkt.len     = SHM_PKT_POOL_BUF_SIZE;
        params.pkt.num     = SHM_PKT_POOL_SIZE/SHM_PKT_POOL_BUF_SIZE;
diff --git a/example/generator/odp_generator.c 
b/example/generator/odp_generator.c
index 484e6bc..936a896 100644
--- a/example/generator/odp_generator.c
+++ b/example/generator/odp_generator.c
@@ -649,7 +649,7 @@ int main(int argc, char *argv[])
        printf("cpu mask:           %s\n", cpumaskstr);
 
        /* Create packet pool */
-       memset(&params, 0, sizeof(params));
+       odp_pool_param_init(&params);
        params.pkt.seg_len = SHM_PKT_POOL_BUF_SIZE;
        params.pkt.len     = SHM_PKT_POOL_BUF_SIZE;
        params.pkt.num     = SHM_PKT_POOL_SIZE/SHM_PKT_POOL_BUF_SIZE;
@@ -678,7 +678,7 @@ int main(int argc, char *argv[])
        odp_timer_pool_start();
 
        /* Create timeout pool */
-       memset(&params, 0, sizeof(params));
+       odp_pool_param_init(&params);
        params.tmo.num     = tparams.num_timers; /* One timeout per timer */
        params.type        = ODP_POOL_TIMEOUT;
 
diff --git a/example/ipsec/odp_ipsec.c b/example/ipsec/odp_ipsec.c
index da88b17..0924a6e 100644
--- a/example/ipsec/odp_ipsec.c
+++ b/example/ipsec/odp_ipsec.c
@@ -348,7 +348,7 @@ void ipsec_init_pre(void)
        }
 
        /* Create output buffer pool */
-       memset(&params, 0, sizeof(params));
+       odp_pool_param_init(&params);
        params.pkt.seg_len = SHM_OUT_POOL_BUF_SIZE;
        params.pkt.len     = SHM_OUT_POOL_BUF_SIZE;
        params.pkt.num     = SHM_PKT_POOL_BUF_COUNT;
@@ -1294,7 +1294,7 @@ main(int argc, char *argv[])
        odp_barrier_init(&sync_barrier, num_workers);
 
        /* Create packet buffer pool */
-       memset(&params, 0, sizeof(params));
+       odp_pool_param_init(&params);
        params.pkt.seg_len = SHM_PKT_POOL_BUF_SIZE;
        params.pkt.len     = SHM_PKT_POOL_BUF_SIZE;
        params.pkt.num     = SHM_PKT_POOL_BUF_COUNT;
diff --git a/example/packet/odp_pktio.c b/example/packet/odp_pktio.c
index 7430b09..c485530 100644
--- a/example/packet/odp_pktio.c
+++ b/example/packet/odp_pktio.c
@@ -376,7 +376,7 @@ int main(int argc, char *argv[])
        printf("cpu mask:           %s\n", cpumaskstr);
 
        /* Create packet pool */
-       memset(&params, 0, sizeof(params));
+       odp_pool_param_init(&params);
        params.pkt.seg_len = SHM_PKT_POOL_BUF_SIZE;
        params.pkt.len     = SHM_PKT_POOL_BUF_SIZE;
        params.pkt.num     = SHM_PKT_POOL_SIZE/SHM_PKT_POOL_BUF_SIZE;
diff --git a/example/timer/odp_timer_test.c b/example/timer/odp_timer_test.c
index da7b208..ff1a8ce 100644
--- a/example/timer/odp_timer_test.c
+++ b/example/timer/odp_timer_test.c
@@ -412,6 +412,7 @@ int main(int argc, char *argv[])
        /*
         * Create pool for timeouts
         */
+       odp_pool_param_init(&params);
        params.tmo.num   = NUM_TMOS;
        params.type      = ODP_POOL_TIMEOUT;
 
-- 
2.1.0

_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to