From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Marchand Subject: [PATCH 2/7] app/test: use accessor to set refcnt field Date: Mon, 18 Aug 2014 11:26:08 +0200 Message-ID: <1408353973-16663-3-git-send-email-david.marchand@6wind.com> References: <1408353973-16663-1-git-send-email-david.marchand@6wind.com> To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <1408353973-16663-1-git-send-email-david.marchand-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" refcnt field can not be accessed directly as it depends on the RTE_MBUF_REFCNT build option. Signed-off-by: David Marchand --- app/test/test_distributor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_distributor.c b/app/test/test_distributor.c index e7dc1fb..7648ed1 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); -- 1.7.10.4