From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <rkerur@gmail.com>
Received: from mail-pd0-f169.google.com (mail-pd0-f169.google.com
 [209.85.192.169]) by dpdk.org (Postfix) with ESMTP id 3A0792E8B
 for <dev@dpdk.org>; Fri, 21 Nov 2014 19:03:25 +0100 (CET)
Received: by mail-pd0-f169.google.com with SMTP id fp1so5735010pdb.0
 for <dev@dpdk.org>; Fri, 21 Nov 2014 10:13:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:date:message-id:subject:from:to:cc:content-type;
 bh=+rjdGG1fxuDLhRd/LiC1doQNuQIutMdpd8k6DGCUVsc=;
 b=kZ4YeYUxhQz4m5Lne4FYBcIx1fmvwc/xvNEwY71+5XWBsIOlJc9xYZ42Ja25gf0F/z
 /fu5CR/whXBY7GalL2SJRd9tw2PzSz6ajBEbpobEAHgbBB/rNAlyzO6Vdu6ON40Ycahb
 OOGcD7mUQ0VLoGdSwhBb7aZLE3X6K06XAaaB4I7Ix+t3Fx6xfEuv/YpBH9+qCR60fAfI
 VmauggFeNKEbebCPK7icGfDy99r+eTHR74RSNEf3N0zvpTMGUaZPyJhrOa2MEctg+L2U
 v/b9rk+AZyxvg3jt5jcqyQQKabSP5sK6WhTU0c0C/Y9tafneDzF2UdKdx7RQKd5WW14X
 yF1A==
MIME-Version: 1.0
X-Received: by 10.70.59.65 with SMTP id x1mr9634315pdq.102.1416593639592; Fri,
 21 Nov 2014 10:13:59 -0800 (PST)
Received: by 10.70.92.42 with HTTP; Fri, 21 Nov 2014 10:13:59 -0800 (PST)
Date: Fri, 21 Nov 2014 10:13:59 -0800
Message-ID: <CAFb4SLC+8Sf5=E-8AtQ8ki976peXKr=WtjgjU7X6cAT4iC3HJA@mail.gmail.com>
From: r k <rkerur@gmail.com>
To: "dev@dpdk.org" <dev@dpdk.org>
Content-Type: text/plain; charset=UTF-8
Subject: [dpdk-dev] Q on consolidating linuxapp/bsdapp in eal
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Fri, 21 Nov 2014 18:03:25 -0000

Hi,

Thanks to Thomas for providing some inputs on this.

I am looking at consolidating common code in linuxapp/bsdapp in
librte_eal. I have started with header files and had some questions
related to it.

1. For some header files for e.g. eal_internal_cfg.h, there are very
minor differences between linux and bsd. In these cases is it ok to
separate out code in header files using
RTE_EXEC_ENV_BSDAPP/RTE_EXEC_ENV_LINUXAPP after moving to common
directory?

2. Files with same names for e.g. rte_lcore.h/rte_per_lcore.h are
present in multiple directories
            in librte_eal/common/include
            in librte_eal/[linuxapp/bsdapp]/eal/include/exec-env
     Not sure which one is the latest and should be referenced.

Inputs appreciated.

Thanks,
Ravi