From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wj0-f193.google.com (mail-wj0-f193.google.com [209.85.210.193]) by dpdk.org (Postfix) with ESMTP id C91065582 for ; Mon, 21 Nov 2016 11:47:25 +0100 (CET) Received: by mail-wj0-f193.google.com with SMTP id xy5so3563794wjc.1 for ; Mon, 21 Nov 2016 02:47:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=TKab70gt7xFSoymKtLAU0soLBTjhK2HIbFdRB/Ck714=; b=MCgrBSlFlmpocZEwWyKLpon3Dl54nNf329ao6KWwigOrlF20fJf3qf3ZHrPptkDFVJ bSJ0SkZOPuqEAai2xA2eU+2/JFFy4ULt9pMkGWWL3f8J/AMHkiI82x2zv8ndqUc2AV3U vemfd4gMky+u6zaoqL30VGmn2stnmJ2mY0SH/pUKSyhAf3yfuC5lzd2Dpsy3VfSO1f/v 5gpNECN1fV6ezF1zbeMxvGcnf8GDk1ZUh+NOF1jkKp0pKGoQyTPRMveZFd0MPrL2mJTg kdA2QOhtHvwDzxu1z4yzG/vkLa2rrt9yCM66RTLEUO+mnprN23m+pE6/zHMIjgYeowut pCJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=TKab70gt7xFSoymKtLAU0soLBTjhK2HIbFdRB/Ck714=; b=QiLSb014ixpoPgkwWPz5XYP4PD813o/5lgUDn+4x4VNa5j0Q4beffjGevY9UIhzOT0 OvJPMLTzotAJuw0SocpNTiS1Ji0bnEDnvqBfdwa//qcp5RleaX7tE6jl6J0rfP8gRB7V EMnDVwqRPj5M+PY0/fQp5m9AM5bCisJ6w5IdX7WVNoJcDjsyEBf5md3HlHQn7s3zivBq gb/WhLJe2XW+mwE7IMVWAZLu0nDsRjh8FriDHapgYXqgiUnyzzIhW3oT8QG5feUC4lkQ c4sGHWT9hbcJtr/Pp2Pw+yd5hnXCfB1pGEm1jy0zTrUQzZFGBcC8vL96zc7NXBV/4HUE xkrw== X-Gm-Message-State: AKaTC02aIEw+JuwZ4st0Lgnu/Ths4EAozQODnT+YUgbTYLikqXAic0SU0/txzjEEyThdMS+TFLtFlOiN6stHvQ== X-Received: by 10.194.95.194 with SMTP id dm2mr8523295wjb.207.1479725244750; Mon, 21 Nov 2016 02:47:24 -0800 (PST) MIME-Version: 1.0 Sender: jblunck@gmail.com Received: by 10.28.191.8 with HTTP; Mon, 21 Nov 2016 02:47:24 -0800 (PST) In-Reply-To: <29033576.pHDTdAbKFW@xps13> References: <1479360605-20558-1-git-send-email-shreyansh.jain@nxp.com> <29033576.pHDTdAbKFW@xps13> From: Jan Blunck Date: Mon, 21 Nov 2016 11:47:24 +0100 X-Google-Sender-Auth: 2uuYUJl6aSJkx90RCRXMvr4kD2U Message-ID: To: Thomas Monjalon Cc: dev@dpdk.org, David Marchand , Shreyansh Jain Content-Type: text/plain; charset=UTF-8 Subject: Re: [dpdk-dev] [RFC PATCH 0/6] Restructure EAL device model for bus support 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: Mon, 21 Nov 2016 10:47:25 -0000 On Mon, Nov 21, 2016 at 10:08 AM, Thomas Monjalon wrote: > 2016-11-20 16:30, David Marchand: >> For a first patchset, I would see: >> - introduce the rte_bus object. In rte_eal_init, for each bus, we call >> the scan method. Then, for each bus, we find the appropriate >> rte_driver using the bus match method then call the probe method. If >> the probe succeeds, the rte_device points to the associated >> rte_driver, >> - migrate the pci scan code to a pci bus (scan looks at sysfs for >> linux / ioctl for bsd + devargs for blacklist / whitelist ?), match is >> the same at what is done in rte_eal_pci_probe_one_driver() at the >> moment, >> - migrate the vdev init code to a vdev bus (scan looks at devargs): >> this is new, we must create rte_device objects for vdev drivers to use >> later > > I think it can be 3 patchsets. > Who can work on the vdev part please? I'll take a look.