From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [dpdk-stable] [PATCH 1/2] examples/performance-thread: fix FreeBSD compilation Date: Thu, 20 Apr 2017 19:33:20 +0200 Message-ID: <4178086.HJDzW4j0Qm@xps> References: <20170420163250.1373-1-bruce.richardson@intel.com> <20170420163250.1373-2-bruce.richardson@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: stable@dpdk.org, dev@dpdk.org To: Bruce Richardson Return-path: In-Reply-To: <20170420163250.1373-2-bruce.richardson@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 20/04/2017 18:32, Bruce Richardson: > This set of sample apps did not compile on FreeBSD due to use of a number > of Linux/glibc-specific APIs, or APIs which existed in different headers > on FreeBSD. Specifically, the following APIs has problems: > * sched_getcpu() is a glibc extension > * pthread_yield() returns int on Linux, but void on FreeBSD > * APIs for managing cpu affinity are in pthread_np.h on FreeBSD, rather > than in pthread.h > * the type for managing cpu sets is cpuset_t on FreeBSD rather than > cpu_set_t as on Linux. It can be fixed by using rte_cpuset_t defined in lib/librte_eal/common/include/rte_lcore.h