From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0074.outbound.protection.outlook.com [157.56.110.74]) by dpdk.org (Postfix) with ESMTP id BCA5AC4CC for ; Thu, 16 Jun 2016 16:06:38 +0200 (CEST) Received: from DM2PR03CA0049.namprd03.prod.outlook.com (10.141.96.48) by CY1PR03MB2380.namprd03.prod.outlook.com (10.167.8.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.517.8; Thu, 16 Jun 2016 14:06:37 +0000 Received: from BN1AFFO11FD021.protection.gbl (2a01:111:f400:7c10::135) by DM2PR03CA0049.outlook.office365.com (2a01:111:e400:2428::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.517.8 via Frontend Transport; Thu, 16 Jun 2016 14:06:37 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; 6wind.com; dkim=none (message not signed) header.d=none;6wind.com; dmarc=none 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 BN1AFFO11FD021.mail.protection.outlook.com (10.58.52.81) with Microsoft SMTP Server (TLS) id 15.1.511.7 via Frontend Transport; Thu, 16 Jun 2016 14:06:37 +0000 Received: from Tophie.ap.freescale.net (Tophie.ap.freescale.net [10.232.14.199]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u5GE6Xo1026530; Thu, 16 Jun 2016 07:06:34 -0700 From: Shreyansh Jain To: CC: , Date: Thu, 16 Jun 2016 19:36:34 +0530 Message-ID: <1466086011-11920-1-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1454076516-21591-1-git-send-email-david.marchand@6wind.com> References: <1454076516-21591-1-git-send-email-david.marchand@6wind.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131105595974085446; (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)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(50466002)(2950100001)(106466001)(77096005)(2906002)(8676002)(81166006)(8936002)(356003)(4326007)(50226002)(15975445007)(5008740100001)(5003940100001)(69596002)(87936001)(97736004)(81156014)(68736007)(229853001)(47776003)(19580405001)(48376002)(19580395003)(189998001)(50986999)(76176999)(11100500001)(104016004)(15395725005)(86362001)(85426001)(586003)(5890100001)(6806005)(105606002)(110136002)(92566002)(2351001)(36756003)(33646002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB2380; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; CAT:NONE; LANG:en; CAT:NONE; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD021; 1:IiucY7uGGThh3XdhNGEi75B0fyXxMYmATmftXtyE3/HE90ckWyEmd8Pj8R1qxgZCOJd5yWbkS5ALIK9cCWQEre+p1SZ8J/zFaO/oocIMkNN+pZGMwi+SWJ3jWL/kFjIU8SpXD1kJlSo+sDC8Drohc/4TjsCKnuZk6bD/ZKWT9nIxfST+rndbm7fzdXqq2F2F+s6o4MJP4QY1Mn18ioocQWuEpoGDzWMaGfId4yNll+Do64EQNA3j5bnoNqKFY7tn+Dj1Y3YDu3490WJNIPntPvmDOGDye30RdDSbe0rM8M+bK9lZvKLkewi7zE1EeyFyRJ4QQfh/liniY4zhx2boCx782v+7rN5s4LlKqSu9B5+ttprOUJmyqBnSNnRdbwlqoifA1wDHrOEEJUcWDFF2UqOeTEJX6aZCBtpyB3Y3zGdrRN84t0gEzlHO49KTsJxYHWKyWMVbuhgLkCmheKojAiaQUSNOiujvtqDwxNa+gksFx5dRrEZ/YXcjfpebY4NBocM+m4P+AN3cLutH6bOMIfWRGJ4yDzUwOha0Q6LhM4TR4IIYjwky5A4oOwZ874YOWrPcYGaLgKTTrO9dpOfG8g== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 07c312c1-07d6-4c61-89e5-08d395ef6e8e X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2380; 2:QsBpuzilBO8kPUJNbRFacOLnwbHfXKd4I+QxpaR1o6ptGlPs1VUOkkhkgiF8wnHn/4oWkp168OX13JmGZpvV3JbeTjVjOYbP0+iKOLS1dmzyMLYgL+fvDjNptD/rUhNbvFAAqrOr8Ld6BuUl5yUL7ai+gc9/rx9lnY6+RfSMQGqdgeIIGQ/w1QpFs94nqdUp; 3:8CrbwdsX/lQmkD7LQkFRBylZ5w3SiIbkAoyRlJaJ1Xdf5XEOHt4YkHvSjZnken6ijUE+YxSykM+o4g3o/ybk+jimYyj9PwYidW2RojFHUhoOiJvZInFGZhAHTjX1bucJjRfJv1/6h34piolbodSWGXZC//L2sIWjvk5v/ums0RU/FA6XGyryQf4R6yrkxfXWDw4SMRJR++Z9+DIW+CdTCKcskfUqBzDaS0LFAlydKM8=; 25:hg43hiP+ncJ2wVjou5PMb1nWMrwL6JGj4wgPU1s0utkyRFb7fbLr/8NNEqPW98uOUX5w2JsV0SsWwfeUchtnsk7eJqff2SeV5Se0PQQSYDKdDVcbWoey2ZJTuUbouqf1OFeId7aVlmbWzLk1FCGq/62AUEynmGIURHrJqS0fmWSFyrKDD1k2kg7by0Zcq5HM7yy04s8C4ZRiSdJ4cyWPVZUB7Sl7IqcVcqipYFIxLvwOZluyeO9Hw44WkYGDgMmOvhPLIy0o97sQA7MwW+rTMX2QWCfDTPrRvhOrQ8XQMR0MOk2lz7+5Fmgy461aOKLGmTDRkBMRyD/yeE7UeYu/3vC4XHOi4WazGFjGu1vhDSjYcsWOBf2pqn/SihGm2YrRH0Hem8K6S4QwAWEEbYF/COwtEGJ+JTl4gZxJbtPNsEY= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB2380; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(13015025)(13017025)(13018025)(13024025)(13023025)(10201501046)(3002001)(6055026); SRVR:CY1PR03MB2380; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR03MB2380; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2380; 4:yUIYRO0rjp8HH+G622BKU3e5KGwfj9fCBiylb6/h6Zt3ZTud2dUfFgn35H0dsLLblOm5SOTr89EqlC8vkop7DVq/IgdD2kJ3QgFsZZft8z3useJ7HpFCa2TcpA5vKOxu94VQ7fJL1U43GWWshX2XC3he8jIFcwmLEZcEw9CSJPaRx5/DM8fo58GEgWwFlJpKDdeclNtH4os3UY8FaKyJHJUxLd6nND+LcnsOpeS2haxNv7EO+0JgG49jHOXJa05BW1EjEDxoOhk+0qHAzgmR5rDkVzqKWieFnTHCvbF8OxVCae/Oc5H08EDAnJbql5rM0vzpa+nETyvOwsusHe/r5xJdVekQj70WHyZERvEj8NrCv8rDATALnmg38dgI84Sw+SM10hdkEV5DNdGXSqRzXR6GQEmOOKiij7vzN99oK4noV3eaZ2jl2txx/PwWsPq5M0j6Vrv/zguRko0zNFKnbVUhrgPBE6vTFmJduLBPEIY= X-Forefront-PRVS: 09752BC779 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB2380; 23:fy0wORIw2OPEIyXTmG0mumsB1MRoDpU57JVSWmTuk?= =?us-ascii?Q?/AnvkJorSPjTaqmyt1o2Bp6mYTbgeSPku5cOyG1FIfV3WBJ2mUXbCM9WWhNE?= =?us-ascii?Q?NTWY6Ljcc58LV+xSPv9nR/waTfXXg4fDI6vqCj8NVnRh3lpi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71zYDFTgBoRYSFw9v3iwYMRklx5G9CmpVTtajFiLeOWP1oZ5nVZJ5LJmpzz2P1WmBtllWH07DhhyA== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2016 14:06:37.1745 (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: CY1PR03MB2380 Subject: [dpdk-dev] [PATCH v3 00/17] prepare for rte_device / rte_driver 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: Thu, 16 Jun 2016 14:06:39 -0000 From: David Marchand * Original patch series is from David Marchand. This is just a rebase over master (d76c19309) * Following discussions with Jan [1] and some cleanup I started on pci code, here is a patchset that reworks pdev drivers registration and hotplug api. The structures changes mentioned in [1] are still to be done, but at least, I think we are one step closer to it. Before this patchset, rte_driver .init semantics differed whether it concerned a pdev or a vdev driver: - for vdev, it actually meant that a devargs is given to the driver so that it creates ethdev / crypto objects, so it was a probing action - for pdev, it only registered the driver triggering no ethdev / crypto objects >>From my pov, eal hotplug api introduced in this patchset still needs more work so that it does not need to know about devargs. So a new devargs api is needed. Changes since v2: - rebase over HEAD (d76c193) - Move SYSFS_PCI_DRIVERS macro to rte_pci.h to avoid compilation issue Changes since v1: - rebased on HEAD, new drivers should be okay - patches have been split into smaller pieces - RTE_INIT macro has been added, but in the end, I am not sure it is useful - device type has been removed from ethdev, as it was used only by hotplug - getting rid of pmd type in eal patch (patch 5 of initial series) has been dropped for now, we can do this once vdev drivers have been converted [1] http://dpdk.org/ml/archives/dev/2016-January/031390.html David Marchand (17): pci: no need for dynamic tailq init crypto: no need for a crypto pmd type drivers: align pci driver definitions eal: remove duplicate function declaration eal: introduce init macros crypto: export init/uninit common wrappers for pci drivers ethdev: export init/uninit common wrappers for pci drivers drivers: convert all pdev drivers as pci drivers crypto: get rid of crypto driver register callback ethdev: get rid of eth driver register callback eal/linux: move back interrupt thread init before setting affinity pci: add a helper for device name pci: add a helper to update a device ethdev: do not scan all pci devices on attach eal: add hotplug operations for pci and vdev ethdev: convert to eal hotplug ethdev: get rid of device type app/test/virtual_pmd.c | 2 +- drivers/crypto/qat/rte_qat_cryptodev.c | 18 +- drivers/net/af_packet/rte_eth_af_packet.c | 2 +- drivers/net/bnx2x/bnx2x_ethdev.c | 35 +-- drivers/net/bonding/rte_eth_bond_api.c | 2 +- drivers/net/cxgbe/cxgbe_ethdev.c | 24 +- drivers/net/cxgbe/cxgbe_main.c | 2 +- drivers/net/e1000/em_ethdev.c | 16 +- drivers/net/e1000/igb_ethdev.c | 40 +-- drivers/net/ena/ena_ethdev.c | 20 +- drivers/net/enic/enic_ethdev.c | 23 +- drivers/net/fm10k/fm10k_ethdev.c | 23 +- drivers/net/i40e/i40e_ethdev.c | 26 +- drivers/net/i40e/i40e_ethdev_vf.c | 25 +- drivers/net/ixgbe/ixgbe_ethdev.c | 47 +--- drivers/net/mlx4/mlx4.c | 22 +- drivers/net/mlx5/mlx5.c | 21 +- drivers/net/mpipe/mpipe_tilegx.c | 2 +- drivers/net/nfp/nfp_net.c | 23 +- drivers/net/null/rte_eth_null.c | 2 +- drivers/net/pcap/rte_eth_pcap.c | 2 +- drivers/net/ring/rte_eth_ring.c | 2 +- drivers/net/szedata2/rte_eth_szedata2.c | 25 +- drivers/net/vhost/rte_eth_vhost.c | 2 +- drivers/net/virtio/virtio_ethdev.c | 26 +- drivers/net/vmxnet3/vmxnet3_ethdev.c | 23 +- drivers/net/xenvirt/rte_eth_xenvirt.c | 2 +- examples/ip_pipeline/init.c | 22 -- lib/librte_cryptodev/rte_cryptodev.c | 67 +---- lib/librte_cryptodev/rte_cryptodev.h | 2 - lib/librte_cryptodev/rte_cryptodev_pmd.h | 45 +--- lib/librte_cryptodev/rte_cryptodev_version.map | 9 +- lib/librte_eal/bsdapp/eal/eal_pci.c | 52 +++- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 2 + lib/librte_eal/common/eal_common_dev.c | 39 +++ lib/librte_eal/common/eal_common_pci.c | 19 +- lib/librte_eal/common/eal_private.h | 20 +- lib/librte_eal/common/include/rte_dev.h | 29 ++- lib/librte_eal/common/include/rte_eal.h | 3 + lib/librte_eal/common/include/rte_pci.h | 35 +++ lib/librte_eal/common/include/rte_tailq.h | 4 +- lib/librte_eal/linuxapp/eal/eal.c | 7 +- lib/librte_eal/linuxapp/eal/eal_pci.c | 16 +- lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 + lib/librte_ether/rte_ethdev.c | 315 ++++-------------------- lib/librte_ether/rte_ethdev.h | 40 ++- lib/librte_ether/rte_ether_version.map | 9 +- 47 files changed, 383 insertions(+), 811 deletions(-) -- 2.7.4