From: David Marchand Date: Mon, 18 Aug 2014 11:29:20 +0000 (+0200) Subject: app/test: use accessor to set refcnt field X-Git-Tag: spdx-start~10459 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=74f13ebb914a84a9cd743b58f18755221eb17c5a;p=dpdk.git app/test: use accessor to set refcnt field refcnt field can not be accessed directly as it depends on the RTE_MBUF_REFCNT build option. Signed-off-by: David Marchand Acked-by: Bruce Richardson Acked-by: Neil Horman --- diff --git a/app/test/test_distributor.c b/app/test/test_distributor.c index e7dc1fb212..7648ed1d65 100644 --- a/app/test/test_distributor.c +++ b/app/test/test_distributor.c @@ -282,7 +282,7 @@ sanity_test_with_mbuf_alloc(struct rte_distributor *d, struct rte_mempool *p) rte_distributor_process(d, NULL, 0); for (j = 0; j < BURST; j++) { bufs[j]->pkt.hash.rss = (i+j) << 1; - bufs[j]->refcnt = 1; + rte_mbuf_refcnt_set(bufs[j], 1); } rte_distributor_process(d, bufs, BURST);