From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 9529A2904; Thu, 20 Apr 2017 19:33:22 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 262ED20B19; Thu, 20 Apr 2017 13:33:22 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Thu, 20 Apr 2017 13:33:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=W4viWE3A+67HHmB qz/D1G8Iyj21imHsqpM3XotCr6QQ=; b=TjS7TX7F2rbjJICxXuEZWLnNBHAb7+G GHgFjUsjwpX6aXFxUyh5gApDb7OB/+RxX0AJn3sb1thhSROAQSWauI4NPqYnsWTj Ar6pI12YjgLFwxXpCvryaTKdySpVm7d/U9B6DY1lrBKGOHfo9ltAtk0oh/beggiC ai/Y2b7E0aKc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=W4viWE3A+67HHmBqz/D1G8Iyj21imHsqpM3XotCr6QQ=; b=K8Ba9jDu HQWN9EO8LeIzR4g/besDOv2b+8dsu4XYvhe7xBhnSG9i/8Ekj0HNbV1m/4MeQ+9+ 2Y2+nRG4r9gwDYJfGTH9mdIVQ1A+JbSNeQf/YROnCrfEGAQLJWSmRbJ3agZmP02X GayoJajtUQq9sfQgmDuS/+KyhqRwXkqGnlum50zl9aT2oAeF8OWLi3yQD2l8DeTb QVoJ5geJYHp8FDsFET15S2xTYvgW7JuxaL1B9ZIdp814fq67aLyPEPmU9VUhLyyE +Z8qTG0uUE0HcfqAWkhjGCBsNj7QDed1LBqncsM1c4Gw18y2UX2pdzFKMp2dX9dz okT4dVSr5x72/w== X-ME-Sender: X-Sasl-enc: 25n6N/ejICCDHD8ebGxNaY9YdAbKfZbCzaVAMLKOCG11 1492709601 Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id DB07F246CA; Thu, 20 Apr 2017 13:33:21 -0400 (EDT) From: Thomas Monjalon To: Bruce Richardson Cc: stable@dpdk.org, dev@dpdk.org Date: Thu, 20 Apr 2017 19:33:20 +0200 Message-ID: <4178086.HJDzW4j0Qm@xps> In-Reply-To: <20170420163250.1373-2-bruce.richardson@intel.com> References: <20170420163250.1373-1-bruce.richardson@intel.com> <20170420163250.1373-2-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-stable] [PATCH 1/2] examples/performance-thread: fix FreeBSD compilation X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Apr 2017 17:33:22 -0000 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