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 38B2CA3168 for ; Wed, 16 Oct 2019 10:18:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E21D61E912; Wed, 16 Oct 2019 10:18:21 +0200 (CEST) Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by dpdk.org (Postfix) with ESMTP id 834DE1E912 for ; Wed, 16 Oct 2019 10:18:20 +0200 (CEST) Received: by mail-wr1-f67.google.com with SMTP id y18so17451417wrn.5 for ; Wed, 16 Oct 2019 01:18:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=RuaEWj/G9Ttgv2yUUcJD7f+tO0hzrzINv5TIGqMvCEE=; b=WE53aCmc5QBKE6vyNUmTK76/15nbvpSSrW3acq9bH7llLomR3G8BVx/2mpsEYmhgZW LRstrQOvzo0O5CarbMdvS4mahJF1H1kA2n8YzuArI8VDSR/BGlwL2wSy1M2nW5/Skc+W /sKP1RNlpiDD0eGk0V88JdC3Ut3bIPiW8vpP0y2QaIM+IcCncUPj2jX7Adw+5gbVD+cV g2XC7mT4yDI0pQui/+fSq4LbsKCKOr1h5WvjEhVzWnfbaacOAhI8WP78WV1PDk/9M1Jv RUPXqcmkOYypSceKrBby9vRwZmQOjDiyAHEsWlieE/ZGPnh1uleccynnsHVTG3K4ov7A S4gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=RuaEWj/G9Ttgv2yUUcJD7f+tO0hzrzINv5TIGqMvCEE=; b=QPRlg+C9A+BJhszOSBLJUxXye+LrQJvlFsUxKYpO14Ppsbk6Xe8sxMXqpOhRoOndJm 6AhwQPIUY0yCLKureV4V5UPD3FNXn5WZ8eDpzDfCO+3ajviCB6muR0jL1sIIis1bvdQm NDdw3BOCaiY54YlIKQ3FbFQwJLL1CdpmNVLoLDkdj2R9s8PG5jZacpHYOhX1Ifl+r8xL /kHrs5g5D4l6qeNQFkZkbKETjVedVF88BQ2NjyrFBa/h7egU/vFl/xjWxaLksWoe8ebi 9xP8WTdLH3Ng3bS4t8xMeKPtgSF7/SOgJgQjEXxtBSIlD9Kezgu2RbrGhHjtR8bA5vn8 YWYw== X-Gm-Message-State: APjAAAUxSz2k6RF1AarwxOhC4ivNW8MTcc167OFCO0oiyduMm6IjU9jz rdgG6Y19zSMbgdSP3mpEetjbww== X-Google-Smtp-Source: APXvYqwoDJXzwGABUzuPn/M9MN6wX5EbghP/imFPB87ONHguK9U++hr+3zqF0iPhUcCecm6Pd6zPhA== X-Received: by 2002:adf:f48c:: with SMTP id l12mr1435588wro.99.1571213900230; Wed, 16 Oct 2019 01:18:20 -0700 (PDT) Received: from 6wind.com (2a01cb0c0005a6000226b0fffeed02fc.ipv6.abo.wanadoo.fr. [2a01:cb0c:5:a600:226:b0ff:feed:2fc]) by smtp.gmail.com with ESMTPSA id b7sm26428398wrx.56.2019.10.16.01.18.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2019 01:18:19 -0700 (PDT) Date: Wed, 16 Oct 2019 10:18:18 +0200 From: Olivier Matz To: Konstantin Ananyev Cc: dev@dpdk.org, michel@digirati.com.br, anatoly.burakov@intel.com, vipin.varghese@intel.com Message-ID: <20191016081818.4smlprl5i5za6e42@platinum> References: <20190816125304.29719-1-konstantin.ananyev@intel.com> <20190927135054.20845-1-konstantin.ananyev@intel.com> <20190927135054.20845-3-konstantin.ananyev@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190927135054.20845-3-konstantin.ananyev@intel.com> User-Agent: NeoMutt/20180716 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 Fri, Sep 27, 2019 at 02:50:53PM +0100, 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: Olivier Matz