From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0DB93A0613 for ; Fri, 27 Sep 2019 16:42:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E37F81BEFD; Fri, 27 Sep 2019 16:42:47 +0200 (CEST) Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) by dpdk.org (Postfix) with ESMTP id 88C1A1BEF1 for ; Fri, 27 Sep 2019 16:42:46 +0200 (CEST) X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (uk.solarflare.com [193.34.186.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id A624814007B; Fri, 27 Sep 2019 14:42:38 +0000 (UTC) Received: from [192.168.38.17] (91.220.146.112) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 27 Sep 2019 15:42:33 +0100 To: Konstantin Ananyev , CC: , , , References: <20190816125304.29719-1-konstantin.ananyev@intel.com> <20190927135054.20845-1-konstantin.ananyev@intel.com> <20190927135054.20845-3-konstantin.ananyev@intel.com> From: Andrew Rybchenko Message-ID: Date: Fri, 27 Sep 2019 17:42:29 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20190927135054.20845-3-konstantin.ananyev@intel.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB X-Originating-IP: [91.220.146.112] X-ClientProxiedBy: ocex03.SolarFlarecom.com (10.20.40.36) To ukex01.SolarFlarecom.com (10.17.10.4) X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1010-24936.003 X-TM-AS-Result: No-5.846400-8.000000-10 X-TMASE-MatchedRID: VPleTT1nwdTmLzc6AOD8DfHkpkyUphL9nzPrJkGalpAKQo6lRC5cFYXv teZ/aS6R38y6OmHWfaGYUxcmvtIkiw02opqQYj8IkcpsDkbAjyHoorYAfwrokH9nRLJB1yYQtdA 9AfZ7l9PhmkSwZIU8JoGiUr4CpDqCp3ZzV11tDxIylU6xjA3vw6pkWxQ8fXXQmyiLZetSf8nJ4y 0wP1A6AAOkBnb8H8GWQN6qaRgrxrxq8/xv2Um1avoLR4+zsDTtc20lvB2foagJz09GSVWCq0Ab6 OD7p0kaOIeSH4q3y2hxvWOfTxC70lZca9RSYo/b X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--5.846400-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1010-24936.003 X-MDID: 1569595366-i0YX6OQOtayU Subject: Re: [dpdk-dev] [PATCH v2 2/3] mbuf: move mbuf definition into a separate file X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 9/27/19 4:50 PM, Konstantin Ananyev wrote: > Right now inclusion of rte_mbuf.h header can cause inclusion of > some arch/os specific headers. > That prevents it to be included directly by some > non-DPDK (but related) entities: KNI, BPF programs, etc. > To overcome that problem usually a separate definitions of rte_mbuf > structure is created within these entities. > That aproach has a lot of drawbacks: code duplication, error prone, etc. > This patch moves rte_mbuf structure definition (and some related macros) > into a separate file that can be included by both rte_mbuf.h and > other non-DPDK entities. > > Note that it doesn't introduce any change for current DPDK code. > > Signed-off-by: Konstantin Ananyev Acked-by: Andrew Rybchenko