From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 7A6CC5A7E for ; Mon, 12 Jan 2015 20:16:38 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP; 12 Jan 2015 11:16:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,691,1406617200"; d="scan'208";a="511102613" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga003.jf.intel.com with ESMTP; 12 Jan 2015 11:10:31 -0800 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id t0CJGZc6008614; Mon, 12 Jan 2015 19:16:35 GMT Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id t0CJGYtv017207; Mon, 12 Jan 2015 19:16:34 GMT Received: (from kananye1@localhost) by sivswdev02.ir.intel.com with id t0CJGYVK017203; Mon, 12 Jan 2015 19:16:34 GMT From: Konstantin Ananyev To: dev@dpdk.org Date: Mon, 12 Jan 2015 19:16:05 +0000 Message-Id: <1421090181-17150-2-git-send-email-konstantin.ananyev@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1421090181-17150-1-git-send-email-konstantin.ananyev@intel.com> References: <1421090181-17150-1-git-send-email-konstantin.ananyev@intel.com> Subject: [dpdk-dev] [PATCH v2 01/17] fix fix compilation issues with RTE_LIBRTE_ACL_STANDALONE=y 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, 12 Jan 2015 19:16:39 -0000 Signed-off-by: Konstantin Ananyev --- lib/librte_acl/rte_acl_osdep_alone.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/librte_acl/rte_acl_osdep_alone.h b/lib/librte_acl/rte_acl_osdep_alone.h index a84b6f9..2a99860 100644 --- a/lib/librte_acl/rte_acl_osdep_alone.h +++ b/lib/librte_acl/rte_acl_osdep_alone.h @@ -214,6 +214,13 @@ rte_rdtsc(void) /* * rte_tailq related. */ + +struct rte_tailq_entry { + TAILQ_ENTRY(rte_tailq_entry) next; /**< Pointer entries for a tailq list + */ + void *data; /**< Pointer to the data referenced by this tailq entry */ +}; + static inline void * rte_dummy_tailq(void) { @@ -248,6 +255,7 @@ rte_zmalloc_socket(__rte_unused const char *type, size_t size, unsigned align, void *ptr; int rc; + align = (align != 0) ? align : RTE_CACHE_LINE_SIZE; rc = posix_memalign(&ptr, align, size); if (rc != 0) { rte_errno = rc; @@ -258,6 +266,8 @@ rte_zmalloc_socket(__rte_unused const char *type, size_t size, unsigned align, return ptr; } +#define rte_zmalloc(type, sz, align) rte_zmalloc_socket(type, sz, align, 0) + /* * rte_debug related */ @@ -271,6 +281,8 @@ rte_zmalloc_socket(__rte_unused const char *type, size_t size, unsigned align, exit(err); \ } while (0) +#define rte_cpu_get_flag_enabled(x) (0) + #ifdef __cplusplus } #endif -- 1.8.5.3