From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by dpdk.org (Postfix) with ESMTP id DEBD7B363 for ; Mon, 18 Aug 2014 11:23:03 +0200 (CEST) Received: by mail-wi0-f169.google.com with SMTP id n3so3399964wiv.0 for ; Mon, 18 Aug 2014 02:26:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=USHlbmwdgwhE7qLO0PNirTj2CCwr084GonO8ruIudjg=; b=WGA50RmuLESjRxCLqT1kQ6hh+to4u6ENrfGTitr0morDgNr07g84U1dbMVsr8Pcsyq EsZpLE242vQtql9GBJHLUGLLo29onVu31B6E756GS1KSIhcuL9HquyurhOBtVjUUdkfq qHmF15IHyjhmbfbNmAAF+wORCYCKUMj80toWdBNu1mIqyDkVsqIJhssNdCDnrBX6wOBk pwGvNYfSUfBzC1iOxa8Twdx2xQIiU7Sybulnp0UZ5SmRqYOBMs/dwSul+3U+OYZCGgqi f9qEpbtmdS1bHQzC5SGYPhJddHXIPYjJ+zh7WWQliiKCru+I4jnp8aSTibsLdTyW4DsB igZQ== X-Gm-Message-State: ALoCoQk+pp9PI+LYgkNQfsowBjMl49pxyVBGcwu35cfcwHYCyTaGugh8z66qDtrS891+FrxFdyCt X-Received: by 10.180.14.2 with SMTP id l2mr2139719wic.50.1408353986278; Mon, 18 Aug 2014 02:26:26 -0700 (PDT) Received: from alcyon.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by mx.google.com with ESMTPSA id za9sm25087627wjc.29.2014.08.18.02.26.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Aug 2014 02:26:25 -0700 (PDT) From: David Marchand To: dev@dpdk.org Date: Mon, 18 Aug 2014 11:26:08 +0200 Message-Id: <1408353973-16663-3-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1408353973-16663-1-git-send-email-david.marchand@6wind.com> References: <1408353973-16663-1-git-send-email-david.marchand@6wind.com> Subject: [dpdk-dev] [PATCH 2/7] app/test: use accessor to set refcnt field X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2014 09:23:04 -0000 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