From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id A69AD8E9D for ; Tue, 24 Nov 2015 15:10:41 +0100 (CET) Received: by wmvv187 with SMTP id v187so211276125wmv.1 for ; Tue, 24 Nov 2015 06:10:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=Zlfjp8HdjfjgBuLMeLV5vjNNSmrFc/TEqZBIGUmWEMk=; b=CDKEuMwWUCBhoWx15N1VTgreTBMFkzx4qzNIDqSVKDsY6gPR5x8ZnHmit9tz93OdmZ xwsviySTHio9Qy0hZ6bl+qC5P6KpqevfxDgH+4c7fxfyhfh8Gqnwn+Q9GCS+cvpi62fi ZHWs3zLJmCzBnyyqn+/yeuMm6EbPctQ7VqLxnyMGjnr8fIgP8V7gY6ujnBPmgXE9oMg+ sv31tQf/gCc6mTZZ81LjQ/wDoeTS1eYGdpqOtxS8sbS7qscbsOQAKa7VKBwzcGjbQo+E n+mYJQntZXlDk1GD8VSVopijC5UZfDfuKLQ6+4exS9pqCqBRKEazAomtWSmR5PqX8TiA 3YVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=Zlfjp8HdjfjgBuLMeLV5vjNNSmrFc/TEqZBIGUmWEMk=; b=mXzPCMsR0abhrKTK3N2U5zf4gGkKmipqfS5Hzpb01rW/yh4+GzIbfR/xbOhJ/oXwBQ ZeSQn0dTBUz1I6rYCGhGzK9wIuRy5h0PuxdLoynGC7p9E13zpM9A+5iBItfXLaqsIwSu 7M7Vwer4b5lKsUquZAMZ5bCI+CgeivFD/YXjiKC+hD6UV9jxnafuHqdWLb3UR4Q0PN2N bjwio/iJmfz6wfJwa6QOSzuB0rhYS3k6sX+5EIQB6qjFoWhBis2015N6C4romi26oajB 00rKxeto74mHzasVUD4w5VdAnUa3RPzomJtBVv0CVX7SC25DdC0GaUOBtqhsWeKyjUHL gahg== X-Gm-Message-State: ALoCoQmqG84R9a0bCFuiCJh8dPzkE7KP1uyVN0/1UdJmfKlRRa46uJ7E53+/0vG3p9jW8KrzPFNK X-Received: by 10.194.184.81 with SMTP id es17mr41833950wjc.10.1448374241253; Tue, 24 Nov 2015 06:10:41 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id he3sm18521037wjc.25.2015.11.24.06.10.40 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Nov 2015 06:10:40 -0800 (PST) From: Thomas Monjalon To: Rasesh Mody Date: Tue, 24 Nov 2015 15:09:23 +0100 Message-ID: <2464754.e2c3r8392f@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1448351076-23161-7-git-send-email-rasesh.mody@qlogic.com> References: <1448351076-23161-1-git-send-email-rasesh.mody@qlogic.com> <1448351076-23161-7-git-send-email-rasesh.mody@qlogic.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org, sony.chacko@qlogic.com Subject: Re: [dpdk-dev] [PATCH v3 06/11] bnx2x: FreeBSD enablement 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: Tue, 24 Nov 2015 14:10:41 -0000 2015-11-23 23:44, Rasesh Mody: > --- a/drivers/net/bnx2x/bnx2x.h > +++ b/drivers/net/bnx2x/bnx2x.h > @@ -16,6 +16,12 @@ > #ifndef __BNX2X_H__ > #define __BNX2X_H__ > > +#ifdef __FreeBSD__ > +#define __LITTLE_ENDIAN _LITTLE_ENDIAN > +#define __BIG_ENDIAN _BIG_ENDIAN > +#define __BYTE_ORDER _BYTE_ORDER > +#endif > + > #include "bnx2x_ethdev.h" > > #if __BYTE_ORDER == __LITTLE_ENDIAN [...] > --- a/drivers/net/bnx2x/ecore_sp.h > +++ b/drivers/net/bnx2x/ecore_sp.h > @@ -16,6 +16,12 @@ > #ifndef ECORE_SP_H > #define ECORE_SP_H > > +#ifdef __FreeBSD__ > +#define __LITTLE_ENDIAN _LITTLE_ENDIAN > +#define __BIG_ENDIAN _BIG_ENDIAN > +#define __BYTE_ORDER _BYTE_ORDER > +#endif > + > #if __BYTE_ORDER == __LITTLE_ENDIAN > #ifndef LITTLE_ENDIAN > #define LITTLE_ENDIAN Why not use RTE_BYTE_ORDER which manages already these tricks? Maybe you have not noticed it: lib/librte_eal/common/include/generic/rte_byteorder.h