From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0073.outbound.protection.outlook.com [104.47.37.73]) by dpdk.org (Postfix) with ESMTP id 51A6D326D for ; Thu, 27 Oct 2016 09:07:06 +0200 (CEST) Received: from BN6PR03CA0047.namprd03.prod.outlook.com (10.175.124.33) 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.679.12; Thu, 27 Oct 2016 07:07:04 +0000 Received: from BN1BFFO11FD014.protection.gbl (2a01:111:f400:7c10::1:102) by BN6PR03CA0047.outlook.office365.com (2603:10b6:404:10c::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.639.5 via Frontend Transport; Thu, 27 Oct 2016 07:07:04 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com;nxp.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11FD014.mail.protection.outlook.com (10.58.144.77) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.679.5 via Frontend Transport; Thu, 27 Oct 2016 07:07:04 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.87]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u9R770nr027648; Thu, 27 Oct 2016 00:07:01 -0700 From: Shreyansh Jain To: Date: Thu, 27 Oct 2016 12:38:29 +0530 Message-ID: <1477552109-18624-1-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477486817-1284-1-git-send-email-shreyansh.jain@nxp.com> References: <1477486817-1284-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131220256246396003; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(48376002)(6666003)(2351001)(86362001)(85426001)(87936001)(8936002)(229853001)(15395725005)(92566002)(105606002)(50226002)(575784001)(106466001)(50466002)(11100500001)(68736007)(15975445007)(626004)(77096005)(5003940100001)(47776003)(189998001)(305945005)(2906002)(81156014)(7846002)(586003)(81166006)(8676002)(19580405001)(4326007)(356003)(97736004)(33646002)(110136003)(8666005)(19580395003)(104016004)(76176999)(5890100001)(6916009)(50986999)(36756003)(2950100002)(5660300001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB2380; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD014; 1:IM3H4ofR05R20yWWU5YaZa/yxvmGl9/pE3w4TGpX3uxQoEiGM8pB5QIsy6iQ0O+a7sqCcQoH+VpPxZPGl1qtwL6jgMadvWGQcgigOhMq9Himt9M0w2djs8DiAD4dsXteaGaautAXkYVPJm4DMPvOgdyi66x1LzOT0lxz5PNYdHly59zgpkY7Kk/wh9gj0EzjNzpAc4OV/loDt/neOqMnQSbB3HthjEu0EsYxpecyTB5cC2akyxiS49vT72wkNPMQDumkcBHUvKrIT0SLHj5yd1V1MzzXWUWOgmNOuiCQ9mQZKn60cQu1JEhkQfJhCg3GICqycCEqCboRr41nNTfZNlSuliWZ4EwzxKKRI6A0U4S3Tn3PNs/Reizc3T5ACXp4zK2YOJEVi6GmvGdMx9Q5Q9/GkwTk7WseWHPm+DHeGK80pCJLNhyUfWcMbEL9CSv1xbt5Fzcwvj31nFIEdHAZDvOCFznbYhV/kaqgA2VB/cnILm4Lb8VuRFMUQuIFxV6uOFuhqLyqw8IlbqFFxxXN/yudAVWfV6TT5CnFT+/QxbS6+2AQSshZ5o0Q9chSUqRgsegGwG8++ABQxceEF8nyHzf35fL2tUyfmi6PO6Z1salbti0ROqxMU64xFnBzzXadUgZI854iezRyISYE+etUNanBX6USlbXthbogdTBaHIOd/at05uNvom/2QY5Yop1myH4oaQOcJJgM9irtTGh6PRj3osuKvjBtQwjUHS71II9gzVezvck/TLxzv02kxg8c9C0rgib3H+2bfIy16RTBRA== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: b8ccd754-2035-44c8-9302-08d3fe37db5b X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2380; 2:EJxFUfX0mhrJZDVSwz5kmx79bOkpb2jpcSfXSOMNZpMdEPrWzYUXxk/YUJFAUJzV9ukUNkS5/G2F/pVcfzCMSe3g8Q4nbxM/0OyKY2jpwVoDHKca8k4hv/20NnY+Mgd2ag0LfN4x2FXaKzDLyCPCwS9XCxp7NXuNd2xL89d1p4x4rBuFtATjtz7ve6lGKcylX4fwj2IjiZrZ0YroPVs0sw==; 3:flYOnYZ0VrJ7/BhVbKP3Ccm+rYkHMkxDDe03i8InEc04QL+aXzV405SYJGvdlKYnY2ztiOsl9KHOKy2tyGUFg38IR+KhozLJUb1MmtHQizj78GCq2YVKf81T/qfZESBgHnIPRSFntYZ0R+R6fLHxGr5U0Au1k81iXbfbfcFm/nPzV3UURtxDQNbmyzLLrCg79Qan8Bx8pJ6J/toLeIrQKEbIQCQWuiI/odYb/AWBDeKS+TCQpwaGNBRyRLIbTNlL; 25:Jiqm+0bdytgLnStc5rhxeKxWWXdkCRTOajNYp/zNWqCw8APP+H2o0rthGXHn3xhi65TRCDkGDSNLW/nNcG4mnBhlEcG8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pXuG/zx9L6toEpmhszSPdKyczSq/pcE714+f6yGxvfXRkJf0I+Qs2w7zH9FQwmWjJBQvUri1JddNkh+N2XFK5mIzgbCRgy+MTMCVBU/47zc2ON320WXzM0TL9gUbgeHXPh0UZ6aB8GjKdoyS2ALbClUCgC4y5Tca8o5UT9P0Pb3ddM3GxjtT2JuXrlJUXaTjDfrUVhLrP+IIrUW+UYVnDXQkNeiHjrq8yRdDfs2BcLqNjlv4cdm610atnxAeOWmeayuXDf/ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(13015025)(13018025)(13023025)(13024025)(13017025)(8121501046)(3002001)(10201501046)(6055026); SRVR:CY1PR03MB2380; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR03MB2380; X-Forefront-PRVS: 0108A997B2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB2380; 23:ToVw5PfXaJQB9Sh9lcUZYbxXO9nuU+8AbbuFFzMa7?= =?us-ascii?Q?QRhjkGgmfGCb68+efeDLd/Ofmtw6QwNoIkAmIGaZu2G2LR4tLmkkDPPSXSdY?= =?us-ascii?Q?2C2GcfRy7q5c/3hkYEAbKGdXpM+sntF3cgQ2bbO5XlP/3KQJjSYIksl5ymS7?= =?us-ascii?Q?T2TM0ppiBZa1cqYLY9zwQdyuNmynVYQwcgos3yxI3iV6xK5ogIbh6NneYNTW?= =?us-ascii?Q?ltWxniQ1JRCWPcoV5BmxmgyDX+m/IZPw2xEgyAp9OwjOdO6FZtlB87198jU4?= =?us-ascii?Q?F9+gtT1FgHmIuk+xSYK78KYKaBNjNjPtWwOiLKoiaWJMW4irsplkxebzIrng?= =?us-ascii?Q?6GJ8u0zWkuhbz/AIE9xT1ydXEzU5AgLnvBJat4BzI7QbiZS2+nqxfVFAJTig?= =?us-ascii?Q?eleGXkRwm+6aYEcoDXuMA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VPjClUQMwwpFgrh/bN/xsr0sez/6jGUdoITnt2RcnZ0Yl2hiQQMbocnJnhc1GLk/GsVj21v9g1o= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2016 07:07:04.4367 (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.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB2380 Cc: dev@dpdk.org, Shreyansh Jain , ferruh.yigit@intel.com Subject: [dpdk-dev] [PATCH v3] eal: fix libabi macro for device generalization patches 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, 27 Oct 2016 07:07:07 -0000 rte_device/driver generalization patches [1] were merged without a change in the LIBABIVER macro. This patches bumps the macro of affected libs. (librte_eal was already bumped; libcryptodev and libetherdev have been bumped). Details of ABI/API changes: - EAL (version not bumped) |- type field was removed from rte_driver |- rte_pci_device now embeds rte_device |- rte_pci_resource renamed to rte_mem_resource |- numa_node and devargs of rte_pci_driver is moved to rte_driver |- APIs for device hotplug (attach/detach) moved into EAL |- API rte_eal_pci_device_name added for PCI device naming |- vdev registration API introduced (rte_eal_vdrv_register, | rte_eal_vdrv_unregister - librte_crypto (v 1=>2) |- removed rte_cryptodev_create_unique_device_name API |- moved device naming to EAL - librte_ethdev (v 4=>5) |- rte_eth_dev_type is removed |- removed dev_type from rte_eth_dev_allocate API |- removed API rte_eth_dev_get_device_type |- removed API rte_eth_dev_get_addr_by_port |- removed API rte_eth_dev_get_port_by_addr |- removed rte_cryptodev_create_unique_device_name API |- moved device naming to EAL Also, deprecation notice from 16.07 has been removed and release notes for 16.11 added. [1] http://dpdk.org/ml/archives/dev/2016-September/047087.html Signed-off-by: Shreyansh Jain -- v3: - add API/ABI change info in commit log - fix library version change notification in release note - fix erroneous change to librte_eal version in v2 --- doc/guides/rel_notes/deprecation.rst | 12 ------------ doc/guides/rel_notes/release_16_11.rst | 30 ++++++++++++++++++++++++++++-- lib/librte_cryptodev/Makefile | 2 +- lib/librte_ether/Makefile | 2 +- 4 files changed, 30 insertions(+), 16 deletions(-) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index d5c1490..884a231 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst @@ -18,18 +18,6 @@ Deprecation Notices ``nb_seg_max`` and ``nb_mtu_seg_max`` providing information about number of segments limit to be transmitted by device for TSO/non-TSO packets. -* The ethdev hotplug API is going to be moved to EAL with a notification - mechanism added to crypto and ethdev libraries so that hotplug is now - available to both of them. This API will be stripped of the device arguments - so that it only cares about hotplugging. - -* Structures embodying pci and vdev devices are going to be reworked to - integrate new common rte_device / rte_driver objects (see - http://dpdk.org/ml/archives/dev/2016-January/031390.html). - ethdev and crypto libraries will then only handle those objects so that they - do not need to care about the kind of devices that are being used, making it - easier to add new buses later. - * ABI changes are planned for 16.11 in the ``rte_mbuf`` structure: some fields may be reordered to facilitate the writing of ``data_off``, ``refcnt``, and ``nb_segs`` in one operation, because some platforms have an overhead if the diff --git a/doc/guides/rel_notes/release_16_11.rst b/doc/guides/rel_notes/release_16_11.rst index aa0c09a..5a5485b 100644 --- a/doc/guides/rel_notes/release_16_11.rst +++ b/doc/guides/rel_notes/release_16_11.rst @@ -149,6 +149,32 @@ Resolved Issues EAL ~~~ +* **Improved device/driver heirarchy and generalized hotplugging** + + Device and driver relationship has been restructured by introducing generic + classes. This paves way for having PCI, VDEV and other device types as + just instantiated objects rather than classes in themselves. Hotplugging too + has been generalized into EAL so that ethernet or crypto devices can use the + common infrastructure. + + * removed ``pmd_type`` as way of segragation of devices + * moved ``numa_node`` and ``devargs`` into ``rte_driver`` from + ``rte_pci_driver``. These can now be used by any instantiated object of + ``rte_driver``. + * added ``rte_device`` class and all PCI and VDEV devices inherit from it + * renamed devinit/devuninit handlers to probe/remove to make it more + semantically correct with respect to device<=>driver relationship + * moved hotplugging support to EAL. Hereafter, PCI and vdev can use the + APIs ``rte_eal_dev_attach`` and ``rte_eal_dev_detach``. + * helpers and support macros have been renamed to make them more synonymous + with their device types + (e.g. ``PMD_REGISTER_DRIVER`` => ``DRIVER_REGISTER_PCI``) + * Device naming functions have been generalized from ethdev and cryptodev + to EAL. ``rte_eal_pci_device_name`` has been introduced for obtaining + unique device name from PCI Domain-BDF description. + * Virtual device registration APIs have been added: ``rte_eal_vdrv_register`` + and ``rte_eal_vdrv_unregister``. + Drivers ~~~~~~~ @@ -232,11 +258,11 @@ The libraries prepended with a plus sign were incremented in this version. .. code-block:: diff - libethdev.so.4 + + libethdev.so.5 librte_acl.so.2 librte_cfgfile.so.2 librte_cmdline.so.2 - librte_cryptodev.so.1 + + librte_cryptodev.so.2 librte_distributor.so.1 + librte_eal.so.3 librte_hash.so.2 diff --git a/lib/librte_cryptodev/Makefile b/lib/librte_cryptodev/Makefile index 314a046..aebf5d9 100644 --- a/lib/librte_cryptodev/Makefile +++ b/lib/librte_cryptodev/Makefile @@ -34,7 +34,7 @@ include $(RTE_SDK)/mk/rte.vars.mk LIB = librte_cryptodev.a # library version -LIBABIVER := 1 +LIBABIVER := 2 # build flags CFLAGS += -O3 diff --git a/lib/librte_ether/Makefile b/lib/librte_ether/Makefile index 488b7c8..bc2e5f6 100644 --- a/lib/librte_ether/Makefile +++ b/lib/librte_ether/Makefile @@ -41,7 +41,7 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_ether_version.map -LIBABIVER := 4 +LIBABIVER := 5 SRCS-y += rte_ethdev.c -- 2.7.4