From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0088.outbound.protection.outlook.com [104.47.42.88]) by dpdk.org (Postfix) with ESMTP id AAA8E2952 for ; Mon, 26 Dec 2016 10:10:37 +0100 (CET) Received: from BN6PR03CA0054.namprd03.prod.outlook.com (10.173.137.16) by CY1PR0301MB0745.namprd03.prod.outlook.com (10.160.159.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.11; Mon, 26 Dec 2016 09:10:35 +0000 Received: from BN1BFFO11FD040.protection.gbl (2a01:111:f400:7c10::1:165) by BN6PR03CA0054.outlook.office365.com (2603:10b6:404:4c::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.11 via Frontend Transport; Mon, 26 Dec 2016 09:10:35 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; infradead.org; dkim=none (message not signed) header.d=none;infradead.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD040.mail.protection.outlook.com (10.58.144.103) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.789.10 via Frontend Transport; Mon, 26 Dec 2016 09:10:35 +0000 Received: from [10.232.14.87] ([10.232.14.87]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id uBQ9AUEa027617; Mon, 26 Dec 2016 02:10:31 -0700 To: Jan Blunck References: <1480846288-2517-1-git-send-email-shreyansh.jain@nxp.com> <1481636232-2300-1-git-send-email-shreyansh.jain@nxp.com> <1481636232-2300-13-git-send-email-shreyansh.jain@nxp.com> CC: , David Marchand , Thomas Monjalon , Ferruh Yigit , , Thomas Monjalon From: Shreyansh Jain Message-ID: Date: Mon, 26 Dec 2016 14:44:07 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131272170354099766; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(336005)(39450400003)(39860400002)(39380400002)(39840400002)(39850400002)(39400400002)(39410400002)(2980300002)(1109001)(1110001)(339900001)(189002)(377454003)(24454002)(199003)(38730400001)(23676002)(77096006)(97736004)(230700001)(4001350100001)(104016004)(229853002)(86362001)(8676002)(31696002)(64126003)(36756003)(8936002)(81166006)(81156014)(68736007)(305945005)(15395725005)(50466002)(356003)(76176999)(54356999)(50986999)(33646002)(2906002)(65826007)(93886004)(4326007)(5660300001)(69596002)(626004)(31686004)(83506001)(105606002)(92566002)(6666003)(5890100001)(6916009)(65956001)(65806001)(189998001)(106466001)(47776003)(85426001)(2950100002)(110136003)(21314002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0745; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD040; 1:4jiIn10E+DVXQlxbqgcDwanu/2ULhbkPVH9gNNRoKNKBuWvXrk5IrrfLvjoiKKqM8zpmAG3ssGaPjchEJAi2HVFYQa7ebO3mwcV8UxwbTyRy69V60TDrRIgg3yPdlvM5m9Uc4zd9uglLRfr6WTEtr3UyG/s8AVgDqGtyCu/oTzBPgvBM1kSE8xFjB/5V0WYApANWTVbogVqooQuOAjoJ+x8/fwA3nr00LGASiZiWag6ccQcYovJyiA/u7mam5Upccy/TEeiNudfcMR4vpp+wdK4hxnhfcQjU0UyLxFBYR5ZsMELqGScmtIKpXMgPJjkZT50rVGULoLklTCQ5XeevCOs7Z+xIiQi2oKKwHaokvpmDtM70XLdxJE7fyDcd4zCp/V4RBFJacBfK1Mp4GOxuWf4eb+bc+cS1ZLgU91BkCckHaWbnTXy2ETpdbVT08DJjEhLoIThNCYnp9PnJvq+3BRTlWXGkekPfFZBpV6lA0/zGhffibUE4XEiVS0auHVdEEjdGkh5eUea0HZ2KIEmKubWZoP/DoCrZRKbEB2dgF7GN2CPCqSpe76jt5RJajN3TrEK4a+/mqT3uZlh7sM9JHVMm1HFXOx2UqD6kdERHHrHnHiRGQFfxTnkHdm1xJc1fkNptYfn1anOAtaWdTYCbGw== X-MS-Office365-Filtering-Correlation-Id: f1ded692-0955-4d9d-64d9-08d42d6f0d4e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CY1PR0301MB0745; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0745; 3:y+9xrbLZAaTSaO2/EQJaAGqvVMcGMgHdGea/F7C451wWcYZoiT93lEDC+0GNgA+IMIIN2h22ynandXVGTnX+sB4U084GYrbcExnzp34L34aIQ/ahzC1y7AaP21QZ6/TnedpHNiSqg72zTSdPZkGr5n2tPuWWePmdD/XZHzs/6qwtJiObxJquTyPI6mJ8BUHvk23KSN5VnLFglnLrmrnpdsvQAYQulNuMtdHhqwM5GfqyRL/mUQ9jKJ6oDkn6BxZYTtGE+U+8A2dBPnPsvdCKREjvs7xzKOn1ln2YneXrKGIvb+D3ZmGknzWPgq6MW9n5uJX9Tbi0+Oq57aOba8cHiPAh8gTUigqDaYe5VihbrrHCvDmXtx+iT3Hwny9NkHst; 25:1U2jE2ONaqJw6KsBPPH2+4AYqaxUC8S+4yMDvQWGin4GcmL+QX2VN8PAbknPdWJPa+WgamecQbbZLntNizXCrsxFVcl5QzAPuvY4z9xfayVrIGZNc9hXcLydtL/FKO/Q0Y6VlOgaLVfcurFTCOQvN3HWSXRZ6XkMVOBB/ze37yJY/txeKFyNjCnr8UdVq0MC2DVbCCFpxFj+GLdX8xJOnobwmpDJDCB8SExuT0vvmctItua6qWmtbecU4ICrsB+ACk2wiHnKziUcGVOa+XSuiTk1DL9n5ZVeCb8G4ioPl/M9ErFGr7ymduppOP6Sj+UPQAdzG1LMtKay9ZI54HWM6pLsGScfzss1aP96WUnQW7sUsrZHkfpSHpVQ1C0jyUYkhI9/Pn7i6pKtkP5fGLEn0mIoSDUw36iszW5w2sKi3+hc2fLYXOUI7mRFAYRqwkRZE4pxz79Ybie5lnJNq2GCUw== X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0745; 31:PZwcjbhsaCbGQNJzBpt0+P1NsBFw+eBnlTNnmD2gGpiCq+pnsZffrD8+1OjnlweQFc72qMHMHAm65ZWlPWX6X0MxZ0x9LPxQKZ8ojghXuQdhqvblz2UmNJSLJYs6uWW2lbSEek18oMAaBT3MZE4YiRAEktQyloYW9FN1zg5Tl44w7Qk3M0qAecdEkKVEf+MAil6oY6qehYIwVjt4ghG2mHQPB+InXnUnUfLBFQGzdurbBrHTMI/4Sw82y4TjCDcEA+66o0llPxPogOyti7g2gw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(13024025)(13023025)(13015025)(13017025)(13018025)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6096035)(20161123561025)(20161123559025)(20161123556025)(20161123565025)(20161123563025); SRVR:CY1PR0301MB0745; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB0745; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0745; 4:tQ4Gsm6k7LjaRUmrFHW9Z9kbnNvAiFoZo4NHnTf2FYLGC2C3CJFHgfCC5LMkZZVMKTQxPd8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RyBCH6UR0H3WTZgDIEekpbR3wX5HRjkrImw6qu9SS+U2wQrMUmnGWSeDNhX6k4bcuV23WqzfvQL4TbGUk5dbpX7zVd0eoih3o/cGcdTuOI2p/vqPg4tHc6iQ7kvyZZL4dhLeiQnry5wGUgusboJaiRQNqG6PbMstlZYv1BAEp0Sxsc86NFPEC4W4n2xZFdUXWXOis5wEFowL+8yft5Y3s90UlFQR/9zIV45hhERuh1gZVJV8tYCeFoHYHwJSO/FRNXc1gySv4Ez8OHx69PlLgkRPi99JmobW5CwIbFkzIa4AGgbXytUDIEyr1Vxi2Ie8X/+9pTDwHGRSI03LighC1TYGyEkpfQgEJwi/o17Z4BGeyWmI4OKdg1AGGFslsqJJvBVNc3PLbGeyd9U3X/g1Ew2NOXKw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Dec 2016 09:10:35.0979 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB0745 Subject: Re: [dpdk-dev] [PATCH v2 12/12] drivers: update PMDs to use rte_driver probe and remove 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: , X-List-Received-Date: Mon, 26 Dec 2016 09:10:38 -0000 On Friday 16 December 2016 03:06 AM, Jan Blunck wrote: > On Wed, Dec 14, 2016 at 10:49 AM, Shreyansh Jain wrote: >> On Tuesday 13 December 2016 07:07 PM, Shreyansh Jain wrote: >>> >>> These callbacks now act as first layer of PCI interfaces from the Bus. >>> Bus probe would enter the PMDs through the rte_driver->probe/remove >>> callbacks, falling to rte_xxx_driver->probe/remove (Currently, all the >>> drivers are rte_pci_driver). >>> >>> Signed-off-by: Shreyansh Jain >>> --- >>> drivers/net/bnx2x/bnx2x_ethdev.c | 8 ++++++++ >>> drivers/net/bnxt/bnxt_ethdev.c | 4 ++++ >>> drivers/net/cxgbe/cxgbe_ethdev.c | 4 ++++ >>> drivers/net/e1000/em_ethdev.c | 4 ++++ >>> drivers/net/e1000/igb_ethdev.c | 8 ++++++++ >>> drivers/net/ena/ena_ethdev.c | 4 ++++ >>> drivers/net/enic/enic_ethdev.c | 4 ++++ >>> drivers/net/fm10k/fm10k_ethdev.c | 4 ++++ >>> drivers/net/i40e/i40e_ethdev.c | 4 ++++ >>> drivers/net/i40e/i40e_ethdev_vf.c | 4 ++++ >>> drivers/net/ixgbe/ixgbe_ethdev.c | 8 ++++++++ >>> drivers/net/mlx4/mlx4.c | 4 +++- >>> drivers/net/mlx5/mlx5.c | 1 + >>> drivers/net/nfp/nfp_net.c | 4 ++++ >>> drivers/net/qede/qede_ethdev.c | 8 ++++++++ >>> drivers/net/szedata2/rte_eth_szedata2.c | 4 ++++ >>> drivers/net/thunderx/nicvf_ethdev.c | 4 ++++ >>> drivers/net/virtio/virtio_ethdev.c | 2 ++ >>> drivers/net/vmxnet3/vmxnet3_ethdev.c | 4 ++++ >>> 19 files changed, 86 insertions(+), 1 deletion(-) >>> >> >> >> drivers/crypto/qat/rte_qat_cryptodev.c should also be changed for this. It >> seems to be only PCI registered PMD. All others are VDEV. >> >> I will send a v3 soon to fix this. >> >> @Jan, would you be looking in the VDEV part or should I start with that? [1] >> > > Yes, I am doing that. Will send out early next week. Do you think following model will help you for VDEV devices? --->8-- Each bus has following methods: .probe(...) .remove(...) .attach(const char *name) .detach(const char *name) --->8--- Each bus, in this case VDEV bus, would implement these (attach/detach being optional). - For rte_eal_dev_attach, 'attach()' of each bus would be called and name of the devices passed to it. - Bus->attach() would search for the device name (in case of PCI, BDF) and call appropriate initialization routine. - Search over bus stops as soon as any bus confirms a successful attach This is what I was thinking for VDEV: 1. Expose the attach/detach functions in eal_common_bus 2. Define VDEV bus 3. Rather than probe/remove, VDEV implements attach/detach. Rationale for this is that VDEV don't really have a bus and neither is a probe/remove natural for them. They are 'attached'/'detached'. Let me know if this helps. I can provide you base patches over bus series to enable this (I have it ready without much testing). > > Thx, > Jan > >> [1] http://dpdk.org/ml/archives/dev/2016-November/050443.html >> > - Shreyansh