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 36BBD3239 for ; Sun, 20 Nov 2016 16:20:32 +0100 (CET) Received: by mail-wm0-f48.google.com with SMTP id f82so106883053wmf.1 for ; Sun, 20 Nov 2016 07:20:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=o4MX1wNoTbE9udbalFRzWkxeuI+Sq7vu4bqZL3cWyGk=; b=f3Jn7ZuRRNYlED6Vnve+0fL0qEVqEJnlQb+uXTCslYyWX01DtOXKAmq8INNSbOr4hy VdmYuo6DOcMrAfXz207a177vxSwCxc7SAidBrVIhpR7ZgclQQzPGbq8oZwuCnshcYNKb DNaWttw6iv/kOuyXfBAuSZF7vRUI0uicr8PB2yL+sC7QfPrwQPhHqv/mB5YMrf/bFWKJ H/WsSncANMEqPphhXDt6ee5nBif9ZTM7rRmpG4CIo3fa06WXV2UXeWtVDN1OJw/HZKI4 UDrkGtcjW7rSEM+rZ1WkC6EjSZB/sDlWt82UrhaC2CwElp8U4bRgO4Rrpdgf73Uis6Tz o5iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=o4MX1wNoTbE9udbalFRzWkxeuI+Sq7vu4bqZL3cWyGk=; b=coQo6NqoBpYEh1bapK+OjlTqr7jTuPV/gMRaT7FRPTiGgVZnnbgKgSAbVfijdSaVpl 5xBnXEIS876gNG5adt2I0996UU3Dv1yWTDbYwm4cw2h8WsTsFOGKHKQD3MpB/r+13Fle xQtLOehVyt+ufnKDBV5mVWhRrZoVxwK+KswnG148d/WzlZ1O2tPg1/r3lvllOCNVNTUA GKfrXoz4fJ8bNz99DFxR8KtVjlqhD7v3Z/hzJ3ER5ApVyTHyJ4oKXTcvYQbC79aDbXI1 4iOBWb+CI09qj68bj/nAOimyVULSakfFxKLBxx24wlvLoX9bgCHbcZAvfyQ1XpppjrCt aWBw== X-Gm-Message-State: AKaTC01PPc/e3uHOMKHSuym35ckfJNNsVhcD5Y/VEZpTOitofTMWyXfWA0fYoXlyBv1R/FPFbYmtUFywP1Vc1RU4 X-Received: by 10.28.13.144 with SMTP id 138mr8130727wmn.120.1479655232682; Sun, 20 Nov 2016 07:20:32 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.188.6 with HTTP; Sun, 20 Nov 2016 07:20:12 -0800 (PST) In-Reply-To: <1479636327-4166-2-git-send-email-jblunck@infradead.org> References: <1479636327-4166-1-git-send-email-jblunck@infradead.org> <1479636327-4166-2-git-send-email-jblunck@infradead.org> From: David Marchand Date: Sun, 20 Nov 2016 16:20:12 +0100 Message-ID: To: Jan Blunck Cc: "dev@dpdk.org" , Shreyansh Jain Content-Type: text/plain; charset=UTF-8 Subject: Re: [dpdk-dev] [PATCH 2/7] eal: Helper to convert to struct rte_pci_device 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: Sun, 20 Nov 2016 15:20:33 -0000 Hello Jan, On Sun, Nov 20, 2016 at 11:05 AM, Jan Blunck wrote: > Signed-off-by: Jan Blunck > --- > lib/librte_eal/common/include/rte_pci.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/lib/librte_eal/common/include/rte_pci.h b/lib/librte_eal/common/include/rte_pci.h > index 9ce8847..0376160 100644 > --- a/lib/librte_eal/common/include/rte_pci.h > +++ b/lib/librte_eal/common/include/rte_pci.h > @@ -160,6 +160,8 @@ struct rte_pci_device { > enum rte_kernel_driver kdrv; /**< Kernel driver passthrough */ > }; > > +#define ETH_DEV_PCI_DEV(ptr) ((ptr)->pci_dev) > + > /** Any PCI device identifier (vendor, device, ...) */ > #define PCI_ANY_ID (0xffff) > #define RTE_CLASS_ANY_ID (0xffffff) This should come from ethdev, not eal. -- David Marchand