From patchwork Mon Aug 18 11:29:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Marchand X-Patchwork-Id: 170 Return-Path: Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by dpdk.org (Postfix) with ESMTP id 17B5EB36C for ; Mon, 18 Aug 2014 13:26:23 +0200 (CEST) Received: by mail-wi0-f179.google.com with SMTP id f8so3479533wiw.12 for ; Mon, 18 Aug 2014 04:29:45 -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=UN27WpNxu5R9PVv3XtYJuaF3NzfmmvKOjqrDhM7HCnuJp2NbIGoabBu2j+AL580lqz rPNVuZOdXoJYb8vZuJRc1EJab0LetKZwbqe5K0PA8SRWyJt6E0lGJebCbEnZLW0h8ZgJ IPzFf6Kj0bVSQer/jxPpnmp5xIc+WzLuyYTCg0iY2wcgsV6sA/CZ7ji4eNAL40G7LwOX 25Ea0HdGCCdPaYmkuXOwvk+IlR7qS0zCgBtnrIfFzib3XvKYXfxCc8if/uKhke2U9v28 qhyhGNhDbUEK6qRwg7AB5wGNUVntbgSmd1D/WLcKcialFJ4COynHxYsl5k3BqQ+b7d+M NVXQ== X-Gm-Message-State: ALoCoQm4BDl1O0l5Q/e8YlL0Y0d5P6uN1/ZB7+GEdyzc+zP9PKQuzgOUJFJ06Ks3MaEj5CX7D2JV X-Received: by 10.180.93.8 with SMTP id cq8mr40479383wib.17.1408361385737; Mon, 18 Aug 2014 04:29:45 -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 es9sm41617207wjd.1.2014.08.18.04.29.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Aug 2014 04:29:45 -0700 (PDT) From: David Marchand To: dev@dpdk.org Date: Mon, 18 Aug 2014 13:29:20 +0200 Message-Id: <1408361365-12988-3-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1408361365-12988-1-git-send-email-david.marchand@6wind.com> References: <1408361365-12988-1-git-send-email-david.marchand@6wind.com> Subject: [dpdk-dev] [PATCH v2 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 11:26:23 -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);