From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id 383DB2934 for ; Mon, 21 Nov 2016 10:08:36 +0100 (CET) Received: by mail-wm0-f41.google.com with SMTP id g23so134369016wme.1 for ; Mon, 21 Nov 2016 01:08:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=w03AEwQ47Y/ORZD1jsinKIqKZro/SofCOSbDa4sWx/g=; b=zzutDgweTSf8qkfAg5XQU9DEqOmuzGgUytSPa76Vp15dslti8gh1N34flMsjpD2e0j CoSmX8wNAnLLwpsj+t2qj0O/kdamW25baI0QXI2Xu4yjK+D/kzyNcoeiW/3pCrmkU4Kp WLmL6l8aKxMd1czNBNtjdDxGAJBQOYFEzCdbvmthbmucLF/fGDIbMvbv5zOMG0DWzUls QuCByGZYvEHzwNN53CVEUfJg8SMnL4QQlNDA3sMdgp1BN5m808p1ws1f4sdn5MxqnBam v3xRnymPu8TVaHXGgTqkU502gnMhytyh3xl15TuQDCh5zOLYw5sX0zmzSuQ4E6vdBmsW LLDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=w03AEwQ47Y/ORZD1jsinKIqKZro/SofCOSbDa4sWx/g=; b=M3bP+zu7eoFzEuA8pW8VhsL/T2J+FCfLSxJ0YbQUkcDpMombufQqdKJJu9ueMhxNri SYHvTJ8xOEd+MnY1ObiwqGC7ZurHuMtYMeyo3p7dlTDYXoIcvuB1EpEFBpi6TIy/yO3s +j4wbdtjESxfVtmgbc82dGIhy4eEHgnEswDoSLI6LR9FrgWazd05OlqlTUQvKk2NKGbb PS2ySoCIgLtvw1AH7gH1RcWRhlZduGqp+q0E1R9DxaFfCOQgoBlzEBZc9FGxA0QPVSvJ OAqKPM44rzZuHM8C6fY6bIEVrKsxL4lPBWs5bWAHIKoPbXVunyCys44XimFxnRvzTrRR PDCg== X-Gm-Message-State: AKaTC007hD+xIxyM3yFP9UQ4f72tnXKxQ0uo9JFpO6eHOEaSu4J0SBjSpAyLrcNl9qobu6z0 X-Received: by 10.28.147.134 with SMTP id v128mr14739201wmd.3.1479719315605; Mon, 21 Nov 2016 01:08:35 -0800 (PST) Received: from xps13.localnet (183.20.90.92.rev.sfr.net. [92.90.20.183]) by smtp.gmail.com with ESMTPSA id ef10sm4226100wjd.22.2016.11.21.01.08.33 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Nov 2016 01:08:34 -0800 (PST) From: Thomas Monjalon To: dev@dpdk.org Cc: David Marchand , Shreyansh Jain , Jan Blunck Date: Mon, 21 Nov 2016 10:08:32 +0100 Message-ID: <29033576.pHDTdAbKFW@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: References: <1479360605-20558-1-git-send-email-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 09:08:36 -0000 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? > Then we can talk about the next steps once the bus is in place. Yes