Add DSO symbol versioning to supportbackwards compatibility
Re: [PATCH v5 4/4] docs: Add ABI documentation
In reply to a message not in the archive2015-01-16 10:33, Neil Horman:
Quoted 24 lines
doc/abi.txt new file +21
-0@@ -0,0 +1,36 @@ +ABI policy: + ABI versions are set at the time of major release labeling, and ABI may +change multiple times between the last labeling and the HEAD label of the git +tree without warning + + ABI versions, once released are available until such time as their +deprecation has been noted here for at least one major release cycle, after it +has been tagged. E.g. the ABI for DPDK 1.8 is shipped, and then the decision to +remove it is made during the development of DPDK 1.9. The decision will be +recorded here, shipped with the DPDK 1.9 release, and actually removed when DPDK +1.10 ships. + + ABI versions may be deprecated in whole, or in part as needed by a given +update. + + Some ABI changes may be too significant to reasonably maintain multiple +versions of. In those events ABI's may be updated without backward +compatibility provided. The requirements for doing so are: + 1) At least 3 acknoweldgements of the need on the dpdk.org + 2) A full deprecation cycle must be made to offer downstream consumers +sufficient warning of the change. E.g. if dpdk 2.0 is under development when
doc/abi.txt line 31
Quoted 10 lines
doc/abi.txt new file +10
-0+the change is proposed, a deprecation notice must be added to this file, and +released with dpdk 2.0. Then the change may be incorporated for dpdk 2.1 + 3) The LIBABIVER variable in the makefilei(s) where the ABI changes are +incorporated must be incremented in parallel with the ABI changes themselves + + Note that the above process for ABI deprecation should not be undertaken +lightly. ABI stability is extreemely important for downstream consumers of the +DPDK, especially when distributed in shared object form. Every effort should be +made to preserve ABI whenever possible. For instance, reorganizing public +structure field for astetic or readability purposes should be avoided as it will
astetic? typo?
doc/abi.txt line 35
Quoted 4 lines
doc/abi.txt new file +4
-0+cause ABI breakage. Only significant (e.g. performance) reasons should be seen +as cause to alter ABI. + +Deprecation Notices:
Neil, are you sure it's a good idea to put deprecations notices here instead of release notes?
I'm also thinking that we need to add more things in this doc:
- case of macros/constant deprecation (API only)
- case of structure update: must be renamed to provide ABI compatibility?
Do you think we can have a tool to test the ABI compatibility by building examples/apps of previous version and checking them with built DSO of current version?
Thanks
Signature · 1 line
Thomas
Re: [PATCH v5 4/4] docs: Add ABI documentation
Quoted 38 lines · Thomas Monjalon
2015-01-16 10:33, Neil Horman:
Quoted 24 lines
doc/abi.txt new file +21
-0@@ -0,0 +1,36 @@ +ABI policy: + ABI versions are set at the time of major release labeling, and ABI may +change multiple times between the last labeling and the HEAD label of the git +tree without warning + + ABI versions, once released are available until such time as their +deprecation has been noted here for at least one major release cycle, after it +has been tagged. E.g. the ABI for DPDK 1.8 is shipped, and then the decision to +remove it is made during the development of DPDK 1.9. The decision will be +recorded here, shipped with the DPDK 1.9 release, and actually removed when DPDK +1.10 ships. + + ABI versions may be deprecated in whole, or in part as needed by a given +update. + + Some ABI changes may be too significant to reasonably maintain multiple +versions of. In those events ABI's may be updated without backward +compatibility provided. The requirements for doing so are: + 1) At least 3 acknoweldgements of the need on the dpdk.org + 2) A full deprecation cycle must be made to offer downstream consumers +sufficient warning of the change. E.g. if dpdk 2.0 is under development whendoc/abi.txt line 31
Quoted 10 lines
doc/abi.txt new file +10
-0+the change is proposed, a deprecation notice must be added to this file, and +released with dpdk 2.0. Then the change may be incorporated for dpdk 2.1 + 3) The LIBABIVER variable in the makefilei(s) where the ABI changes are +incorporated must be incremented in parallel with the ABI changes themselves + + Note that the above process for ABI deprecation should not be undertaken +lightly. ABI stability is extreemely important for downstream consumers of the +DPDK, especially when distributed in shared object form. Every effort should be +made to preserve ABI whenever possible. For instance, reorganizing public +structure field for astetic or readability purposes should be avoided as it willastetic? typo?
Quoted 8 lines
doc/abi.txt line 35
Quoted 4 lines
doc/abi.txt new file +4
-0+cause ABI breakage. Only significant (e.g. performance) reasons should be seen +as cause to alter ABI. + +Deprecation Notices:Neil, are you sure it's a good idea to put deprecations notices here instead of release notes?
Funny, I just made mention of that in my last note. I do think that the release notes is the right place to "officially" announce deprecation warnings, but I think we need a way for developers to communicate that efficiently (given that the release notes aren't stored in the git tree). I think this is the place for developers to canonically list deprecations, and make reading this file part of the release notes generation process. That way, updates can be made as part of the commit process easily.
Quoted 4 lines
I'm also thinking that we need to add more things in this doc:
- case of macros/constant deprecation (API only)
- case of structure update: must be renamed to provide ABI compatibility?
I'm definately in favor of adding such notices here, but I hadn't planned for any strict formatting of any given notice. That is to say, I considered you're two issues above to be able to be included here. I have no issue with listing a deprecation note that indicates macros are being removed or that sections of api are being versioned to accomodate structure changes. of any sort
Quoted 4 lines
Do you think we can have a tool to test the ABI compatibility by building examples/apps of previous version and checking them with built DSO of current version?
I do, though I'm not sure its within the scope of this update. The easiest way to do it currently is to checkout the last released version of the dpdk, build it as a DSO build, copy out one of the test/example apps, checkout the HEAD of the tree, rebuild, and run the saved off test app from the first build using the shared objects of the second build. That does some rudimentary validation, but it only touches on the API aspects that the application you're using makes use of. What would be better would be if we had a test application that made a call to every exported API call that we have, so that we could be confident that we were exhaustively testing the ABI surface. I think thats a large piece of work, but it would be beneficial to have.
Thanks
Neil
A message that is not in the archive (sent off-list or not yet received): 20150120143737.GB18449-B26myB8xz7F8NnZeBjwnZQMhkBWG/[email protected]
Re: [PATCH v5 4/4] docs: Add ABI documentation
2015-01-20 09:37, Neil Horman:
Quoted 47 lines · Thomas Monjalon
Quoted 38 lines
2015-01-16 10:33, Neil Horman:
Quoted 24 lines
doc/abi.txt new file +21
-0@@ -0,0 +1,36 @@ +ABI policy: + ABI versions are set at the time of major release labeling, and ABI may +change multiple times between the last labeling and the HEAD label of the git +tree without warning + + ABI versions, once released are available until such time as their +deprecation has been noted here for at least one major release cycle, after it +has been tagged. E.g. the ABI for DPDK 1.8 is shipped, and then the decision to +remove it is made during the development of DPDK 1.9. The decision will be +recorded here, shipped with the DPDK 1.9 release, and actually removed when DPDK +1.10 ships. + + ABI versions may be deprecated in whole, or in part as needed by a given +update. + + Some ABI changes may be too significant to reasonably maintain multiple +versions of. In those events ABI's may be updated without backward +compatibility provided. The requirements for doing so are: + 1) At least 3 acknoweldgements of the need on the dpdk.org + 2) A full deprecation cycle must be made to offer downstream consumers +sufficient warning of the change. E.g. if dpdk 2.0 is under development whendoc/abi.txt line 31
Quoted 10 lines
doc/abi.txt new file +10
-0+the change is proposed, a deprecation notice must be added to this file, and +released with dpdk 2.0. Then the change may be incorporated for dpdk 2.1 + 3) The LIBABIVER variable in the makefilei(s) where the ABI changes are +incorporated must be incremented in parallel with the ABI changes themselves + + Note that the above process for ABI deprecation should not be undertaken +lightly. ABI stability is extreemely important for downstream consumers of the +DPDK, especially when distributed in shared object form. Every effort should be +made to preserve ABI whenever possible. For instance, reorganizing public +structure field for astetic or readability purposes should be avoided as it willastetic? typo?
Quoted 8 lines
doc/abi.txt line 35
Quoted 4 lines
doc/abi.txt new file +4
-0+cause ABI breakage. Only significant (e.g. performance) reasons should be seen +as cause to alter ABI. + +Deprecation Notices:Neil, are you sure it's a good idea to put deprecations notices here instead of release notes?
Quoted 4 lines
Funny, I just made mention of that in my last note. I do think that the release notes is the right place to "officially" announce deprecation warnings, but I think we need a way for developers to communicate that efficiently (given that the release notes aren't stored in the git tree).
Yes, they are:
http://dpdk.org/browse/dpdk/tree/doc/guides/rel_notes
So I suggest to remove Deprecation Notices from abi.txt and create an entry in release notes.
Quoted 4 lines
I think this is the place for
developers to canonically list deprecations, and make reading this file part of the release notes generation process. That way, updates can be made as part of the commit process easily.
Developpers can update the release notes themselves.
Quoted 9 lines
Quoted 4 lines
I'm also thinking that we need to add more things in this doc:
- case of macros/constant deprecation (API only)
- case of structure update: must be renamed to provide ABI compatibility?I'm definately in favor of adding such notices here, but I hadn't planned for any strict formatting of any given notice. That is to say, I considered you're two issues above to be able to be included here. I have no issue with listing a deprecation note that indicates macros are being removed or that sections of api are being versioned to accomodate structure changes. of any sort
No, I was suggesting to explain in this doc that macro removal must be announced with a deprecation notice,
and that in case structure must be reworked, the name must change if we want to preserve ABI compatibility with old structure.
Quoted 4 lines
Quoted 4 lines
Do you think we can have a tool to test the ABI compatibility by building examples/apps of previous version and checking them with built DSO of current version?
Quoted 10 lines
I do, though I'm not sure its within the scope of this update. The easiest way to do it currently is to checkout the last released version of the dpdk, build it as a DSO build, copy out one of the test/example apps, checkout the HEAD of the tree, rebuild, and run the saved off test app from the first build using the shared objects of the second build. That does some rudimentary validation, but it only touches on the API aspects that the application you're using makes use of. What would be better would be if we had a test application that made a call to every exported API call that we have, so that we could be confident that we were exhaustively testing the ABI surface. I think thats a large piece of work, but it would be beneficial to have.
Yes, it should be another patchset.
Do you plan to work on it? It would be very convenient for developpers and maintainers to test ABI compatibility.
Thanks
Signature · 1 line
Thomas
Re: [PATCH v5 4/4] docs: Add ABI documentation
Quoted 58 lines · Thomas Monjalon
2015-01-20 09:37, Neil Horman:
Quoted 47 lines · Thomas Monjalon
Quoted 38 lines
2015-01-16 10:33, Neil Horman:
Quoted 24 lines
doc/abi.txt new file +21
-0@@ -0,0 +1,36 @@ +ABI policy: + ABI versions are set at the time of major release labeling, and ABI may +change multiple times between the last labeling and the HEAD label of the git +tree without warning + + ABI versions, once released are available until such time as their +deprecation has been noted here for at least one major release cycle, after it +has been tagged. E.g. the ABI for DPDK 1.8 is shipped, and then the decision to +remove it is made during the development of DPDK 1.9. The decision will be +recorded here, shipped with the DPDK 1.9 release, and actually removed when DPDK +1.10 ships. + + ABI versions may be deprecated in whole, or in part as needed by a given +update. + + Some ABI changes may be too significant to reasonably maintain multiple +versions of. In those events ABI's may be updated without backward +compatibility provided. The requirements for doing so are: + 1) At least 3 acknoweldgements of the need on the dpdk.org + 2) A full deprecation cycle must be made to offer downstream consumers +sufficient warning of the change. E.g. if dpdk 2.0 is under development whendoc/abi.txt line 31
Quoted 10 lines
doc/abi.txt new file +10
-0+the change is proposed, a deprecation notice must be added to this file, and +released with dpdk 2.0. Then the change may be incorporated for dpdk 2.1 + 3) The LIBABIVER variable in the makefilei(s) where the ABI changes are +incorporated must be incremented in parallel with the ABI changes themselves + + Note that the above process for ABI deprecation should not be undertaken +lightly. ABI stability is extreemely important for downstream consumers of the +DPDK, especially when distributed in shared object form. Every effort should be +made to preserve ABI whenever possible. For instance, reorganizing public +structure field for astetic or readability purposes should be avoided as it willastetic? typo?
Quoted 8 lines
doc/abi.txt line 35
Quoted 4 lines
doc/abi.txt new file +4
-0+cause ABI breakage. Only significant (e.g. performance) reasons should be seen +as cause to alter ABI. + +Deprecation Notices:Neil, are you sure it's a good idea to put deprecations notices here instead of release notes?
Quoted 4 lines
Funny, I just made mention of that in my last note. I do think that the release notes is the right place to "officially" announce deprecation warnings, but I think we need a way for developers to communicate that efficiently (given that the release notes aren't stored in the git tree).
Yes, they are:
http://dpdk.org/browse/dpdk/tree/doc/guides/rel_notes
So I suggest to remove Deprecation Notices from abi.txt and create an entry in release notes.
Quoted 7 lines
Quoted 4 lines
I think this is the place for
developers to canonically list deprecations, and make reading this file part of the release notes generation process. That way, updates can be made as part of the commit process easily.Developpers can update the release notes themselves.
ok, I was unaware. If thats the case, then yes, putting these deprecations directly in the release notes makes the most sense. I'll resubmit with that changed.
Quoted 30 lines
Quoted 9 lines
Quoted 4 lines
I'm also thinking that we need to add more things in this doc:
- case of macros/constant deprecation (API only)
- case of structure update: must be renamed to provide ABI compatibility?I'm definately in favor of adding such notices here, but I hadn't planned for any strict formatting of any given notice. That is to say, I considered you're two issues above to be able to be included here. I have no issue with listing a deprecation note that indicates macros are being removed or that sections of api are being versioned to accomodate structure changes. of any sort
No, I was suggesting to explain in this doc that macro removal must be announced with a deprecation notice,
and that in case structure must be reworked, the name must change if we want to preserve ABI compatibility with old structure.Quoted 4 lines
Quoted 4 lines
Do you think we can have a tool to test the ABI compatibility by building examples/apps of previous version and checking them with built DSO of current version?
Quoted 10 lines
I do, though I'm not sure its within the scope of this update. The easiest way to do it currently is to checkout the last released version of the dpdk, build it as a DSO build, copy out one of the test/example apps, checkout the HEAD of the tree, rebuild, and run the saved off test app from the first build using the shared objects of the second build. That does some rudimentary validation, but it only touches on the API aspects that the application you're using makes use of. What would be better would be if we had a test application that made a call to every exported API call that we have, so that we could be confident that we were exhaustively testing the ABI surface. I think thats a large piece of work, but it would be beneficial to have.
Quoted 4 lines
Yes, it should be another patchset.
Do you plan to work on it? It would be very convenient for developpers and maintainers to test ABI compatibility.
Gladly, if we can get this in. I think its an important tool.
Quoted 4 lines
Thanks
Signature · 1 line
Thomas
PATCH v6 1/4 compat: Add infrastructure to support symbol versioning
In reply to a message not in the archiveAdd initial pass header files to support symbol versioning.
---
Change Notes:
V2)
Moved ifeq to _INSTALL target
V3)
Undo V2 changes and make librte_compat use the rte.install.mk file
instead
v4)
changed --version-script to accept SRCDIR in this patch at per request documented versioning macros
cleaned up macro parameter consistency
converted SA macro to RTE_STR macro
fixed copyright
--- lib/Makefile | 1 + lib/librte_compat/Makefile | 38 +++++++++++++ lib/librte_compat/rte_compat.h | 117 +++++++++++++++++++++++++++++++++++++++++ mk/rte.lib.mk | 4 ++ 4 files changed, 160 insertions(+) create mode 100644 lib/librte_compat/Makefile create mode 100644 lib/librte_compat/rte_compat.h
lib/Makefile +1 -0
@@ -31,6 +31,7 @@ include $(RTE_SDK)/mk/rte.vars.mk +DIRS-y += librte_compat DIRS-$(CONFIG_RTE_LIBRTE_EAL) += librte_eal DIRS-$(CONFIG_RTE_LIBRTE_MALLOC) += librte_malloc DIRS-$(CONFIG_RTE_LIBRTE_RING) += librte_ring
lib/librte_compat/Makefile new file +38 -0
@@ -0,0 +1,38 @@ +# BSD LICENSE +# +# Copyright(c) 2013 Neil Horman <[email protected]> +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in +# the documentation and/or other materials provided with the +# distribution. +# * Neither the name of Intel Corporation nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +include $(RTE_SDK)/mk/rte.vars.mk + + +# install includes +SYMLINK-y-include := rte_compat.h + +include $(RTE_SDK)/mk/rte.install.mk
lib/librte_compat/rte_compat.h new file +117 -0
117 lines not on this page · raw message
mk/rte.lib.mk +4 -0
@@ -40,8 +40,12 @@ VPATH += $(SRCDIR) ifeq ($(RTE_BUILD_SHARED_LIB),y) LIB := $(patsubst %.a,%.so,$(LIB)) + +CPU_LDFLAGS += --version-script=$(SRCDIR)/$(EXPORT_MAP) + endif + _BUILD = $(LIB) _INSTALL = $(INSTALL-FILES-y) $(SYMLINK-FILES-y) $(RTE_OUTPUT)/lib/$(LIB) _CLEAN = doclean
Signature · 1 line
2.1.0
A message that is not in the archive (sent off-list or not yet received): 1421788679-9433-1-git-send-email-nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org
PATCH v6 2/4 Provide initial versioning for all DPDK libraries
Add linker version script files to each DPDK library to put a stake in the ground from which we can start cleaning up API's
---
Change Notes:
v2)
* Updated export map to not require full path
--- lib/librte_acl/Makefile | 2 + lib/librte_acl/rte_acl_version.map | 21 ++++ lib/librte_cfgfile/Makefile | 2 + lib/librte_cfgfile/rte_cfgfile_version.map | 14 +++ lib/librte_cmdline/Makefile | 2 + lib/librte_cmdline/rte_cmdline_version.map | 69 +++++++++++++ lib/librte_distributor/Makefile | 2 + lib/librte_distributor/rte_distributor_version.map | 16 +++ lib/librte_eal/bsdapp/eal/Makefile | 2 + lib/librte_eal/bsdapp/eal/rte_eal_version.map | 90 ++++++++++++++++ lib/librte_eal/linuxapp/eal/Makefile | 2 + lib/librte_eal/linuxapp/eal/rte_eal_version.map | 90 ++++++++++++++++ lib/librte_ether/Makefile | 2 + lib/librte_ether/rte_ether_version.map | 113 +++++++++++++++++++++ lib/librte_hash/Makefile | 2 + lib/librte_hash/rte_hash_version.map | 18 ++++ lib/librte_ip_frag/Makefile | 2 + lib/librte_ip_frag/rte_ipfrag_version.map | 14 +++ lib/librte_ivshmem/Makefile | 2 + lib/librte_ivshmem/rte_ivshmem_version.map | 13 +++ lib/librte_kni/Makefile | 2 + lib/librte_kni/rte_kni_version.map | 20 ++++ lib/librte_kvargs/Makefile | 2 + lib/librte_kvargs/rte_kvargs_version.map | 10 ++ lib/librte_lpm/Makefile | 2 + lib/librte_lpm/rte_lpm_version.map | 24 +++++ lib/librte_malloc/Makefile | 2 + lib/librte_malloc/rte_malloc_version.map | 19 ++++ lib/librte_mbuf/Makefile | 2 + lib/librte_mbuf/rte_mbuf_version.map | 14 +++ lib/librte_mempool/Makefile | 2 + lib/librte_mempool/rte_mempool_version.map | 18 ++++ lib/librte_meter/Makefile | 2 + lib/librte_meter/rte_meter_version.map | 13 +++ lib/librte_pipeline/Makefile | 2 + lib/librte_pipeline/rte_pipeline_version.map | 23 +++++ lib/librte_pmd_af_packet/Makefile | 2 + .../rte_pmd_af_packet_version.map | 7 ++ lib/librte_pmd_bond/Makefile | 2 + lib/librte_pmd_bond/rte_eth_bond_version.map | 21 ++++ lib/librte_pmd_e1000/Makefile | 2 + lib/librte_pmd_e1000/rte_pmd_e1000_version.map | 5 + lib/librte_pmd_enic/Makefile | 2 + lib/librte_pmd_enic/rte_pmd_enic_version.map | 5 + lib/librte_pmd_i40e/Makefile | 2 + lib/librte_pmd_i40e/rte_pmd_i40e_version.map | 5 + lib/librte_pmd_ixgbe/Makefile | 2 + lib/librte_pmd_ixgbe/rte_pmd_ixgbe_version.map | 5 + lib/librte_pmd_pcap/Makefile | 2 + lib/librte_pmd_pcap/rte_pmd_pcap_version.map | 5 + lib/librte_pmd_ring/Makefile | 2 + lib/librte_pmd_ring/rte_eth_ring.c | 2 +- lib/librte_pmd_ring/rte_eth_ring.h | 6 -- lib/librte_pmd_ring/rte_eth_ring_version.map | 10 ++ lib/librte_pmd_virtio/Makefile | 1 + lib/librte_pmd_virtio/rte_pmd_virtio_version.map | 5 + lib/librte_pmd_vmxnet3/Makefile | 2 + lib/librte_pmd_vmxnet3/rte_pmd_vmxnet3_version.map | 5 + lib/librte_pmd_xenvirt/Makefile | 2 + lib/librte_pmd_xenvirt/rte_eth_xenvirt_version.map | 8 ++ lib/librte_port/Makefile | 2 + lib/librte_port/rte_port_version.map | 18 ++++ lib/librte_power/Makefile | 2 + lib/librte_power/rte_power_version.map | 18 ++++ lib/librte_ring/Makefile | 2 + lib/librte_ring/rte_ring_version.map | 12 +++ lib/librte_sched/Makefile | 2 + lib/librte_sched/rte_sched_version.map | 22 ++++ lib/librte_table/Makefile | 2 + lib/librte_table/rte_table_version.map | 22 ++++ lib/librte_timer/Makefile | 2 + lib/librte_timer/rte_timer_version.map | 16 +++ lib/librte_vhost/Makefile | 2 + lib/librte_vhost/rte_vhost_version.map | 14 +++ 74 files changed, 874 insertions(+), 7 deletions(-) create mode 100644 lib/librte_acl/rte_acl_version.map create mode 100644 lib/librte_cfgfile/rte_cfgfile_version.map create mode 100644 lib/librte_cmdline/rte_cmdline_version.map create mode 100644 lib/librte_distributor/rte_distributor_version.map create mode 100644 lib/librte_eal/bsdapp/eal/rte_eal_version.map create mode 100644 lib/librte_eal/linuxapp/eal/rte_eal_version.map create mode 100644 lib/librte_ether/rte_ether_version.map create mode 100644 lib/librte_hash/rte_hash_version.map create mode 100644 lib/librte_ip_frag/rte_ipfrag_version.map create mode 100644 lib/librte_ivshmem/rte_ivshmem_version.map create mode 100644 lib/librte_kni/rte_kni_version.map create mode 100644 lib/librte_kvargs/rte_kvargs_version.map create mode 100644 lib/librte_lpm/rte_lpm_version.map create mode 100644 lib/librte_malloc/rte_malloc_version.map create mode 100644 lib/librte_mbuf/rte_mbuf_version.map create mode 100644 lib/librte_mempool/rte_mempool_version.map create mode 100644 lib/librte_meter/rte_meter_version.map create mode 100644 lib/librte_pipeline/rte_pipeline_version.map create mode 100644 lib/librte_pmd_af_packet/rte_pmd_af_packet_version.map create mode 100644 lib/librte_pmd_bond/rte_eth_bond_version.map create mode 100644 lib/librte_pmd_e1000/rte_pmd_e1000_version.map create mode 100644 lib/librte_pmd_enic/rte_pmd_enic_version.map create mode 100644 lib/librte_pmd_i40e/rte_pmd_i40e_version.map create mode 100644 lib/librte_pmd_ixgbe/rte_pmd_ixgbe_version.map create mode 100644 lib/librte_pmd_pcap/rte_pmd_pcap_version.map create mode 100644 lib/librte_pmd_ring/rte_eth_ring_version.map create mode 100644 lib/librte_pmd_virtio/rte_pmd_virtio_version.map create mode 100644 lib/librte_pmd_vmxnet3/rte_pmd_vmxnet3_version.map create mode 100644 lib/librte_pmd_xenvirt/rte_eth_xenvirt_version.map create mode 100644 lib/librte_port/rte_port_version.map create mode 100644 lib/librte_power/rte_power_version.map create mode 100644 lib/librte_ring/rte_ring_version.map create mode 100644 lib/librte_sched/rte_sched_version.map create mode 100644 lib/librte_table/rte_table_version.map create mode 100644 lib/librte_timer/rte_timer_version.map create mode 100644 lib/librte_vhost/rte_vhost_version.map
lib/librte_acl/Makefile +2 -0
@@ -37,6 +37,8 @@ LIB = librte_acl.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) +EXPORT_MAP := rte_acl_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_ACL) += tb_mem.c
lib/librte_acl/rte_acl_version.map new file +21 -0
@@ -0,0 +1,21 @@ +DPDK_1.8 { + global: + rte_acl_create; + rte_acl_find_existing; + rte_acl_free; + rte_acl_add_rules; + rte_acl_reset_rules; + rte_acl_build; + rte_acl_reset; + rte_acl_classify; + rte_acl_dump; + rte_acl_list_dump; + rte_acl_ipv4vlan_add_rules; + rte_acl_ipv4vlan_build; + rte_acl_classify_scalar; + rte_acl_classify_alg; + rte_acl_set_ctx_classify; + + local: *; +}; +
lib/librte_cfgfile/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_cfgfile.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_cfgfile_version.map + # # all source are stored in SRCS-y #
lib/librte_cfgfile/rte_cfgfile_version.map new file +14 -0
@@ -0,0 +1,14 @@ +DPDK_1.8 { + global: + rte_cfgfile_load; + rte_cfgfile_num_sections; + rte_cfgfile_sections; + rte_cfgfile_has_section; + rte_cfgfile_section_num_entries; + rte_cfgfile_section_entries; + rte_cfgfile_get_entry; + rte_cfgfile_has_entry; + rte_cfgfile_close; + + local: *; +};
lib/librte_cmdline/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_cmdline.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_cmdline_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_CMDLINE) := cmdline.c SRCS-$(CONFIG_RTE_LIBRTE_CMDLINE) += cmdline_cirbuf.c
lib/librte_cmdline/rte_cmdline_version.map new file +69 -0
69 lines not on this page · raw message
lib/librte_distributor/Makefile +2 -0
@@ -37,6 +37,8 @@ LIB = librte_distributor.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) +EXPORT_MAP := rte_distributor_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) := rte_distributor.c
lib/librte_distributor/rte_distributor_version.map new file +16 -0
@@ -0,0 +1,16 @@ +DPDK_1.8 { + + global: + rte_distributor_create; + rte_distributor_process; + rte_distributor_returned_pkts; + rte_distributor_flush; + rte_distributor_clear_returns; + rte_distributor_get_pkt; + rte_distributor_return_pkt; + rte_distributor_request_pkt; + rte_distributor_poll_pkt; + + local: *; +}; +
lib/librte_eal/bsdapp/eal/Makefile +2 -0
@@ -46,6 +46,8 @@ CFLAGS += -I$(RTE_SDK)/lib/librte_pmd_ring CFLAGS += -I$(RTE_SDK)/lib/librte_pmd_pcap CFLAGS += $(WERROR_FLAGS) -O3 +EXPORT_MAP := rte_eal_version.map + # specific to linuxapp exec-env SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) := eal.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal_memory.c
lib/librte_eal/bsdapp/eal/rte_eal_version.map new file +90 -0
90 lines not on this page · raw message
lib/librte_eal/linuxapp/eal/Makefile +2 -0
@@ -33,6 +33,8 @@ include $(RTE_SDK)/mk/rte.vars.mk LIB = librte_eal.a +EXPORT_MAP := rte_eal_version.map + VPATH += $(RTE_SDK)/lib/librte_eal/common CFLAGS += -I$(SRCDIR)/include
lib/librte_eal/linuxapp/eal/rte_eal_version.map new file +90 -0
90 lines not on this page · raw message
lib/librte_ether/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = libethdev.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_ether_version.map + SRCS-y += rte_ethdev.c #
lib/librte_ether/rte_ether_version.map new file +113 -0
113 lines not on this page · raw message
lib/librte_hash/Makefile +2 -0
@@ -37,6 +37,8 @@ LIB = librte_hash.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) +EXPORT_MAP := rte_hash_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_HASH) := rte_hash.c SRCS-$(CONFIG_RTE_LIBRTE_HASH) += rte_fbk_hash.c
lib/librte_hash/rte_hash_version.map new file +18 -0
@@ -0,0 +1,18 @@ +DPDK_1.8 { + global: + rte_fbk_hash_find_existing; + rte_fbk_hash_create; + rte_fbk_hash_free; + rte_hash_create; + rte_hash_find_existing; + rte_hash_free; + rte_hash_add_key; + rte_hash_add_key_with_hash; + rte_hash_del_key; + rte_hash_del_key_with_hash; + rte_hash_lookup; + rte_hash_lookup_with_hash; + rte_hash_lookup_bulk; + + local: *; +};
lib/librte_ip_frag/Makefile +2 -0
@@ -37,6 +37,8 @@ LIB = librte_ip_frag.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) +EXPORT_MAP := rte_ipfrag_version.map + #source files ifeq ($(CONFIG_RTE_MBUF_REFCNT),y) SRCS-$(CONFIG_RTE_LIBRTE_IP_FRAG) += rte_ipv4_fragmentation.c
lib/librte_ip_frag/rte_ipfrag_version.map new file +14 -0
@@ -0,0 +1,14 @@ +DPDK_1.8 { + global: + + rte_ip_frag_table_create; + rte_ipv6_fragment_packet; + rte_ipv6_frag_reassemble_packet; + rte_ipv4_fragment_packet; + rte_ipv4_frag_reassemble_packet; + rte_ip_frag_free_death_row; + rte_ip_frag_table_statistics_dump; + + local: *; +}; +
lib/librte_ivshmem/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_ivshmem.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_ivshmem_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_IVSHMEM) := rte_ivshmem.c
lib/librte_ivshmem/rte_ivshmem_version.map new file +13 -0
@@ -0,0 +1,13 @@ +DPDK_1.8 { + global: + + rte_ivshmem_metadata_create; + rte_ivshmem_metadata_add_memzone; + rte_ivshmem_metadata_add_ring; + rte_ivshmem_metadata_add_mempool; + rte_ivshmem_metadata_cmdline_generate; + rte_ivshmem_metadata_dump; + + local: *; +}; +
lib/librte_kni/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_kni.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -fno-strict-aliasing +EXPORT_MAP := rte_kni_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_KNI) := rte_kni.c
lib/librte_kni/rte_kni_version.map new file +20 -0
@@ -0,0 +1,20 @@ +DPDK_1.8 { + global: + + rte_kni_alloc; + rte_kni_create; + rte_kni_release; + rte_kni_handle_request; + rte_kni_rx_burst; + rte_kni_tx_burst; + rte_kni_get_port_id; + rte_kni_get; + rte_kni_info_get; + rte_kni_register_handlers; + rte_kni_unregister_handlers; + rte_kni_close; + rte_kni_init; + + local: *; +}; +
lib/librte_kvargs/Makefile +2 -0
@@ -38,6 +38,8 @@ LIB = librte_kvargs.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_kvargs_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_KVARGS) := rte_kvargs.c
lib/librte_kvargs/rte_kvargs_version.map new file +10 -0
@@ -0,0 +1,10 @@ +DPDK_1.8 { + + global: + rte_kvargs_parse; + rte_kvargs_free; + rte_kvargs_process; + rte_kvargs_count; + + local: *; +};
lib/librte_lpm/Makefile +2 -0
@@ -37,6 +37,8 @@ LIB = librte_lpm.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) +EXPORT_MAP := rte_lpm_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_LPM) := rte_lpm.c rte_lpm6.c
lib/librte_lpm/rte_lpm_version.map new file +24 -0
@@ -0,0 +1,24 @@ +DPDK_1.8 { + global: + + rte_lpm_create; + rte_lpm_find_existing; + rte_lpm_free; + rte_lpm_add; + rte_lpm_is_rule_present; + rte_lpm_delete; + rte_lpm_delete_all; + rte_lpm6_create; + rte_lpm6_find_existing; + rte_lpm6_free; + rte_lpm6_add; + rte_lpm6_is_rule_present; + rte_lpm6_delete; + rte_lpm6_delete_bulk_func; + rte_lpm6_delete_all; + rte_lpm6_lookup; + rte_lpm6_lookup_bulk_func; + + local: *; +}; +
lib/librte_malloc/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_malloc.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_malloc_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_MALLOC) := rte_malloc.c malloc_elem.c malloc_heap.c
lib/librte_malloc/rte_malloc_version.map new file +19 -0
@@ -0,0 +1,19 @@ +DPDK_1.8 { + global: + + rte_malloc; + rte_zmalloc; + rte_calloc; + rte_realloc; + rte_malloc_socket; + rte_zmalloc_socket; + rte_calloc_socket; + rte_free; + rte_malloc_validate; + rte_malloc_get_socket_stats; + rte_malloc_dump_stats; + rte_malloc_set_limit; + rte_malloc_virt2phy; + + local: *; +};
lib/librte_mbuf/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_mbuf.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_mbuf_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_MBUF) := rte_mbuf.c
lib/librte_mbuf/rte_mbuf_version.map new file +14 -0
@@ -0,0 +1,14 @@ +DPDK_1.8 { + global: + + rte_mbuf_sanity_check; + rte_ctrlmbuf_init; + rte_pktmbuf_init; + rte_pktmbuf_pool_init; + rte_pktmbuf_dump; + rte_get_rx_ol_flag_name; + rte_get_tx_ol_flag_name; + + local: *; +}; +
lib/librte_mempool/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_mempool.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_mempool_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_MEMPOOL) += rte_mempool.c ifeq ($(CONFIG_RTE_LIBRTE_XEN_DOM0),y)
lib/librte_mempool/rte_mempool_version.map new file +18 -0
@@ -0,0 +1,18 @@ +DPDK_1.8 { + global: + + rte_mempool_create; + rte_mempool_xmem_create; + rte_dom0_mempool_create; + rte_mempool_dump; + rte_mempool_audit; + rte_mempool_list_dump; + rte_mempool_lookup; + rte_mempool_calc_obj_size; + rte_mempool_xmem_size; + rte_mempool_xmem_usage; + rte_mempool_walk; + rte_mempool_count; + + local: *; +};
lib/librte_meter/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_meter.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_meter_version.map + # # all source are stored in SRCS-y #
lib/librte_meter/rte_meter_version.map new file +13 -0
@@ -0,0 +1,13 @@ +DPDK_1.8 { + global: + + rte_meter_srtcm_config; + rte_meter_trtcm_config; + rte_meter_srtcm_color_blind_check; + rte_meter_srtcm_color_aware_check; + rte_meter_trtcm_color_blind_check; + rte_meter_trtcm_color_aware_check; + + local: *; +}; +
lib/librte_pipeline/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pipeline.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_pipeline_version.map + # # all source are stored in SRCS-y #
lib/librte_pipeline/rte_pipeline_version.map new file +23 -0
@@ -0,0 +1,23 @@ +DPDK_1.8 { + global: + + rte_pipeline_create; + rte_pipeline_free; + rte_pipeline_check; + rte_pipeline_run; + rte_pipeline_flush; + rte_pipeline_table_create; + rte_pipeline_table_default_entry_add; + rte_pipeline_table_default_entry_delete; + rte_pipeline_table_entry_add; + rte_pipeline_table_entry_delete; + rte_pipeline_port_in_create; + rte_pipeline_port_in_connect_to_table; + rte_pipeline_port_in_enable; + rte_pipeline_port_in_disable; + rte_pipeline_port_out_create; + rte_pipeline_port_out_packet_insert; + + local: *; +}; +
lib/librte_pmd_af_packet/Makefile +2 -0
@@ -38,6 +38,8 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB = librte_pmd_af_packet.a +EXPORT_MAP := rte_pmd_af_packet_version.map + CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS)
lib/librte_pmd_af_packet/rte_pmd_af_packet_version.map new file +7 -0
@@ -0,0 +1,7 @@ +DPDK_1.8 { + global: + rte_pmd_af_packet_devinit; + + local: *; +}; +
lib/librte_pmd_bond/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_bond.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_eth_bond_version.map + # # all source are stored in SRCS-y #
lib/librte_pmd_bond/rte_eth_bond_version.map new file +21 -0
@@ -0,0 +1,21 @@ +DPDK_1.8 { + global: + + rte_eth_bond_create; + rte_eth_bond_slave_add; + rte_eth_bond_slave_remove; + rte_eth_bond_mode_set; + rte_eth_bond_mode_get; + rte_eth_bond_primary_set; + rte_eth_bond_primary_get; + rte_eth_bond_slaves_get; + rte_eth_bond_active_slaves_get; + rte_eth_bond_mac_address_set; + rte_eth_bond_mac_address_reset; + rte_eth_bond_xmit_policy_set; + rte_eth_bond_xmit_policy_get; + rte_eth_bond_link_monitoring_set; + + local: *; +}; +
lib/librte_pmd_e1000/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_e1000.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_pmd_e1000_version.map + ifeq ($(CC), icc) # # CFLAGS for icc
lib/librte_pmd_e1000/rte_pmd_e1000_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_enic/Makefile +2 -0
@@ -37,6 +37,8 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB = librte_pmd_enic.a +EXPORT_MAP := rte_pmd_enic_version.map + CFLAGS += -I$(RTE_SDK)/lib/librte_pmd_enic/vnic/ CFLAGS += -I$(RTE_SDK)/lib/librte_pmd_enic/ CFLAGS += -O3
lib/librte_pmd_enic/rte_pmd_enic_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_i40e/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_i40e.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_pmd_i40e_version.map + # # Add extra flags for base driver files (also known as shared code) # to disable warnings
lib/librte_pmd_i40e/rte_pmd_i40e_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_ixgbe/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_ixgbe.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_pmd_ixgbe_version.map + ifeq ($(CC), icc) # # CFLAGS for icc
lib/librte_pmd_ixgbe/rte_pmd_ixgbe_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_pcap/Makefile +2 -0
@@ -40,6 +40,8 @@ LIB = librte_pmd_pcap.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_pmd_pcap_version.map + # # all source are stored in SRCS-y #
lib/librte_pmd_pcap/rte_pmd_pcap_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_ring/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_ring.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_eth_ring_version.map + # # all source are stored in SRCS-y #
lib/librte_pmd_ring/rte_eth_ring.c +1 -1
@@ -473,7 +473,7 @@ out:return ret; } -int +static int rte_pmd_ring_devinit (const char *name,const char *params) {struct rte_kvargs *kvlist;
lib/librte_pmd_ring/rte_eth_ring.h +0 -6
@@ -50,12 +50,6 @@ int rte_eth_from_rings(const char *name,int rte_eth_ring_pair_create (const char *name,const unsigned numa_node);int rte_eth_ring_pair_attach (const char *name,const unsigned numa_node); -/** -* For use by test apps only. Called as part of EAL init to set up any dummy NICs -* configured on command line. -*/ -int rte_pmd_ring_devinit (const char *name,const char *params); - #ifdef __cplusplus }#endif
lib/librte_pmd_ring/rte_eth_ring_version.map new file +10 -0
@@ -0,0 +1,10 @@ +DPDK_1.8 { + + global: + + rte_eth_from_rings; + rte_eth_ring_pair_create; + rte_eth_ring_pair_attach; + + local: *; +};
lib/librte_pmd_virtio/Makefile +1 -0
@@ -39,6 +39,7 @@ LIB = librte_pmd_virtio_uio.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_pmd_virtio_version.map # # all source are stored in SRCS-y
lib/librte_pmd_virtio/rte_pmd_virtio_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_vmxnet3/Makefile +2 -0
@@ -66,6 +66,8 @@ endif VPATH += $(RTE_SDK)/lib/librte_pmd_vmxnet3/vmxnet3 +EXPORT_MAP := rte_pmd_vmxnet3_version.map + # # all source are stored in SRCS-y #
lib/librte_pmd_vmxnet3/rte_pmd_vmxnet3_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_xenvirt/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_xenvirt.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_eth_xenvirt_version.map + # # all source are stored in SRCS-y #
lib/librte_pmd_xenvirt/rte_eth_xenvirt_version.map new file +8 -0
@@ -0,0 +1,8 @@ +DPDK_1.8 { + global: + + rte_mempool_gntalloc_create; + + local: *; +}; +
lib/librte_port/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_port.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_port_version.map + # # all source are stored in SRCS-y #
lib/librte_port/rte_port_version.map new file +18 -0
@@ -0,0 +1,18 @@ +DPDK_1.8 { + global: + rte_port_ring_reader_ops; + rte_port_ring_writer_ops; + rte_port_ethdev_reader_ops; + rte_port_ethdev_writer_ops; + rte_port_ring_reader_ipv4_frag_ops; + rte_port_ring_writer_ipv4_ras_ops; + rte_port_ring_reader_ops; + rte_port_ring_writer_ops; + rte_port_sched_reader_ops; + rte_port_sched_writer_ops; + rte_port_source_ops; + rte_port_sink_ops; + + local: *; +}; +
lib/librte_power/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_power.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -fno-strict-aliasing +EXPORT_MAP := rte_power_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_POWER) := rte_power.c rte_power_acpi_cpufreq.c SRCS-$(CONFIG_RTE_LIBRTE_POWER) += rte_power_kvm_vm.c guest_channel.c
lib/librte_power/rte_power_version.map new file +18 -0
@@ -0,0 +1,18 @@ +DPDK_1.8 { + global: + rte_power_init; + rte_power_exit; + rte_power_freqs; + rte_power_get_freq; + rte_power_set_freq; + rte_power_freq_up; + rte_power_freq_down; + rte_power_freq_max; + rte_power_freq_min; + rte_power_set_env; + rte_power_get_env; + rte_power_unset_env; + + local: *; +}; +
lib/librte_ring/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_ring.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_ring_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_RING) := rte_ring.c
lib/librte_ring/rte_ring_version.map new file +12 -0
@@ -0,0 +1,12 @@ +DPDK_1.8 { + global: + rte_ring_get_memsize; + rte_ring_init; + rte_ring_create; + rte_ring_set_water_mark; + rte_ring_dump; + rte_ring_list_dump; + rte_ring_lookup; + + local: *; +};
lib/librte_sched/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) CFLAGS_rte_red.o := -D_GNU_SOURCE +EXPORT_MAP := rte_sched_version.map + # # all source are stored in SRCS-y #
lib/librte_sched/rte_sched_version.map new file +22 -0
@@ -0,0 +1,22 @@ +DPDK_1.8 { + global: + + rte_approx; + rte_red_rt_data_init; + rte_red_config_init; + rte_sched_port_config; + rte_sched_port_free; + rte_sched_subport_config; + rte_sched_pipe_config; + rte_sched_port_get_memory_footprint; + rte_sched_subport_read_stats; + rte_sched_queue_read_stats; + rte_sched_port_enqueue; + rte_sched_port_dequeue; + rte_red_log2_1_minus_Wq; + rte_red_pow2_frac_inv; + rte_red_rand_val; + rte_red_rand_seed; + + local: *; +};
lib/librte_table/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_table.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_table_version.map + # # all source are stored in SRCS-y #
lib/librte_table/rte_table_version.map new file +22 -0
@@ -0,0 +1,22 @@ +DPDK_1.8 { + global: + + rte_table_stub_ops; + rte_table_lpm_ops; + rte_table_array_ops; + rte_table_hash_key8_lru_ops; + rte_table_hash_key8_lru_dosig_ops; + rte_table_hash_key8_ext_ops; + rte_table_hash_key8_ext_dosig_ops; + rte_table_lpm_ipv6_ops; + rte_table_hash_key16_lru_ops; + rte_table_hash_key32_lru_ops; + rte_table_hash_key16_ext_ops; + rte_table_hash_key32_ext_ops; + rte_table_acl_ops; + rte_table_hash_lru_ops; + rte_table_hash_ext_ops; + + local: *; +}; +
lib/librte_timer/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_timer.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_timer_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_TIMER) := rte_timer.c
lib/librte_timer/rte_timer_version.map new file +16 -0
@@ -0,0 +1,16 @@ +DPDK_1.8 { + global: + + rte_timer_subsystem_init; + rte_timer_init; + rte_timer_reset; + rte_timer_reset_sync; + rte_timer_stop; + rte_timer_stop_sync; + rte_timer_pending; + rte_timer_manage; + rte_timer_dump_stats; + + local: *; +}; +
lib/librte_vhost/Makefile +2 -0
@@ -34,6 +34,8 @@ include $(RTE_SDK)/mk/rte.vars.mk # library name LIB = librte_vhost.a +EXPORT_MAP := rte_vhost_version.map + CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -D_FILE_OFFSET_BITS=64 -lfuse LDFLAGS += -lfuse # all source are stored in SRCS-y
lib/librte_vhost/rte_vhost_version.map new file +14 -0
@@ -0,0 +1,14 @@ +DPDK_1.8 { + global: + rte_vhost_feature_disable; + rte_vhost_feature_enable; + rte_vhost_feature_get; + rte_vhost_enable_guest_notification; + rte_vhost_driver_register; + rte_vhost_driver_callback_register; + rte_vhost_driver_session_start; + rte_vhost_enqueue_burst; + rte_vhost_dequeue_burst; + + local: *; +};
Signature · 1 line
2.1.0
PATCH v6 3/4 Add library version extenstion
In reply to a message not in the archiveTo differentiate libraries that break ABI, we add a library version number suffix to the library, which must be incremented when a given libraries ABI is broken. This patch enforces that addition, sets the initial abi soname extension to 1 for each library and creates a symlink to the base SONAME so that the test applications will link properly.
---
Change Notes:
v3)
Made symlinking of libraries conditional on a DSO build
v4) Removed erroneous newline
changed @exit 1 to @false changed ./$(LIB) to $< --- lib/librte_acl/Makefile | 2 ++ lib/librte_cfgfile/Makefile | 2 ++ lib/librte_cmdline/Makefile | 2 ++ lib/librte_compat/Makefile | 2 ++ lib/librte_distributor/Makefile | 2 ++ lib/librte_eal/bsdapp/eal/Makefile | 2 ++ lib/librte_eal/linuxapp/eal/Makefile | 2 ++ lib/librte_ether/Makefile | 2 ++ lib/librte_hash/Makefile | 2 ++ lib/librte_ip_frag/Makefile | 2 ++ lib/librte_ivshmem/Makefile | 2 ++ lib/librte_kni/Makefile | 2 ++ lib/librte_kvargs/Makefile | 2 ++ lib/librte_lpm/Makefile | 2 ++ lib/librte_malloc/Makefile | 2 ++ lib/librte_mbuf/Makefile | 2 ++ lib/librte_mempool/Makefile | 2 ++ lib/librte_meter/Makefile | 2 ++ lib/librte_pipeline/Makefile | 2 ++ lib/librte_pmd_af_packet/Makefile | 2 ++ lib/librte_pmd_bond/Makefile | 2 ++ lib/librte_pmd_e1000/Makefile | 2 ++ lib/librte_pmd_enic/Makefile | 2 ++ lib/librte_pmd_i40e/Makefile | 2 ++ lib/librte_pmd_ixgbe/Makefile | 2 ++ lib/librte_pmd_pcap/Makefile | 2 ++ lib/librte_pmd_ring/Makefile | 2 ++ lib/librte_pmd_virtio/Makefile | 2 ++ lib/librte_pmd_vmxnet3/Makefile | 2 ++ lib/librte_pmd_xenvirt/Makefile | 2 ++ lib/librte_port/Makefile | 2 ++ lib/librte_power/Makefile | 2 ++ lib/librte_ring/Makefile | 2 ++ lib/librte_sched/Makefile | 2 ++ lib/librte_table/Makefile | 2 ++ lib/librte_timer/Makefile | 2 ++ lib/librte_vhost/Makefile | 2 ++ mk/rte.lib.mk | 12 ++++++++++-- 38 files changed, 84 insertions(+), 2 deletions(-)
lib/librte_acl/Makefile +2 -0
@@ -39,6 +39,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) EXPORT_MAP := rte_acl_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_ACL) += tb_mem.c
lib/librte_cfgfile/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_cfgfile_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_cmdline/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_cmdline_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_CMDLINE) := cmdline.c SRCS-$(CONFIG_RTE_LIBRTE_CMDLINE) += cmdline_cirbuf.c
lib/librte_compat/Makefile +2 -0
@@ -32,6 +32,8 @@ include $(RTE_SDK)/mk/rte.vars.mk +LIBABIVER := 1 + # install includes SYMLINK-y-include := rte_compat.h
lib/librte_distributor/Makefile +2 -0
@@ -39,6 +39,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) EXPORT_MAP := rte_distributor_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) := rte_distributor.c
lib/librte_eal/bsdapp/eal/Makefile +2 -0
@@ -48,6 +48,8 @@ CFLAGS += $(WERROR_FLAGS) -O3 EXPORT_MAP := rte_eal_version.map +LIBABIVER := 1 + # specific to linuxapp exec-env SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) := eal.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal_memory.c
lib/librte_eal/linuxapp/eal/Makefile +2 -0
@@ -35,6 +35,8 @@ LIB = librte_eal.a EXPORT_MAP := rte_eal_version.map +LIBABIVER := 1 + VPATH += $(RTE_SDK)/lib/librte_eal/common CFLAGS += -I$(SRCDIR)/include
lib/librte_ether/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_ether_version.map +LIBABIVER := 1 + SRCS-y += rte_ethdev.c #
lib/librte_hash/Makefile +2 -0
@@ -39,6 +39,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) EXPORT_MAP := rte_hash_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_HASH) := rte_hash.c SRCS-$(CONFIG_RTE_LIBRTE_HASH) += rte_fbk_hash.c
lib/librte_ip_frag/Makefile +2 -0
@@ -39,6 +39,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) EXPORT_MAP := rte_ipfrag_version.map +LIBABIVER := 1 + #source files ifeq ($(CONFIG_RTE_MBUF_REFCNT),y) SRCS-$(CONFIG_RTE_LIBRTE_IP_FRAG) += rte_ipv4_fragmentation.c
lib/librte_ivshmem/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_ivshmem_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_IVSHMEM) := rte_ivshmem.c
lib/librte_kni/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -fno-strict-aliasing EXPORT_MAP := rte_kni_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_KNI) := rte_kni.c
lib/librte_kvargs/Makefile +2 -0
@@ -40,6 +40,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_kvargs_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_KVARGS) := rte_kvargs.c
lib/librte_lpm/Makefile +2 -0
@@ -39,6 +39,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) EXPORT_MAP := rte_lpm_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_LPM) := rte_lpm.c rte_lpm6.c
lib/librte_malloc/Makefile +2 -0
@@ -34,6 +34,8 @@ include $(RTE_SDK)/mk/rte.vars.mk # library name LIB = librte_malloc.a +LIBABIVER := 1 + CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_malloc_version.map
lib/librte_mbuf/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_mbuf_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_MBUF) := rte_mbuf.c
lib/librte_mempool/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_mempool_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_MEMPOOL) += rte_mempool.c ifeq ($(CONFIG_RTE_LIBRTE_XEN_DOM0),y)
lib/librte_meter/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_meter_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pipeline/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_pipeline_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pmd_af_packet/Makefile +2 -0
@@ -40,6 +40,8 @@ LIB = librte_pmd_af_packet.a EXPORT_MAP := rte_pmd_af_packet_version.map +LIBABIVER := 1 + CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS)
lib/librte_pmd_bond/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_eth_bond_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pmd_e1000/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_pmd_e1000_version.map +LIBABIVER := 1 + ifeq ($(CC), icc) # # CFLAGS for icc
lib/librte_pmd_enic/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_enic.a EXPORT_MAP := rte_pmd_enic_version.map +LIBABIVER := 1 + CFLAGS += -I$(RTE_SDK)/lib/librte_pmd_enic/vnic/ CFLAGS += -I$(RTE_SDK)/lib/librte_pmd_enic/ CFLAGS += -O3
lib/librte_pmd_i40e/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_pmd_i40e_version.map +LIBABIVER := 1 + # # Add extra flags for base driver files (also known as shared code) # to disable warnings
lib/librte_pmd_ixgbe/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_pmd_ixgbe_version.map +LIBABIVER := 1 + ifeq ($(CC), icc) # # CFLAGS for icc
lib/librte_pmd_pcap/Makefile +2 -0
@@ -42,6 +42,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_pmd_pcap_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pmd_ring/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_eth_ring_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pmd_virtio/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_pmd_virtio_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pmd_vmxnet3/Makefile +2 -0
@@ -68,6 +68,8 @@ VPATH += $(RTE_SDK)/lib/librte_pmd_vmxnet3/vmxnet3 EXPORT_MAP := rte_pmd_vmxnet3_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pmd_xenvirt/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_eth_xenvirt_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_port/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_port_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_power/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -fno-strict-aliasing EXPORT_MAP := rte_power_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_POWER) := rte_power.c rte_power_acpi_cpufreq.c SRCS-$(CONFIG_RTE_LIBRTE_POWER) += rte_power_kvm_vm.c guest_channel.c
lib/librte_ring/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_ring_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_RING) := rte_ring.c
lib/librte_sched/Makefile +2 -0
@@ -43,6 +43,8 @@ CFLAGS_rte_red.o := -D_GNU_SOURCE EXPORT_MAP := rte_sched_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_table/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_table_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_timer/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_timer_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_TIMER) := rte_timer.c
lib/librte_vhost/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_vhost.a EXPORT_MAP := rte_vhost_version.map +LIBABIVER := 1 + CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -D_FILE_OFFSET_BITS=64 -lfuse LDFLAGS += -lfuse # all source are stored in SRCS-y
mk/rte.lib.mk +10 -2
@@ -37,10 +37,9 @@ include $(RTE_SDK)/mk/internal/rte.depdirs-pre.mk # VPATH contains at least SRCDIR VPATH += $(SRCDIR) - ifeq ($(RTE_BUILD_SHARED_LIB),y) -LIB := $(patsubst %.a,%.so,$(LIB)) +LIB := $(patsubst %.a,%.so.$(LIBABIVER),$(LIB)) CPU_LDFLAGS += --version-script=$(SRCDIR)/$(EXPORT_MAP) endif
@@ -113,6 +112,10 @@ lib_dir = [ -d $(RTE_OUTPUT)/lib ] || mkdir -p $(RTE_OUTPUT)/lib; # ifeq ($(RTE_BUILD_SHARED_LIB),y) $(LIB): $(OBJS-y) $(DEP_$(LIB)) FORCE +ifeq ($(LIBABIVER),) + @echo "Must Specify a $(LIB) ABI version" + @false +endif @[ -d $(dir $@) ] || mkdir -p $(dir $@) $(if $(D),\ @echo -n "$< -> $@ " ; \
@@ -126,6 +129,7 @@ $(LIB): $(OBJS-y) $(DEP_$(LIB)) FORCE $(depfile_missing),\ $(depfile_newer)),\ $(O_TO_S_DO)) + ifeq ($(RTE_BUILD_COMBINE_LIBS),y) $(if $(or \ $(file_missing),\
@@ -163,9 +167,13 @@ endif # install lib in $(RTE_OUTPUT)/lib # $(RTE_OUTPUT)/lib/$(LIB): $(LIB) + $(eval LIBSONAME := $(basename $(LIB))) @echo " INSTALL-LIB $(LIB)" @[ -d $(RTE_OUTPUT)/lib ] || mkdir -p $(RTE_OUTPUT)/lib $(Q)cp -f $(LIB) $(RTE_OUTPUT)/lib +ifeq ($(RTE_BUILD_SHARED_LIB),y) + $(Q)ln -s -f $< $(RTE_OUTPUT)/lib/$(LIBSONAME) +endif # # Clean all generated files
Signature · 1 line
2.1.0
PATCH v6 4/4 docs: Add ABI documentation
In reply to a message not in the archiveAdding a document describing rudimentary ABI policy and adding notice space for any deprecation announcements
---
Change notes:
v5) Updated documentation to add notes from Thomas M.
v6) Moved abi.txt to guides/rel_notes/abi.rst
--- doc/guides/rel_notes/abi.rst | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 doc/guides/rel_notes/abi.rst
doc/guides/rel_notes/abi.rst new file +38 -0
@@ -0,0 +1,38 @@ +ABI policy +========== + ABI versions are set at the time of major release labeling, and ABI may +change multiple times between the last labeling and the HEAD label of the git +tree without warning + + ABI versions, once released are available until such time as their +deprecation has been noted here for at least one major release cycle, after it +has been tagged. E.g. the ABI for DPDK 1.8 is shipped, and then the decision to +remove it is made during the development of DPDK 1.9. The decision will be +recorded here, shipped with the DPDK 1.9 release, and actually removed when DPDK +1.10 ships. + + ABI versions may be deprecated in whole, or in part as needed by a given +update. + + Some ABI changes may be too significant to reasonably maintain multiple +versions of. In those events ABI's may be updated without backward +compatibility provided. The requirements for doing so are: + 1) At least 3 acknoweldgements of the need on the dpdk.org + 2) A full deprecation cycle must be made to offer downstream consumers +sufficient warning of the change. E.g. if dpdk 2.0 is under development when +the change is proposed, a deprecation notice must be added to this file, and +released with dpdk 2.0. Then the change may be incorporated for dpdk 2.1 + 3) The LIBABIVER variable in the makefilei(s) where the ABI changes are +incorporated must be incremented in parallel with the ABI changes themselves + + Note that the above process for ABI deprecation should not be undertaken +lightly. ABI stability is extreemely important for downstream consumers of the +DPDK, especially when distributed in shared object form. Every effort should be +made to preserve ABI whenever possible. For instance, reorganizing public +structure field for astetic or readability purposes should be avoided as it will +cause ABI breakage. Only significant (e.g. performance) reasons should be seen +as cause to alter ABI. + +Deprecation Notices +=================== +
Signature · 1 line
2.1.0
A message that is not in the archive (sent off-list or not yet received): 1421788679-9433-4-git-send-email-nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org
Re: [PATCH v6 4/4] docs: Add ABI documentation
Quoted 16 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Neil Horman
Sent: Tuesday, January 20, 2015 9:18 PM
To: [email protected]
Subject: [dpdk-dev] [PATCH v6 4/4] docs: Add ABI documentationAdding a document describing rudimentary ABI policy and adding notice space for any deprecation announcements
Signed-off-by Neil Horman <[email protected]>CC Thomas Monjalon <[email protected]>CC "Richardson, Bruce" <[email protected]>---
Change notes:
Quoted 7 lines
v5) Updated documentation to add notes from Thomas M.
v6) Moved abi.txt to
guides/rel_notes/abi.rst--- doc/guides/rel_notes/abi.rst | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 doc/guides/rel_notes/abi.rst
Hi Neil,
The file doc/guides/rel_notes/index.rst should be modified to include "abi" so that the abi.rst file is included in the release notes.
Quoted 16 lines
doc/guides/rel_notes/abi.rst new file mode 100644 index renamed from doc/guides/rel_notes/abi.rst +0
-00000000..98ac19d
doc/guides/rel_notes/abi.rst new file +10
-0@@ -0,0 +1,38 @@ +ABI policy +========== + ABI versions are set at the time of major release labeling, and ABI +may change multiple times between the last labeling and the HEAD label +of the git tree without warning + + ABI versions, once released are available until such time as their +deprecation has been noted here for at least one major release cycle, +after it has been tagged. E.g. the ABI for DPDK 1.8 is shipped, and +then the decision to remove it is made during the development of DPDK
doc/guides/rel_notes/abi.rst line 20
Quoted 10 lines
doc/guides/rel_notes/abi.rst new file +10
-0+1.9. The decision will be recorded here, shipped with the DPDK 1.9 +release, and actually removed when DPDK +1.10 ships. + + ABI versions may be deprecated in whole, or in part as needed by a +given update. + + Some ABI changes may be too significant to reasonably maintain +multiple versions of. In those events ABI's may be updated without +backward compatibility provided. The requirements for doing so are:
The #. Syntax could be used for numbered lists
doc/guides/rel_notes/abi.rst line 20
Quoted 1 line
doc/guides/rel_notes/abi.rst new file +1
-0+ 1) At least 3 acknoweldgements of the need on the dpdk.org
A blank line is needed otherwise the text will concatenate.
doc/guides/rel_notes/abi.rst line 25
Quoted 4 lines
doc/guides/rel_notes/abi.rst new file +4
-0+ 2) A full deprecation cycle must be made to offer downstream consumers +sufficient warning of the change. E.g. if dpdk 2.0 is under +development when the change is proposed, a deprecation notice must be +added to this file, and released with dpdk 2.0. Then the change may be incorporated for dpdk 2.1
A blank line is needed otherwise the text will concatenate.
doc/guides/rel_notes/abi.rst line 28
Quoted 3 lines
doc/guides/rel_notes/abi.rst new file +3
-0+ 3) The LIBABIVER variable in the makefilei(s) where the ABI changes +are incorporated must be incremented in parallel with the ABI changes +themselves
A blank line is needed otherwise the text will concatenate.
Quoted 13 lines
doc/guides/rel_notes/abi.rst new file +12
-1+ + Note that the above process for ABI deprecation should not be +undertaken lightly. ABI stability is extreemely important for +downstream consumers of the DPDK, especially when distributed in shared +object form. Every effort should be made to preserve ABI whenever +possible. For instance, reorganizing public structure field for +astetic or readability purposes should be avoided as it will cause ABI +breakage. Only significant (e.g. performance) reasons should be seen as cause to alter ABI. + +Deprecation Notices +=================== + --
Quoted 1 line
2.1.0
Regards,
Bernard.
Re: [PATCH v6 4/4] docs: Add ABI documentation
In reply to a message not in the archive2015-01-20 16:17, Neil Horman:
Quoted 7 lines
Adding a document describing rudimentary ABI policy and adding notice space for any deprecation announcements
Signed-off-by Neil Horman <[email protected]>CC Thomas Monjalon <[email protected]>CC "Richardson, Bruce" <[email protected]>
Quoted 6 lines
---
Change notes:v5) Updated documentation to add notes from Thomas M.
v6) Moved abi.txt to
guides/rel_notes/abi.rst
You didn't integrate this file in the index.
[...]
Quoted 5 lines
doc/guides/rel_notes/abi.rst new file +2
-0@@ -0,0 +1,38 @@ +ABI policy +==========
doc/guides/rel_notes/abi.rst line 12
Quoted 10 lines
doc/guides/rel_notes/abi.rst new file +10
-0+ ABI versions are set at the time of major release labeling, and ABI may +change multiple times between the last labeling and the HEAD label of the git +tree without warning + + ABI versions, once released are available until such time as their +deprecation has been noted here for at least one major release cycle, after it +has been tagged. E.g. the ABI for DPDK 1.8 is shipped, and then the decision to +remove it is made during the development of DPDK 1.9. The decision will be +recorded here, shipped with the DPDK 1.9 release, and actually removed when DPDK +1.10 ships.
As previously said, speaking about 2.0/2.1 would be more coherent.
Quoted 12 lines
doc/guides/rel_notes/abi.rst new file +12
-0+ + ABI versions may be deprecated in whole, or in part as needed by a given +update. + + Some ABI changes may be too significant to reasonably maintain multiple +versions of. In those events ABI's may be updated without backward +compatibility provided. The requirements for doing so are: + 1) At least 3 acknoweldgements of the need on the dpdk.org + 2) A full deprecation cycle must be made to offer downstream consumers +sufficient warning of the change. E.g. if dpdk 2.0 is under development when +the change is proposed, a deprecation notice must be added to this file, and +released with dpdk 2.0. Then the change may be incorporated for dpdk 2.1
doc/guides/rel_notes/abi.rst line 34
Quoted 10 lines
doc/guides/rel_notes/abi.rst new file +10
-0+ 3) The LIBABIVER variable in the makefilei(s) where the ABI changes are +incorporated must be incremented in parallel with the ABI changes themselves + + Note that the above process for ABI deprecation should not be undertaken +lightly. ABI stability is extreemely important for downstream consumers of the +DPDK, especially when distributed in shared object form. Every effort should be +made to preserve ABI whenever possible. For instance, reorganizing public +structure field for astetic or readability purposes should be avoided as it will +cause ABI breakage. Only significant (e.g. performance) reasons should be seen +as cause to alter ABI.
When applying the patch, there are these (minor) warnings:
/home/thomas/projects/dpdk/dpdk/.git/rebase-apply/patch:52: trailing whitespace. /home/thomas/projects/dpdk/dpdk/.git/rebase-apply/patch:55: new blank line at EOF.
When building the documentation, there are these errors:
make doc-guides-html/home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:4: WARNING: Block quote ends without a blank line; unexpected unindent. /home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:8: WARNING: Block quote ends without a blank line; unexpected unindent. /home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:15: WARNING: Block quote ends without a blank line; unexpected unindent. /home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:18: WARNING: Block quote ends without a blank line; unexpected unindent. /home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:20: ERROR: Unexpected indentation. /home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:22: WARNING: Block quote ends without a blank line; unexpected unindent. /home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:25: ERROR: Unexpected indentation. /home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:26: WARNING: Block quote ends without a blank line; unexpected unindent. /home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:29: WARNING: Block quote ends without a blank line; unexpected unindent. /home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:: WARNING: document isn't included in any toctree
Please check it.
Other comment, what about the additions I suggested about macros and structure renaming?
Neil, we expect that you consider comments done previously and that you test your patch. Otherwise, we are losing time in useless reviews.
Signature · 1 line
Thomas
Re: [PATCH v6 4/4] docs: Add ABI documentation
Quoted 8 lines · Thomas Monjalon
2015-01-20 16:17, Neil Horman:
Quoted 7 lines
Adding a document describing rudimentary ABI policy and adding notice space for any deprecation announcements
Signed-off-by Neil Horman <[email protected]>CC Thomas Monjalon <[email protected]>CC "Richardson, Bruce" <[email protected]>
Quoted 9 lines
Quoted 6 lines
---
Change notes:v5) Updated documentation to add notes from Thomas M.
v6) Moved abi.txt to
guides/rel_notes/abi.rstYou didn't integrate this file in the index.
Shiobahn indicated that its just a plain text file, so I left it as a plain text file. I guess we have different definitions of plain text files.
Quoted 11 lines
[...]
Quoted 9 lines
doc/guides/rel_notes/abi.rst new file +6
-0@@ -0,0 +1,38 @@ +ABI policy +========== + ABI versions are set at the time of major release labeling, and ABI may +change multiple times between the last labeling and the HEAD label of the git +tree without warning +
Quoted 9 lines
doc/guides/rel_notes/abi.rst line 12
Quoted 6 lines
doc/guides/rel_notes/abi.rst new file +6
-0+ ABI versions, once released are available until such time as their +deprecation has been noted here for at least one major release cycle, after it +has been tagged. E.g. the ABI for DPDK 1.8 is shipped, and then the decision to +remove it is made during the development of DPDK 1.9. The decision will be +recorded here, shipped with the DPDK 1.9 release, and actually removed when DPDK +1.10 ships.As previously said, speaking about 2.0/2.1 would be more coherent.
As previously mentioned, I really don't see this as relevant, as it will be out of date within a release, and I think we can agree, no one is going to update this paragraph every release.
Quoted 41 lines
Quoted 12 lines
doc/guides/rel_notes/abi.rst new file +12
-0+ + ABI versions may be deprecated in whole, or in part as needed by a given +update. + + Some ABI changes may be too significant to reasonably maintain multiple +versions of. In those events ABI's may be updated without backward +compatibility provided. The requirements for doing so are: + 1) At least 3 acknoweldgements of the need on the dpdk.org + 2) A full deprecation cycle must be made to offer downstream consumers +sufficient warning of the change. E.g. if dpdk 2.0 is under development when +the change is proposed, a deprecation notice must be added to this file, and +released with dpdk 2.0. Then the change may be incorporated for dpdk 2.1doc/guides/rel_notes/abi.rst line 34
Quoted 10 lines
doc/guides/rel_notes/abi.rst new file +10
-0+ 3) The LIBABIVER variable in the makefilei(s) where the ABI changes are +incorporated must be incremented in parallel with the ABI changes themselves + + Note that the above process for ABI deprecation should not be undertaken +lightly. ABI stability is extreemely important for downstream consumers of the +DPDK, especially when distributed in shared object form. Every effort should be +made to preserve ABI whenever possible. For instance, reorganizing public +structure field for astetic or readability purposes should be avoided as it will +cause ABI breakage. Only significant (e.g. performance) reasons should be seen +as cause to alter ABI.When applying the patch, there are these (minor) warnings:
/home/thomas/projects/dpdk/dpdk/.git/rebase-apply/patch:52: trailing whitespace./home/thomas/projects/dpdk/dpdk/.git/rebase-apply/patch:55: new blank line at EOF.When building the documentation, there are these errors:
make doc-guides-html/home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:4: WARNING: Block quote ends without a blank line; unexpected unindent./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:8: WARNING: Block quote ends without a blank line; unexpected unindent./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:15: WARNING: Block quote ends without a blank line; unexpected unindent./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:18: WARNING: Block quote ends without a blank line; unexpected unindent./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:20: ERROR: Unexpected indentation./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:22: WARNING: Block quote ends without a blank line; unexpected unindent./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:25: ERROR: Unexpected indentation./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:26: WARNING: Block quote ends without a blank line; unexpected unindent./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:29: WARNING: Block quote ends without a blank line; unexpected unindent./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:: WARNING: document isn't included in any toctree
Quoted 2 lines
Please check it.
Again, I guess we have separate definitions of what a plain text file is, but I'll look into it.
Quoted 2 lines
Other comment, what about the additions I suggested about macros and structure renaming?
Considered and answered already. I'm in favor of listing macros and structure changes in the abi document, but I think an exhaustive list isn't needed. If it is, we could spend pages diving into minute. Better to point out the need for abi noticies as patches get posted.
Quoted 3 lines
Neil, we expect that you consider comments done previously and that you test your patch. Otherwise, we are losing time in useless reviews.
Thomas, I have considered your comments, I simply don't agree with all of them, and I made that clear.
As for losing time, you let the first attempt at this
patch rot on the list in 1.7 and have done the same thing for the 1.8 cycle until I yelled for reviews. No doubt when all is said and done here you'll complain because this series likely won't work when you apply it for all the patches you take between the time I posted it and now. So lets be careful about complaining over wasted time.
Neil
Quoted 3 lines
Signature · 1 line
Thomas
A message that is not in the archive (sent off-list or not yet received): 20150121145901.GA18943-bi+AKbBUZKY6gyzm1THtWbp2dZbC/[email protected]
Re: [PATCH v6 4/4] docs: Add ABI documentation
2015-01-21 09:59, Neil Horman:
Quoted 92 lines · Thomas Monjalon
Quoted 8 lines
2015-01-20 16:17, Neil Horman:
Quoted 7 lines
Adding a document describing rudimentary ABI policy and adding notice space for any deprecation announcements
Signed-off-by Neil Horman <[email protected]>CC Thomas Monjalon <[email protected]>CC "Richardson, Bruce" <[email protected]>Quoted 9 lines
Quoted 6 lines
---
Change notes:v5) Updated documentation to add notes from Thomas M.
v6) Moved abi.txt to
guides/rel_notes/abi.rstYou didn't integrate this file in the index.
Shiobahn indicated that its just a plain text file, so I left it as a plain text file. I guess we have different definitions of plain text files.
Quoted 11 lines
[...]
Quoted 9 lines
doc/guides/rel_notes/abi.rst new file +6
-0@@ -0,0 +1,38 @@ +ABI policy +========== + ABI versions are set at the time of major release labeling, and ABI may +change multiple times between the last labeling and the HEAD label of the git +tree without warning +Quoted 9 lines
doc/guides/rel_notes/abi.rst line 12
Quoted 6 lines
doc/guides/rel_notes/abi.rst new file +6
-0+ ABI versions, once released are available until such time as their +deprecation has been noted here for at least one major release cycle, after it +has been tagged. E.g. the ABI for DPDK 1.8 is shipped, and then the decision to +remove it is made during the development of DPDK 1.9. The decision will be +recorded here, shipped with the DPDK 1.9 release, and actually removed when DPDK +1.10 ships.As previously said, speaking about 2.0/2.1 would be more coherent.
As previously mentioned, I really don't see this as relevant, as it will be out of date within a release, and I think we can agree, no one is going to update this paragraph every release.
Quoted 41 lines
Quoted 12 lines
doc/guides/rel_notes/abi.rst new file +12
-0+ + ABI versions may be deprecated in whole, or in part as needed by a given +update. + + Some ABI changes may be too significant to reasonably maintain multiple +versions of. In those events ABI's may be updated without backward +compatibility provided. The requirements for doing so are: + 1) At least 3 acknoweldgements of the need on the dpdk.org + 2) A full deprecation cycle must be made to offer downstream consumers +sufficient warning of the change. E.g. if dpdk 2.0 is under development when +the change is proposed, a deprecation notice must be added to this file, and +released with dpdk 2.0. Then the change may be incorporated for dpdk 2.1doc/guides/rel_notes/abi.rst line 34
Quoted 10 lines
doc/guides/rel_notes/abi.rst new file +10
-0+ 3) The LIBABIVER variable in the makefilei(s) where the ABI changes are +incorporated must be incremented in parallel with the ABI changes themselves + + Note that the above process for ABI deprecation should not be undertaken +lightly. ABI stability is extreemely important for downstream consumers of the +DPDK, especially when distributed in shared object form. Every effort should be +made to preserve ABI whenever possible. For instance, reorganizing public +structure field for astetic or readability purposes should be avoided as it will +cause ABI breakage. Only significant (e.g. performance) reasons should be seen +as cause to alter ABI.When applying the patch, there are these (minor) warnings:
/home/thomas/projects/dpdk/dpdk/.git/rebase-apply/patch:52: trailing whitespace./home/thomas/projects/dpdk/dpdk/.git/rebase-apply/patch:55: new blank line at EOF.When building the documentation, there are these errors:
make doc-guides-html/home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:4: WARNING: Block quote ends without a blank line; unexpected unindent./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:8: WARNING: Block quote ends without a blank line; unexpected unindent./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:15: WARNING: Block quote ends without a blank line; unexpected unindent./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:18: WARNING: Block quote ends without a blank line; unexpected unindent./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:20: ERROR: Unexpected indentation./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:22: WARNING: Block quote ends without a blank line; unexpected unindent./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:25: ERROR: Unexpected indentation./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:26: WARNING: Block quote ends without a blank line; unexpected unindent./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:29: WARNING: Block quote ends without a blank line; unexpected unindent./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:: WARNING: document isn't included in any toctreeQuoted 2 lines
Please check it.
Again, I guess we have separate definitions of what a plain text file is, but I'll look into it.
Quoted 6 lines
Quoted 2 lines
Other comment, what about the additions I suggested about macros and structure renaming?
Considered and answered already. I'm in favor of listing macros and structure changes in the abi document, but I think an exhaustive list isn't needed. If it is, we could spend pages diving into minute. Better to point out the need for abi noticies as patches get posted.
I'm afraid you don't understand what I'm saying. Copy/paste:
"No, I was suggesting to explain in this doc that macro removal must be announced with a deprecation notice,
and that in case structure must be reworked, the name must change if we want to preserve ABI compatibility with old structure."
Rewording: if you agree with this policy, please add it in this document.
Quoted 9 lines
Quoted 3 lines
Neil, we expect that you consider comments done previously and that you test your patch. Otherwise, we are losing time in useless reviews.
Thomas, I have considered your comments, I simply don't agree with all of them, and I made that clear.
As for losing time, you let the first attempt at this
patch rot on the list in 1.7 and have done the same thing for the 1.8 cycle until I yelled for reviews.
Now, I'm really upset of your wrong assumptions.
You sent your first proposal on september, during 1.8 cycle, not 1.7 ! And during this cycle, the decision was to postpone it for 2.0 release.
I don't understand what's wrong with you.
You don't make any effort to understand what we are saying and
you make no effort to understand what is this doc directory.
You prefer crying that your patch is not applied.
And I still don't understand if you are willing to work on a test tool for ABI?
Quoted 4 lines
No doubt when all is said and done here you'll
complain because this series likely won't work when you apply it for all the patches you take between the time I posted it and now. So lets be careful about complaining over wasted time.
Note that I'm sure we can do some good work together. And I'd prefer more pleasant discussions. Life is too short to have this kind of conflict.
Signature · 1 line
Thomas
Re: [PATCH v6 4/4] docs: Add ABI documentation
Quoted 100 lines · Thomas Monjalon
2015-01-21 09:59, Neil Horman:
Quoted 92 lines · Thomas Monjalon
Quoted 8 lines
2015-01-20 16:17, Neil Horman:
Quoted 7 lines
Adding a document describing rudimentary ABI policy and adding notice space for any deprecation announcements
Signed-off-by Neil Horman <[email protected]>CC Thomas Monjalon <[email protected]>CC "Richardson, Bruce" <[email protected]>Quoted 9 lines
Quoted 6 lines
---
Change notes:v5) Updated documentation to add notes from Thomas M.
v6) Moved abi.txt to
guides/rel_notes/abi.rstYou didn't integrate this file in the index.
Shiobahn indicated that its just a plain text file, so I left it as a plain text file. I guess we have different definitions of plain text files.
Quoted 11 lines
[...]
Quoted 9 lines
doc/guides/rel_notes/abi.rst new file +6
-0@@ -0,0 +1,38 @@ +ABI policy +========== + ABI versions are set at the time of major release labeling, and ABI may +change multiple times between the last labeling and the HEAD label of the git +tree without warning +Quoted 9 lines
doc/guides/rel_notes/abi.rst line 12
Quoted 6 lines
doc/guides/rel_notes/abi.rst new file +6
-0+ ABI versions, once released are available until such time as their +deprecation has been noted here for at least one major release cycle, after it +has been tagged. E.g. the ABI for DPDK 1.8 is shipped, and then the decision to +remove it is made during the development of DPDK 1.9. The decision will be +recorded here, shipped with the DPDK 1.9 release, and actually removed when DPDK +1.10 ships.As previously said, speaking about 2.0/2.1 would be more coherent.
As previously mentioned, I really don't see this as relevant, as it will be out of date within a release, and I think we can agree, no one is going to update this paragraph every release.
Quoted 41 lines
Quoted 12 lines
doc/guides/rel_notes/abi.rst new file +12
-0+ + ABI versions may be deprecated in whole, or in part as needed by a given +update. + + Some ABI changes may be too significant to reasonably maintain multiple +versions of. In those events ABI's may be updated without backward +compatibility provided. The requirements for doing so are: + 1) At least 3 acknoweldgements of the need on the dpdk.org + 2) A full deprecation cycle must be made to offer downstream consumers +sufficient warning of the change. E.g. if dpdk 2.0 is under development when +the change is proposed, a deprecation notice must be added to this file, and +released with dpdk 2.0. Then the change may be incorporated for dpdk 2.1doc/guides/rel_notes/abi.rst line 34
Quoted 10 lines
doc/guides/rel_notes/abi.rst new file +10
-0+ 3) The LIBABIVER variable in the makefilei(s) where the ABI changes are +incorporated must be incremented in parallel with the ABI changes themselves + + Note that the above process for ABI deprecation should not be undertaken +lightly. ABI stability is extreemely important for downstream consumers of the +DPDK, especially when distributed in shared object form. Every effort should be +made to preserve ABI whenever possible. For instance, reorganizing public +structure field for astetic or readability purposes should be avoided as it will +cause ABI breakage. Only significant (e.g. performance) reasons should be seen +as cause to alter ABI.When applying the patch, there are these (minor) warnings:
/home/thomas/projects/dpdk/dpdk/.git/rebase-apply/patch:52: trailing whitespace./home/thomas/projects/dpdk/dpdk/.git/rebase-apply/patch:55: new blank line at EOF.When building the documentation, there are these errors:
make doc-guides-html/home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:4: WARNING: Block quote ends without a blank line; unexpected unindent./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:8: WARNING: Block quote ends without a blank line; unexpected unindent./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:15: WARNING: Block quote ends without a blank line; unexpected unindent./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:18: WARNING: Block quote ends without a blank line; unexpected unindent./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:20: ERROR: Unexpected indentation./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:22: WARNING: Block quote ends without a blank line; unexpected unindent./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:25: ERROR: Unexpected indentation./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:26: WARNING: Block quote ends without a blank line; unexpected unindent./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:29: WARNING: Block quote ends without a blank line; unexpected unindent./home/thomas/projects/dpdk/dpdk/doc/guides/rel_notes/abi.rst:: WARNING: document isn't included in any toctreeQuoted 2 lines
Please check it.
Again, I guess we have separate definitions of what a plain text file is, but I'll look into it.
Quoted 6 lines
Quoted 2 lines
Other comment, what about the additions I suggested about macros and structure renaming?
Considered and answered already. I'm in favor of listing macros and structure changes in the abi document, but I think an exhaustive list isn't needed. If it is, we could spend pages diving into minute. Better to point out the need for abi noticies as patches get posted.
Quoted 7 lines
I'm afraid you don't understand what I'm saying. Copy/paste:
"No, I was suggesting to explain in this doc that macro removal must be announced with a deprecation notice,
and that in case structure must be reworked, the name must change if we want to preserve ABI compatibility with old structure."
Rewording: if you agree with this policy, please add it in this document.
Yes, we're on the same page regarding what your asking, I just don't agree that it needs to be explicitly called out. I thought I was clear on that. Appaerntly not however, so if it will settle the point, I'll just add it.
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
Neil, we expect that you consider comments done previously and that you test your patch. Otherwise, we are losing time in useless reviews.
Thomas, I have considered your comments, I simply don't agree with all of them, and I made that clear.
Quoted 8 lines
Quoted 3 lines
As for losing time, you let the first attempt at this
patch rot on the list in 1.7 and have done the same thing for the 1.8 cycle until I yelled for reviews.Now, I'm really upset of your wrong assumptions.
You sent your first proposal on september, during 1.8 cycle, not 1.7 ! And during this cycle, the decision was to postpone it for 2.0 release.
you're missing the point. I apologize for not getting the release numbers right, it should be 1.8 to 2.0 not 1.7 to 1.8 as you note, but that doesn't really matter. The point was 6 months. 6 months this has been sitting around. In that time up to this point I've gotten one review from another devloper on the set, and you indicating that its not ready yet. Then, the day 1.8 released, I reposed the patch series as we agreed, and its taken almost 5 weeks before I've gotten any feedback on it, and then its feedback that could have been given 6 months ago (you'll note this patch was initially identical to the version I posted back in september). I think you can understand how I find that frustrating.
Quoted 1 line
I don't understand what's wrong with you.
The above is whats wrong with me. The fact that I can try and try and try to add value to this project so that I can expand its user base, and the best I've thus far been able to receive is indifference. At worst, the indifference is followed by being told that the indifference is tantamount to rejection.
Quoted 3 lines
You don't make any effort to understand what we are saying and you make no effort to understand what is this doc directory. You prefer crying that your patch is not applied.
No effort? How many emails have I written contesting your opinions, presenting supporting evidence, only to be met with assertions? I don't think I'm the one not making an effort here.
Quoted 3 lines
And I still don't understand if you are willing to work on a test tool for ABI?
From this email
http://dpdk.org/ml/archives/dev/2015-January/011306.html
=======================================================
Quoted 4 lines
Yes, it should be another patchset.
Do you plan to work on it? It would be very convenient for developpers and maintainers to test ABI compatibility.
Gladly, if we can get this in. I think its an important tool.
=========================================================
I'm not sure how thats unclear, but in the event that it wasn't, yes, I will gladly work on such a tool.
Quoted 8 lines
Quoted 4 lines
No doubt when all is said and done here you'll
complain because this series likely won't work when you apply it for all the patches you take between the time I posted it and now. So lets be careful about complaining over wasted time.Note that I'm sure we can do some good work together. And I'd prefer more pleasant discussions. Life is too short to have this kind of conflict.
I agree, and we've done so in the past. I'm sorry if I've upset you, it wasn't my intention. That said, can you see how I might be frustrated by this patch set taking 6 months to get reviewed, only to have commentary made on it that I could have handled back at the beginning of this whole mess?
Participation. Thats really whats needed here. Not just from you, not just from me, everyone, and not just on the items that we consider important to ourselves. Indifference leads to exclusion and frustration.
I'll have another version of this ready soon.
Neil
A message that is not in the archive (sent off-list or not yet received): 20150121194304.GA32617-B26myB8xz7F8NnZeBjwnZQMhkBWG/[email protected]
Re: [PATCH v6 4/4] docs: Add ABI documentation
2015-01-21 14:43, Neil Horman:
Quoted 14 lines · Thomas Monjalon
Quoted 6 lines
2015-01-21 09:59, Neil Horman:
Quoted 4 lines
Considered and answered already. I'm in favor of listing macros and structure changes in the abi document, but I think an exhaustive list isn't needed. If it is, we could spend pages diving into minute. Better to point out the need for abi noticies as patches get posted.
Quoted 7 lines
I'm afraid you don't understand what I'm saying. Copy/paste:
"No, I was suggesting to explain in this doc that macro removal must be announced with a deprecation notice,
and that in case structure must be reworked, the name must change if we want to preserve ABI compatibility with old structure."
Rewording: if you agree with this policy, please add it in this document.
Quoted 3 lines
Yes, we're on the same page regarding what your asking, I just don't agree that it needs to be explicitly called out. I thought I was clear on that. Appaerntly not however, so if it will settle the point, I'll just add it.
OK maybe I didn't explain enough my proposal.
You can disagree but I want to be sure we think about the same thing.
1) Macros are not part of the ABI but can be part of the API.
Such macro removal must be announced in the previous release.
2) Structures are part of the ABI but cannot be versionned as the functions. So an ABI breaking change should be done by cloning the structure in a new one. And the API functions where this structure appears should be cloned and versionned to support new structure while keeping old version.
Maybe that these precisions are confuse and useless.
Now I think I understand what you were saying by "an exhaustive list isn't needed". You mean listing all types of ABI/API breakage like I did with these 2 cases, right? I thought it was related to list of real/effective deprecations.
Quoted 10 lines
Quoted 10 lines
Quoted 9 lines
Quoted 3 lines
Neil, we expect that you consider comments done previously and that you test your patch. Otherwise, we are losing time in useless reviews.
Thomas, I have considered your comments, I simply don't agree with all of them, and I made that clear.
As for losing time, you let the first attempt at this
patch rot on the list in 1.7 and have done the same thing for the 1.8 cycle until I yelled for reviews.
Quoted 7 lines
Quoted 4 lines
Now, I'm really upset of your wrong assumptions.
You sent your first proposal on september, during 1.8 cycle, not 1.7 ! And during this cycle, the decision was to postpone it for 2.0 release.you're missing the point. I apologize for not getting the release numbers right, it should be 1.8 to 2.0 not 1.7 to 1.8 as you note, but that doesn't really matter. The point was 6 months. 6 months this has been sitting around.
No, 5 months. Yes, it's long.
Quoted 7 lines
In that time up to this point I've gotten one review from another devloper on the set, and you indicating that its not ready yet. Then, the day 1.8 released, I reposed the patch series as we agreed, and its taken almost 5 weeks before I've gotten any feedback on it, and then its feedback that could have been given 6 months ago (you'll note this patch was initially identical to the version I posted back in september). I think you can understand how I find that frustrating.
You must understand that I'd prefer more people feel involved by this change. It would be saner to have this policy reviewed and acked by many developpers. As it was announced on the roadmap for 2.0, this first month of the cycle was ideal to have more discussions on how this policy can be precisely applied. You only received my comments (which may be useless) and it's now time to apply this important patchset.
Quoted 7 lines
Quoted 1 line
I don't understand what's wrong with you.
The above is whats wrong with me. The fact that I can try and try and try to add value to this project so that I can expand its user base, and the best I've thus far been able to receive is indifference. At worst, the indifference is followed by being told that the indifference is tantamount to rejection.
Quoted 6 lines
Quoted 3 lines
You don't make any effort to understand what we are saying and you make no effort to understand what is this doc directory. You prefer crying that your patch is not applied.
No effort? How many emails have I written contesting your opinions, presenting supporting evidence, only to be met with assertions? I don't think I'm the one not making an effort here.
At the end, I accept your point of view and will apply the patchset.
Quoted 10 lines
Quoted 2 lines
And I still don't understand if you are willing to work on a test tool for ABI?
From this email
http://dpdk.org/ml/archives/dev/2015-January/011306.html=======================================================
Quoted 4 lines
Yes, it should be another patchset.
Do you plan to work on it? It would be very convenient for developpers and maintainers to test ABI compatibility.
Quoted 5 lines
Gladly, if we can get this in. I think its an important tool.
=========================================================I'm not sure how thats unclear, but in the event that it wasn't, yes, I will gladly work on such a tool.
OK thanks, it would be helpful to have it in release 2.0.
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
No doubt when all is said and done here you'll
complain because this series likely won't work when you apply it for all the patches you take between the time I posted it and now. So lets be careful about complaining over wasted time.
Quoted 7 lines
Quoted 3 lines
Note that I'm sure we can do some good work together. And I'd prefer more pleasant discussions. Life is too short to have this kind of conflict.
I agree, and we've done so in the past. I'm sorry if I've upset you, it wasn't my intention. That said, can you see how I might be frustrated by this patch set taking 6 months to get reviewed, only to have commentary made on it that I could have handled back at the beginning of this whole mess?
Yes, I was hoping more people would participate in this discussion.
Quoted 3 lines
Participation. Thats really whats needed here. Not just from you, not just from me, everyone, and not just on the items that we consider important to ourselves. Indifference leads to exclusion and frustration.
You're totally right. Participation is the key.
Sometimes, we have to *carefully* review patches whose we have no interest. And maybe someone else will do the same thing for a patch we care. This is a message ;)
Signature · 1 line
Thomas
Re: [PATCH v6 4/4] docs: Add ABI documentation
Quoted 95 lines · Thomas Monjalon
2015-01-21 14:43, Neil Horman:
Quoted 14 lines · Thomas Monjalon
Quoted 6 lines
2015-01-21 09:59, Neil Horman:
Quoted 4 lines
Considered and answered already. I'm in favor of listing macros and structure changes in the abi document, but I think an exhaustive list isn't needed. If it is, we could spend pages diving into minute. Better to point out the need for abi noticies as patches get posted.
Quoted 7 lines
I'm afraid you don't understand what I'm saying. Copy/paste:
"No, I was suggesting to explain in this doc that macro removal must be announced with a deprecation notice,
and that in case structure must be reworked, the name must change if we want to preserve ABI compatibility with old structure."
Rewording: if you agree with this policy, please add it in this document.Quoted 3 lines
Yes, we're on the same page regarding what your asking, I just don't agree that it needs to be explicitly called out. I thought I was clear on that. Appaerntly not however, so if it will settle the point, I'll just add it.
OK maybe I didn't explain enough my proposal.
You can disagree but I want to be sure we think about the same thing.1) Macros are not part of the ABI but can be part of the API.
Such macro removal must be announced in the previous release.
2) Structures are part of the ABI but cannot be versionned as the functions. So an ABI breaking change should be done by cloning the structure in a new one. And the API functions where this structure appears should be cloned and versionned to support new structure while keeping old version.Maybe that these precisions are confuse and useless.
Now I think I understand what you were saying by "an exhaustive list isn't needed". You mean listing all types of ABI/API breakage like I did with these 2 cases, right? I thought it was related to list of real/effective deprecations.Quoted 10 lines
Quoted 10 lines
Quoted 9 lines
Quoted 3 lines
Neil, we expect that you consider comments done previously and that you test your patch. Otherwise, we are losing time in useless reviews.
Thomas, I have considered your comments, I simply don't agree with all of them, and I made that clear.
As for losing time, you let the first attempt at this
patch rot on the list in 1.7 and have done the same thing for the 1.8 cycle until I yelled for reviews.Quoted 7 lines
Quoted 4 lines
Now, I'm really upset of your wrong assumptions.
You sent your first proposal on september, during 1.8 cycle, not 1.7 ! And during this cycle, the decision was to postpone it for 2.0 release.you're missing the point. I apologize for not getting the release numbers right, it should be 1.8 to 2.0 not 1.7 to 1.8 as you note, but that doesn't really matter. The point was 6 months. 6 months this has been sitting around.
No, 5 months. Yes, it's long.
Quoted 7 lines
In that time up to this point I've gotten one review from another devloper on the set, and you indicating that its not ready yet. Then, the day 1.8 released, I reposed the patch series as we agreed, and its taken almost 5 weeks before I've gotten any feedback on it, and then its feedback that could have been given 6 months ago (you'll note this patch was initially identical to the version I posted back in september). I think you can understand how I find that frustrating.
You must understand that I'd prefer more people feel involved by this change. It would be saner to have this policy reviewed and acked by many developpers. As it was announced on the roadmap for 2.0, this first month of the cycle was ideal to have more discussions on how this policy can be precisely applied. You only received my comments (which may be useless) and it's now time to apply this important patchset.
Quoted 7 lines
Quoted 1 line
I don't understand what's wrong with you.
The above is whats wrong with me. The fact that I can try and try and try to add value to this project so that I can expand its user base, and the best I've thus far been able to receive is indifference. At worst, the indifference is followed by being told that the indifference is tantamount to rejection.
Quoted 6 lines
Quoted 3 lines
You don't make any effort to understand what we are saying and you make no effort to understand what is this doc directory. You prefer crying that your patch is not applied.
No effort? How many emails have I written contesting your opinions, presenting supporting evidence, only to be met with assertions? I don't think I'm the one not making an effort here.
At the end, I accept your point of view and will apply the patchset.
Quoted 10 lines
Quoted 2 lines
And I still don't understand if you are willing to work on a test tool for ABI?
From this email
http://dpdk.org/ml/archives/dev/2015-January/011306.html=======================================================
Quoted 4 lines
Yes, it should be another patchset.
Do you plan to work on it? It would be very convenient for developpers and maintainers to test ABI compatibility.
Quoted 8 lines
Quoted 5 lines
Gladly, if we can get this in. I think its an important tool.
=========================================================I'm not sure how thats unclear, but in the event that it wasn't, yes, I will gladly work on such a tool.
OK thanks, it would be helpful to have it in release 2.0.
Its not going to make 2.0, its a big undertaking. If you wanted it in 2.0 that would have been something to bring up 5 months ago.
PATCH v7 1/26 version: 2.0.0-rc0
In reply to a message not in the archiveFrom: Thomas Monjalon <[email protected]>
--- lib/librte_eal/common/include/rte_version.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
lib/librte_eal/common/include/rte_version.h +4 -4
@@ -54,12 +54,12 @@ extern "C" {/** * Major version number i.e. the x in x.y.z */ -#define RTE_VER_MAJOR 1 +#define RTE_VER_MAJOR 2/** * Minor version number i.e. the y in x.y.z */ -#define RTE_VER_MINOR 8 +#define RTE_VER_MINOR 0/** * Patch level number i.e. the z in x.y.z
@@ -69,14 +69,14 @@ extern "C" {/** * Extra string to be appended to version number */ -#define RTE_VER_SUFFIX "" +#define RTE_VER_SUFFIX "-rc"/** * Patch release number * 0-15 = release candidates * 16 = release */ -#define RTE_VER_PATCH_RELEASE 16 +#define RTE_VER_PATCH_RELEASE 0/** * Macro to compute a version number usable for comparisons
Signature · 1 line
2.1.0
A message that is not in the archive (sent off-list or not yet received): 1421873870-21754-1-git-send-email-nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org
PATCH v7 2/26 mk: fix link to static combined library
When building static archives with CONFIG_COMBINED_LIBS, we still need to specify --whole-archive to pull in all the proper constructors.
--- mk/rte.app.mk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
mk/rte.app.mk +4 -4
@@ -61,6 +61,10 @@ ifeq ($(NO_AUTOLIBS),) LDLIBS += --whole-archive +ifeq ($(CONFIG_RTE_BUILD_COMBINE_LIBS),y) +LDLIBS += -l$(RTE_LIBNAME) +endif + ifeq ($(CONFIG_RTE_BUILD_COMBINE_LIBS),n) ifeq ($(CONFIG_RTE_LIBRTE_DISTRIBUTOR),y)
@@ -251,10 +255,6 @@ build: _postbuild exe2cmd = $(strip $(call dotfile,$(patsubst %,%.cmd,$(1)))) -ifeq ($(CONFIG_RTE_BUILD_COMBINE_LIBS),y) -LDLIBS += -l$(RTE_LIBNAME) -endif - ifeq ($(LINK_USING_CC),1) override EXTRA_LDFLAGS := $(call linkerprefix,$(EXTRA_LDFLAGS)) O_TO_EXE = $(CC) $(CFLAGS) $(LDFLAGS_$(@)) \
Signature · 1 line
2.1.0
PATCH v7 3/26 eal: fix check for power of 2 in 0 case
In reply to a message not in the archiveFrom: Ravi Kerur <[email protected]>
rte_is_power_of_2 returns true for 0 and 0 is not power_of_2. Fix by checking for n.
--- lib/librte_eal/common/include/rte_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_eal/common/include/rte_common.h +1 -1
@@ -203,7 +203,7 @@ extern int RTE_BUILD_BUG_ON_detected_error;static inline int rte_is_power_of_2 (uint32_t n) { -return ((n-1 ) & n) ==0 ; +return n && !(n & (n -1 )); }/**
Signature · 1 line
2.1.0
PATCH v7 4/26 ethdev: fix missing parenthesis in mac check
In reply to a message not in the archiveFrom: Pawel Wodkowski <[email protected]>
Fix check introduced in commit 4bdefaade6d1 (VMDQ enhancements).
--- lib/librte_ether/rte_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_ether/rte_ethdev.c +1 -1
@@ -814,7 +814,7 @@ rte_eth_dev_config_restore(uint8_t port_id)/* add address to the hardware */ if (*dev->dev_ops->mac_addr_add && - dev->data->mac_pool_sel[i] & (1ULL << pool)) + (dev->data->mac_pool_sel[i] & (1ULL << pool))) (*dev->dev_ops->mac_addr_add)(dev, &addr, i, pool);else { PMD_DEBUG_TRACE("port %d: MAC address array not supported\n",
Signature · 1 line
2.1.0
PATCH v7 5/26 mem: search only dpdk hugetlbfs maps
In reply to a message not in the archiveFrom: Vlad Zolotarov <vladz-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org>
When scanning the hugetlbfs maps search only for the DPDK maps. This will allow the application create its own hugetlbfs mappings and use the DPDK facilities on the same hugetlbfs mount point.
--- lib/librte_eal/linuxapp/eal/eal_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_eal/linuxapp/eal/eal_memory.c +1 -1
@@ -611,7 +611,7 @@ find_numasocket(struct hugepage_file *hugepg_tbl, struct hugepage_info *hpi) }snprintf (hugedir_str,sizeof (hugedir_str), -"%s/" , hpi->hugedir); +"%s/%s" , hpi->hugedir, internal_config.hugefile_prefix);/* parse numa map */ while (fgets (buf,sizeof (buf), f) !=NULL ) {
Signature · 1 line
2.1.0
PATCH v7 6/26 log: remove unnecessary stubs
In reply to a message not in the archiveFrom: Stephen Hemminger <[email protected]>
The read/seek/close stub functions are unnecessary on the log stream. Per glibc fopencookie man page:
cookie_read_function_t *read
If *read is a null pointer, then reads from the custom stream always return end of file.
cookie_seek_function_t *seek
If *seek is a null pointer, then it is not possible to perform seek operations on the stream.
cookie_close_function_t *close
If *close is NULL, then no special action is performed when the stream is closed.
--- lib/librte_eal/linuxapp/eal/eal_log.c | 50 ----------------------------------- 1 file changed, 50 deletions(-)
lib/librte_eal/linuxapp/eal/eal_log.c +0 -50
@@ -83,33 +83,8 @@ console_log_write(__attribute__((unused)) void *c, const char *buf, size_t size)return ret; } -static ssize_t -console_log_read (__attribute__((unused))void *c, - __attribute__((unused))char *buf, - __attribute__((unused))size_t size) -{ -return 0 ; -} - -static int -console_log_seek (__attribute__((unused))void *c, - __attribute__((unused))off64_t *offset, - __attribute__((unused))int whence) -{ -return -1 ; -} - -static int -console_log_close (__attribute__((unused))void *c) -{ -return 0 ; -} -static cookie_io_functions_t console_log_func = { - .read = console_log_read, .write = console_log_write, - .seek = console_log_seek, - .close = console_log_close };/*
@@ -150,33 +125,8 @@ early_log_write(__attribute__((unused)) void *c, const char *buf, size_t size)return ret; } -static ssize_t -early_log_read (__attribute__((unused))void *c, - __attribute__((unused))char *buf, - __attribute__((unused))size_t size) -{ -return 0 ; -} - -static int -early_log_seek (__attribute__((unused))void *c, - __attribute__((unused))off64_t *offset, - __attribute__((unused))int whence) -{ -return -1 ; -} - -static int -early_log_close (__attribute__((unused))void *c) -{ -return 0 ; -} -static cookie_io_functions_t early_log_func = { - .read = early_log_read, .write = early_log_write, - .seek = early_log_seek, - .close = early_log_close };static FILE *early_log_stream;
Signature · 1 line
2.1.0
PATCH v7 7/26 vfio: avoid enabling while the module is not loaded
In reply to a message not in the archiveFrom: Michael Qiu <[email protected]>
When vfio module is not loaded when kernel support vfio feature, the routine still try to open the container to get file description.
This action is not safe, and of course got error messages:
EAL: Detected 40 lcore(s)
EAL: unsupported IOMMU type!
EAL: VFIO support could not be initialized
EAL: Setting up memory...
This may make user confuse, this patch make it reasonable and much more smooth to user.
--- lib/librte_eal/common/eal_private.h | 14 ++++++++++++++ lib/librte_eal/linuxapp/eal/eal.c | 27 +++++++++++++++++++++++++++ lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 24 ++++++++++++++++++++++-- 3 files changed, 63 insertions(+), 2 deletions(-)
lib/librte_eal/common/eal_private.h +14 -0
@@ -203,4 +203,18 @@ int rte_eal_alarm_init(void);*/ int rte_eal_dev_init (void ); +/** +* Function is to check if the kernel module(like, vfio, vfio_iommu_type1, +* etc.) loaded. +* +* @param module_name +* The module's name which need to be checked +* +* @return +* -1 means some error happens(NULL pointer or open failure) +* 0 means the module not loaded +* 1 means the module loaded +*/ +int rte_eal_check_module (const char *module_name); +#endif /* _EAL_PRIVATE_H_ */
lib/librte_eal/linuxapp/eal/eal.c +27 -0
@@ -859,3 +859,30 @@ int rte_eal_has_hugepages(void) {return ! internal_config.no_hugetlbfs; } + +int +rte_eal_check_module (const char *module_name) +{ +char mod_name[30 ];/* Any module names can be longer than 30 bytes? */ +int ret =0 ; + +if (NULL == module_name) +return -1 ; + +FILE *fd =fopen ("/proc/modules" ,"r" ); +if (NULL == fd) { +RTE_LOG (ERR ,EAL ,"Open /proc/modules failed!" +" error %i (%s)\n" , errno,strerror (errno)); +return -1 ; + } +while (!feof (fd)) { +fscanf (fd,"%29s %*[^\n]" , mod_name); +if (!strcmp (mod_name, module_name)) { + ret =1 ; +break ; + } + } +fclose (fd); + +return ret; +}
lib/librte_eal/linuxapp/eal/eal_pci_vfio.c +22 -2
@@ -44,6 +44,7 @@#include <rte_tailq.h> #include <rte_eal_memconfig.h> #include <rte_malloc.h> +#include <eal_private.h> #include "eal_filesystem.h" #include "eal_pci_init.h"
@@ -340,9 +341,11 @@ pci_vfio_get_container_fd(void)if (ret !=1 ) {if (ret <0 )RTE_LOG (ERR ,EAL ," could not get IOMMU type, " -"error %i (%s)\n" , errno,strerror (errno)); +"error %i (%s)\n" , errno, +strerror (errno));else -RTE_LOG (ERR ,EAL ," unsupported IOMMU type!\n" ); +RTE_LOG (ERR ,EAL ," unsupported IOMMU type " +"detected in VFIO\n" );close (vfio_container_fd);return -1 ; }
@@ -783,11 +786,28 @@ pci_vfio_enable(void) {/* initialize group list */ int i; +int module_vfio_type1;for (i =0 ; i <VFIO_MAX_GROUPS ; i++) { vfio_cfg.vfio_groups[i].fd =-1 ; vfio_cfg.vfio_groups[i].group_no =-1 ; } + + module_vfio_type1 =rte_eal_check_module ("vfio_iommu_type1" ); + +/* return error directly */ +if (module_vfio_type1 ==-1 ) { +RTE_LOG (INFO ,EAL ,"Could not get loaded module details!\n" ); +return -1 ; + } + +/* return 0 if VFIO modules not loaded */ +if (module_vfio_type1 ==0 ) { +RTE_LOG (INFO ,EAL ,"VFIO modules not all loaded, " +"skip VFIO support...\n" ); +return 0 ; + } + vfio_cfg.vfio_container_fd =pci_vfio_get_container_fd ();/* check if we have VFIO driver enabled */
Signature · 1 line
2.1.0
PATCH v7 8/26 bond: fix vlan flag interpretation
In reply to a message not in the archiveFrom: Declan Doherty <[email protected]>
This patch contains a fix for link bonding handling of vlan tagged packets in mode 3 and 5. Currently xmit_slave_hash function misinterprets the PKT_RX_VLAN_PKT flag to mean that there is a vlan tag within the packet when in actually means that there is a valid entry in the vlan_tci field in the mbuf.
- Fixed VLAN tag support in hashing functions.
- Adds support for TCP in layer 4 header hashing.
- Splits transmit hashing function into separate functions for each policy to reduce branching and to make the code clearer.
- Fixed incorrect flag set in test application packet generator.
Test report: http://dpdk.org/ml/archives/dev/2015-January/010792.html
--- app/test/packet_burst_generator.c | 2 +- lib/librte_net/rte_ip.h | 8 ++ lib/librte_pmd_bond/rte_eth_bond_api.c | 8 ++ lib/librte_pmd_bond/rte_eth_bond_pmd.c | 162 ++++++++++++++++------------- lib/librte_pmd_bond/rte_eth_bond_private.h | 15 +++ 5 files changed, 122 insertions(+), 73 deletions(-)
app/test/packet_burst_generator.c +1 -1
@@ -97,7 +97,7 @@ initialize_eth_header(struct ether_hdr *eth_hdr, struct ether_addr *src_mac, vhdr->eth_proto =rte_cpu_to_be_16 (ETHER_TYPE_IPv4); vhdr->vlan_tci = van_id; }else { - eth_hdr->ether_type =rte_cpu_to_be_16 (ETHER_TYPE_VLAN ); + eth_hdr->ether_type =rte_cpu_to_be_16 (ETHER_TYPE_IPv4); } }
lib/librte_net/rte_ip.h +8 -0
@@ -110,6 +110,14 @@ struct ipv4_hdr { (((c) & 0xff) << 8) | \ ((d) & 0xff)) +/** Internet header length mask for version_ihl field */ +#define IPV4_HDR_IHL_MASK (0x0f) +/** +* Internet header length field multiplier (IHL field specifies overall header +* length in number of 4-byte words) +*/ +#define IPV4_IHL_MULTIPLIER (4) +/* Fragment Offset * Flags. */ #define IPV4_HDR_DF_SHIFT 14#define IPV4_HDR_MF_SHIFT 13
lib/librte_pmd_bond/rte_eth_bond_api.c +8 -0
@@ -272,6 +272,7 @@ rte_eth_bond_create(const char *name, uint8_t mode, uint8_t socket_id) internals->mode =BONDING_MODE_INVALID ; internals->current_primary_port =0 ; internals->balance_xmit_policy =BALANCE_XMIT_POLICY_LAYER2 ; + internals->xmit_hash = xmit_l2_hash; internals->user_defined_mac =0 ; internals->link_props_set =0 ;
@@ -714,9 +715,16 @@ rte_eth_bond_xmit_policy_set(uint8_t bonded_port_id, uint8_t policy)switch (policy) {case BALANCE_XMIT_POLICY_LAYER2 : + internals->balance_xmit_policy = policy; + internals->xmit_hash = xmit_l2_hash; +break ;case BALANCE_XMIT_POLICY_LAYER23 : + internals->balance_xmit_policy = policy; + internals->xmit_hash = xmit_l23_hash; +break ;case BALANCE_XMIT_POLICY_LAYER34 : internals->balance_xmit_policy = policy; + internals->xmit_hash = xmit_l34_hash;break ;default :
lib/librte_pmd_bond/rte_eth_bond_pmd.c +90 -72
215 lines not on this page · raw message
lib/librte_pmd_bond/rte_eth_bond_private.h +15 -0
@@ -108,6 +108,9 @@ struct bond_slave_details {struct ether_addr persisted_mac_addr; }; + +typedef uint16_t (*xmit_hash_t )(const struct rte_mbuf *buf,uint8_t slave_count); +/** Link Bonding PMD device private configuration Structure */ struct bond_dev_private {uint8_t port_id;/**< Port Id of Bonded Port */
@@ -122,6 +125,9 @@ struct bond_dev_private {uint8_t balance_xmit_policy;/**< Transmit policy - l2 / l23 / l34 for operation in balance mode */ +xmit_hash_t xmit_hash; +/**< Transmit policy hash function */ +uint8_t user_defined_mac;/**< Flag for whether MAC address is user defined or not */ uint8_t promiscuous_en;
@@ -225,6 +231,15 @@ void slave_add(struct bond_dev_private *internals, struct rte_eth_dev *slave_eth_dev); +uint16_t +xmit_l2_hash (const struct rte_mbuf *buf,uint8_t slave_count); + +uint16_t +xmit_l23_hash (const struct rte_mbuf *buf,uint8_t slave_count); + +uint16_t +xmit_l34_hash (const struct rte_mbuf *buf,uint8_t slave_count); +void bond_ethdev_primary_set (struct bond_dev_private *internals,uint8_t slave_port_id);
Signature · 1 line
2.1.0
PATCH v7 9/26 app/testpmd: remove duplicated function for list parsing
In reply to a message not in the archiveFrom: Bruce Richardson <[email protected]>
There were two static functions called "parse_item_list" in testpmd app. Since one was a superset of the functionality of the other, we can collapse the two calls down into a single one, shared between the two C files.
--- app/test-pmd/cmdline.c | 2 +- app/test-pmd/parameters.c | 49 ++--------------------------------------------- app/test-pmd/testpmd.h | 3 +++ 3 files changed, 6 insertions(+), 48 deletions(-)
app/test-pmd/cmdline.c +1 -1
@@ -2224,7 +2224,7 @@ cmdline_parse_inst_t cmd_stop = {/* *** SET CORELIST and PORTLIST CONFIGURATION *** */ -static unsigned int +unsigned int parse_item_list (char * str,const char * item_name,unsigned int max_items,unsigned int *parsed_items,int check_unique_values) {
app/test-pmd/parameters.c +2 -47
61 lines not on this page · raw message
app/test-pmd/testpmd.h +3 -0
@@ -446,6 +446,9 @@ port_pci_reg_write(struct rte_port *port, uint32_t reg_off, uint32_t reg_v)port_pci_reg_write (&ports[(pt_id)], (reg_off), (reg_value)) /* Prototypes */ +unsigned int parse_item_list (char * str,const char * item_name, +unsigned int max_items, +unsigned int *parsed_items,int check_unique_values);void launch_args_parse (int argc,char ** argv);void prompt (void );void nic_stats_display (portid_t port_id);
Signature · 1 line
2.1.0
PATCH v7 10/26 nic_uio: fix thread structure compatibility for future FreeBSD
In reply to a message not in the archiveFrom: Bruce Richardson <[email protected]>
Replace d_thread_t with struct thread in nic_uio.
Ref: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196691
Quote:
"The d_thread_t typedef is a compat shim to support FreeBSD 4.x. I'm planning to remove this shim from 11 and dpdk is very unlikely to ever be ported to 4.x.
If it does it will need far more changes than just d_thread_t"
--- lib/librte_eal/bsdapp/nic_uio/nic_uio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
lib/librte_eal/bsdapp/nic_uio/nic_uio.c +2 -2
@@ -175,13 +175,13 @@ nic_uio_mmap_single(struct cdev *cdev, vm_ooffset_t *offset, vm_size_t size,int -nic_uio_open (struct cdev *dev,int oflags,int devtype,d_thread_t *td) +nic_uio_open (struct cdev *dev,int oflags,int devtype,struct thread *td) {return 0 ; }int -nic_uio_close (struct cdev *dev,int fflag,int devtype,d_thread_t *td) +nic_uio_close (struct cdev *dev,int fflag,int devtype,struct thread *td) {return 0 ; }
Signature · 1 line
2.1.0
Re: [PATCH v7 01/26] version: 2.0.0-rc0
In reply to a message not in the archiveQuoted 47 lines · Neil Horman
From: Thomas Monjalon <[email protected]>
Signed-off-by Thomas Monjalon <[email protected]>--- lib/librte_eal/common/include/rte_version.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)lib/librte_eal/common/include/rte_version.h +4
-4@@ -54,12 +54,12 @@ extern "C" {/** * Major version number i.e. the x in x.y.z */ -#define RTE_VER_MAJOR 1 +#define RTE_VER_MAJOR 2/** * Minor version number i.e. the y in x.y.z */ -#define RTE_VER_MINOR 8 +#define RTE_VER_MINOR 0/** * Patch level number i.e. the z in x.y.z @@ -69,14 +69,14 @@ extern "C" {/** * Extra string to be appended to version number */ -#define RTE_VER_SUFFIX "" +#define RTE_VER_SUFFIX "-rc"/** * Patch release number * 0-15 = release candidates * 16 = release */ -#define RTE_VER_PATCH_RELEASE 16 +#define RTE_VER_PATCH_RELEASE 0/** * Macro to compute a version number usable for comparisons Signature · 1 line
2.1.0
Shoot, sorry, exuse this post, something just went sideways with my git tree here
Neil
PATCH v7 1/4 compat: Add infrastructure to support symbol versioning
In reply to a message not in the archiveAdd initial pass header files to support symbol versioning.
---
Change Notes:
V2)
Moved ifeq to _INSTALL target
V3)
Undo V2 changes and make librte_compat use the rte.install.mk file
instead
v4)
changed --version-script to accept SRCDIR in this patch at per request documented versioning macros
cleaned up macro parameter consistency
converted SA macro to RTE_STR macro
fixed copyright
--- lib/Makefile | 1 + lib/librte_compat/Makefile | 38 +++++++++++++ lib/librte_compat/rte_compat.h | 117 +++++++++++++++++++++++++++++++++++++++++ mk/rte.lib.mk | 4 ++ 4 files changed, 160 insertions(+) create mode 100644 lib/librte_compat/Makefile create mode 100644 lib/librte_compat/rte_compat.h
lib/Makefile +1 -0
@@ -31,6 +31,7 @@ include $(RTE_SDK)/mk/rte.vars.mk +DIRS-y += librte_compat DIRS-$(CONFIG_RTE_LIBRTE_EAL) += librte_eal DIRS-$(CONFIG_RTE_LIBRTE_MALLOC) += librte_malloc DIRS-$(CONFIG_RTE_LIBRTE_RING) += librte_ring
lib/librte_compat/Makefile new file +38 -0
@@ -0,0 +1,38 @@ +# BSD LICENSE +# +# Copyright(c) 2013 Neil Horman <[email protected]> +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in +# the documentation and/or other materials provided with the +# distribution. +# * Neither the name of Intel Corporation nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +include $(RTE_SDK)/mk/rte.vars.mk + + +# install includes +SYMLINK-y-include := rte_compat.h + +include $(RTE_SDK)/mk/rte.install.mk
lib/librte_compat/rte_compat.h new file +117 -0
117 lines not on this page · raw message
mk/rte.lib.mk +4 -0
@@ -40,8 +40,12 @@ VPATH += $(SRCDIR) ifeq ($(RTE_BUILD_SHARED_LIB),y) LIB := $(patsubst %.a,%.so,$(LIB)) + +CPU_LDFLAGS += --version-script=$(SRCDIR)/$(EXPORT_MAP) + endif + _BUILD = $(LIB) _INSTALL = $(INSTALL-FILES-y) $(SYMLINK-FILES-y) $(RTE_OUTPUT)/lib/$(LIB) _CLEAN = doclean
Signature · 1 line
2.1.0
A message that is not in the archive (sent off-list or not yet received): 1421873986-21912-1-git-send-email-nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org
PATCH v7 2/4 Provide initial versioning for all DPDK libraries
Add linker version script files to each DPDK library to put a stake in the ground from which we can start cleaning up API's
---
Change Notes:
v2)
* Updated export map to not require full path
--- lib/librte_acl/Makefile | 2 + lib/librte_acl/rte_acl_version.map | 21 ++++ lib/librte_cfgfile/Makefile | 2 + lib/librte_cfgfile/rte_cfgfile_version.map | 14 +++ lib/librte_cmdline/Makefile | 2 + lib/librte_cmdline/rte_cmdline_version.map | 69 +++++++++++++ lib/librte_distributor/Makefile | 2 + lib/librte_distributor/rte_distributor_version.map | 16 +++ lib/librte_eal/bsdapp/eal/Makefile | 2 + lib/librte_eal/bsdapp/eal/rte_eal_version.map | 90 ++++++++++++++++ lib/librte_eal/linuxapp/eal/Makefile | 2 + lib/librte_eal/linuxapp/eal/rte_eal_version.map | 90 ++++++++++++++++ lib/librte_ether/Makefile | 2 + lib/librte_ether/rte_ether_version.map | 113 +++++++++++++++++++++ lib/librte_hash/Makefile | 2 + lib/librte_hash/rte_hash_version.map | 18 ++++ lib/librte_ip_frag/Makefile | 2 + lib/librte_ip_frag/rte_ipfrag_version.map | 14 +++ lib/librte_ivshmem/Makefile | 2 + lib/librte_ivshmem/rte_ivshmem_version.map | 13 +++ lib/librte_kni/Makefile | 2 + lib/librte_kni/rte_kni_version.map | 20 ++++ lib/librte_kvargs/Makefile | 2 + lib/librte_kvargs/rte_kvargs_version.map | 10 ++ lib/librte_lpm/Makefile | 2 + lib/librte_lpm/rte_lpm_version.map | 24 +++++ lib/librte_malloc/Makefile | 2 + lib/librte_malloc/rte_malloc_version.map | 19 ++++ lib/librte_mbuf/Makefile | 2 + lib/librte_mbuf/rte_mbuf_version.map | 14 +++ lib/librte_mempool/Makefile | 2 + lib/librte_mempool/rte_mempool_version.map | 18 ++++ lib/librte_meter/Makefile | 2 + lib/librte_meter/rte_meter_version.map | 13 +++ lib/librte_pipeline/Makefile | 2 + lib/librte_pipeline/rte_pipeline_version.map | 23 +++++ lib/librte_pmd_af_packet/Makefile | 2 + .../rte_pmd_af_packet_version.map | 7 ++ lib/librte_pmd_bond/Makefile | 2 + lib/librte_pmd_bond/rte_eth_bond_version.map | 21 ++++ lib/librte_pmd_e1000/Makefile | 2 + lib/librte_pmd_e1000/rte_pmd_e1000_version.map | 5 + lib/librte_pmd_enic/Makefile | 2 + lib/librte_pmd_enic/rte_pmd_enic_version.map | 5 + lib/librte_pmd_i40e/Makefile | 2 + lib/librte_pmd_i40e/rte_pmd_i40e_version.map | 5 + lib/librte_pmd_ixgbe/Makefile | 2 + lib/librte_pmd_ixgbe/rte_pmd_ixgbe_version.map | 5 + lib/librte_pmd_pcap/Makefile | 2 + lib/librte_pmd_pcap/rte_pmd_pcap_version.map | 5 + lib/librte_pmd_ring/Makefile | 2 + lib/librte_pmd_ring/rte_eth_ring.c | 2 +- lib/librte_pmd_ring/rte_eth_ring.h | 6 -- lib/librte_pmd_ring/rte_eth_ring_version.map | 10 ++ lib/librte_pmd_virtio/Makefile | 1 + lib/librte_pmd_virtio/rte_pmd_virtio_version.map | 5 + lib/librte_pmd_vmxnet3/Makefile | 2 + lib/librte_pmd_vmxnet3/rte_pmd_vmxnet3_version.map | 5 + lib/librte_pmd_xenvirt/Makefile | 2 + lib/librte_pmd_xenvirt/rte_eth_xenvirt_version.map | 8 ++ lib/librte_port/Makefile | 2 + lib/librte_port/rte_port_version.map | 18 ++++ lib/librte_power/Makefile | 2 + lib/librte_power/rte_power_version.map | 18 ++++ lib/librte_ring/Makefile | 2 + lib/librte_ring/rte_ring_version.map | 12 +++ lib/librte_sched/Makefile | 2 + lib/librte_sched/rte_sched_version.map | 22 ++++ lib/librte_table/Makefile | 2 + lib/librte_table/rte_table_version.map | 22 ++++ lib/librte_timer/Makefile | 2 + lib/librte_timer/rte_timer_version.map | 16 +++ lib/librte_vhost/Makefile | 2 + lib/librte_vhost/rte_vhost_version.map | 14 +++ 74 files changed, 874 insertions(+), 7 deletions(-) create mode 100644 lib/librte_acl/rte_acl_version.map create mode 100644 lib/librte_cfgfile/rte_cfgfile_version.map create mode 100644 lib/librte_cmdline/rte_cmdline_version.map create mode 100644 lib/librte_distributor/rte_distributor_version.map create mode 100644 lib/librte_eal/bsdapp/eal/rte_eal_version.map create mode 100644 lib/librte_eal/linuxapp/eal/rte_eal_version.map create mode 100644 lib/librte_ether/rte_ether_version.map create mode 100644 lib/librte_hash/rte_hash_version.map create mode 100644 lib/librte_ip_frag/rte_ipfrag_version.map create mode 100644 lib/librte_ivshmem/rte_ivshmem_version.map create mode 100644 lib/librte_kni/rte_kni_version.map create mode 100644 lib/librte_kvargs/rte_kvargs_version.map create mode 100644 lib/librte_lpm/rte_lpm_version.map create mode 100644 lib/librte_malloc/rte_malloc_version.map create mode 100644 lib/librte_mbuf/rte_mbuf_version.map create mode 100644 lib/librte_mempool/rte_mempool_version.map create mode 100644 lib/librte_meter/rte_meter_version.map create mode 100644 lib/librte_pipeline/rte_pipeline_version.map create mode 100644 lib/librte_pmd_af_packet/rte_pmd_af_packet_version.map create mode 100644 lib/librte_pmd_bond/rte_eth_bond_version.map create mode 100644 lib/librte_pmd_e1000/rte_pmd_e1000_version.map create mode 100644 lib/librte_pmd_enic/rte_pmd_enic_version.map create mode 100644 lib/librte_pmd_i40e/rte_pmd_i40e_version.map create mode 100644 lib/librte_pmd_ixgbe/rte_pmd_ixgbe_version.map create mode 100644 lib/librte_pmd_pcap/rte_pmd_pcap_version.map create mode 100644 lib/librte_pmd_ring/rte_eth_ring_version.map create mode 100644 lib/librte_pmd_virtio/rte_pmd_virtio_version.map create mode 100644 lib/librte_pmd_vmxnet3/rte_pmd_vmxnet3_version.map create mode 100644 lib/librte_pmd_xenvirt/rte_eth_xenvirt_version.map create mode 100644 lib/librte_port/rte_port_version.map create mode 100644 lib/librte_power/rte_power_version.map create mode 100644 lib/librte_ring/rte_ring_version.map create mode 100644 lib/librte_sched/rte_sched_version.map create mode 100644 lib/librte_table/rte_table_version.map create mode 100644 lib/librte_timer/rte_timer_version.map create mode 100644 lib/librte_vhost/rte_vhost_version.map
lib/librte_acl/Makefile +2 -0
@@ -37,6 +37,8 @@ LIB = librte_acl.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) +EXPORT_MAP := rte_acl_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_ACL) += tb_mem.c
lib/librte_acl/rte_acl_version.map new file +21 -0
@@ -0,0 +1,21 @@ +DPDK_1.8 { + global: + rte_acl_create; + rte_acl_find_existing; + rte_acl_free; + rte_acl_add_rules; + rte_acl_reset_rules; + rte_acl_build; + rte_acl_reset; + rte_acl_classify; + rte_acl_dump; + rte_acl_list_dump; + rte_acl_ipv4vlan_add_rules; + rte_acl_ipv4vlan_build; + rte_acl_classify_scalar; + rte_acl_classify_alg; + rte_acl_set_ctx_classify; + + local: *; +}; +
lib/librte_cfgfile/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_cfgfile.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_cfgfile_version.map + # # all source are stored in SRCS-y #
lib/librte_cfgfile/rte_cfgfile_version.map new file +14 -0
@@ -0,0 +1,14 @@ +DPDK_1.8 { + global: + rte_cfgfile_load; + rte_cfgfile_num_sections; + rte_cfgfile_sections; + rte_cfgfile_has_section; + rte_cfgfile_section_num_entries; + rte_cfgfile_section_entries; + rte_cfgfile_get_entry; + rte_cfgfile_has_entry; + rte_cfgfile_close; + + local: *; +};
lib/librte_cmdline/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_cmdline.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_cmdline_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_CMDLINE) := cmdline.c SRCS-$(CONFIG_RTE_LIBRTE_CMDLINE) += cmdline_cirbuf.c
lib/librte_cmdline/rte_cmdline_version.map new file +69 -0
69 lines not on this page · raw message
lib/librte_distributor/Makefile +2 -0
@@ -37,6 +37,8 @@ LIB = librte_distributor.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) +EXPORT_MAP := rte_distributor_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) := rte_distributor.c
lib/librte_distributor/rte_distributor_version.map new file +16 -0
@@ -0,0 +1,16 @@ +DPDK_1.8 { + + global: + rte_distributor_create; + rte_distributor_process; + rte_distributor_returned_pkts; + rte_distributor_flush; + rte_distributor_clear_returns; + rte_distributor_get_pkt; + rte_distributor_return_pkt; + rte_distributor_request_pkt; + rte_distributor_poll_pkt; + + local: *; +}; +
lib/librte_eal/bsdapp/eal/Makefile +2 -0
@@ -46,6 +46,8 @@ CFLAGS += -I$(RTE_SDK)/lib/librte_pmd_ring CFLAGS += -I$(RTE_SDK)/lib/librte_pmd_pcap CFLAGS += $(WERROR_FLAGS) -O3 +EXPORT_MAP := rte_eal_version.map + # specific to linuxapp exec-env SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) := eal.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal_memory.c
lib/librte_eal/bsdapp/eal/rte_eal_version.map new file +90 -0
90 lines not on this page · raw message
lib/librte_eal/linuxapp/eal/Makefile +2 -0
@@ -33,6 +33,8 @@ include $(RTE_SDK)/mk/rte.vars.mk LIB = librte_eal.a +EXPORT_MAP := rte_eal_version.map + VPATH += $(RTE_SDK)/lib/librte_eal/common CFLAGS += -I$(SRCDIR)/include
lib/librte_eal/linuxapp/eal/rte_eal_version.map new file +90 -0
90 lines not on this page · raw message
lib/librte_ether/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = libethdev.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_ether_version.map + SRCS-y += rte_ethdev.c #
lib/librte_ether/rte_ether_version.map new file +113 -0
113 lines not on this page · raw message
lib/librte_hash/Makefile +2 -0
@@ -37,6 +37,8 @@ LIB = librte_hash.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) +EXPORT_MAP := rte_hash_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_HASH) := rte_hash.c SRCS-$(CONFIG_RTE_LIBRTE_HASH) += rte_fbk_hash.c
lib/librte_hash/rte_hash_version.map new file +18 -0
@@ -0,0 +1,18 @@ +DPDK_1.8 { + global: + rte_fbk_hash_find_existing; + rte_fbk_hash_create; + rte_fbk_hash_free; + rte_hash_create; + rte_hash_find_existing; + rte_hash_free; + rte_hash_add_key; + rte_hash_add_key_with_hash; + rte_hash_del_key; + rte_hash_del_key_with_hash; + rte_hash_lookup; + rte_hash_lookup_with_hash; + rte_hash_lookup_bulk; + + local: *; +};
lib/librte_ip_frag/Makefile +2 -0
@@ -37,6 +37,8 @@ LIB = librte_ip_frag.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) +EXPORT_MAP := rte_ipfrag_version.map + #source files ifeq ($(CONFIG_RTE_MBUF_REFCNT),y) SRCS-$(CONFIG_RTE_LIBRTE_IP_FRAG) += rte_ipv4_fragmentation.c
lib/librte_ip_frag/rte_ipfrag_version.map new file +14 -0
@@ -0,0 +1,14 @@ +DPDK_1.8 { + global: + + rte_ip_frag_table_create; + rte_ipv6_fragment_packet; + rte_ipv6_frag_reassemble_packet; + rte_ipv4_fragment_packet; + rte_ipv4_frag_reassemble_packet; + rte_ip_frag_free_death_row; + rte_ip_frag_table_statistics_dump; + + local: *; +}; +
lib/librte_ivshmem/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_ivshmem.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_ivshmem_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_IVSHMEM) := rte_ivshmem.c
lib/librte_ivshmem/rte_ivshmem_version.map new file +13 -0
@@ -0,0 +1,13 @@ +DPDK_1.8 { + global: + + rte_ivshmem_metadata_create; + rte_ivshmem_metadata_add_memzone; + rte_ivshmem_metadata_add_ring; + rte_ivshmem_metadata_add_mempool; + rte_ivshmem_metadata_cmdline_generate; + rte_ivshmem_metadata_dump; + + local: *; +}; +
lib/librte_kni/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_kni.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -fno-strict-aliasing +EXPORT_MAP := rte_kni_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_KNI) := rte_kni.c
lib/librte_kni/rte_kni_version.map new file +20 -0
@@ -0,0 +1,20 @@ +DPDK_1.8 { + global: + + rte_kni_alloc; + rte_kni_create; + rte_kni_release; + rte_kni_handle_request; + rte_kni_rx_burst; + rte_kni_tx_burst; + rte_kni_get_port_id; + rte_kni_get; + rte_kni_info_get; + rte_kni_register_handlers; + rte_kni_unregister_handlers; + rte_kni_close; + rte_kni_init; + + local: *; +}; +
lib/librte_kvargs/Makefile +2 -0
@@ -38,6 +38,8 @@ LIB = librte_kvargs.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_kvargs_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_KVARGS) := rte_kvargs.c
lib/librte_kvargs/rte_kvargs_version.map new file +10 -0
@@ -0,0 +1,10 @@ +DPDK_1.8 { + + global: + rte_kvargs_parse; + rte_kvargs_free; + rte_kvargs_process; + rte_kvargs_count; + + local: *; +};
lib/librte_lpm/Makefile +2 -0
@@ -37,6 +37,8 @@ LIB = librte_lpm.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) +EXPORT_MAP := rte_lpm_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_LPM) := rte_lpm.c rte_lpm6.c
lib/librte_lpm/rte_lpm_version.map new file +24 -0
@@ -0,0 +1,24 @@ +DPDK_1.8 { + global: + + rte_lpm_create; + rte_lpm_find_existing; + rte_lpm_free; + rte_lpm_add; + rte_lpm_is_rule_present; + rte_lpm_delete; + rte_lpm_delete_all; + rte_lpm6_create; + rte_lpm6_find_existing; + rte_lpm6_free; + rte_lpm6_add; + rte_lpm6_is_rule_present; + rte_lpm6_delete; + rte_lpm6_delete_bulk_func; + rte_lpm6_delete_all; + rte_lpm6_lookup; + rte_lpm6_lookup_bulk_func; + + local: *; +}; +
lib/librte_malloc/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_malloc.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_malloc_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_MALLOC) := rte_malloc.c malloc_elem.c malloc_heap.c
lib/librte_malloc/rte_malloc_version.map new file +19 -0
@@ -0,0 +1,19 @@ +DPDK_1.8 { + global: + + rte_malloc; + rte_zmalloc; + rte_calloc; + rte_realloc; + rte_malloc_socket; + rte_zmalloc_socket; + rte_calloc_socket; + rte_free; + rte_malloc_validate; + rte_malloc_get_socket_stats; + rte_malloc_dump_stats; + rte_malloc_set_limit; + rte_malloc_virt2phy; + + local: *; +};
lib/librte_mbuf/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_mbuf.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_mbuf_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_MBUF) := rte_mbuf.c
lib/librte_mbuf/rte_mbuf_version.map new file +14 -0
@@ -0,0 +1,14 @@ +DPDK_1.8 { + global: + + rte_mbuf_sanity_check; + rte_ctrlmbuf_init; + rte_pktmbuf_init; + rte_pktmbuf_pool_init; + rte_pktmbuf_dump; + rte_get_rx_ol_flag_name; + rte_get_tx_ol_flag_name; + + local: *; +}; +
lib/librte_mempool/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_mempool.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_mempool_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_MEMPOOL) += rte_mempool.c ifeq ($(CONFIG_RTE_LIBRTE_XEN_DOM0),y)
lib/librte_mempool/rte_mempool_version.map new file +18 -0
@@ -0,0 +1,18 @@ +DPDK_1.8 { + global: + + rte_mempool_create; + rte_mempool_xmem_create; + rte_dom0_mempool_create; + rte_mempool_dump; + rte_mempool_audit; + rte_mempool_list_dump; + rte_mempool_lookup; + rte_mempool_calc_obj_size; + rte_mempool_xmem_size; + rte_mempool_xmem_usage; + rte_mempool_walk; + rte_mempool_count; + + local: *; +};
lib/librte_meter/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_meter.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_meter_version.map + # # all source are stored in SRCS-y #
lib/librte_meter/rte_meter_version.map new file +13 -0
@@ -0,0 +1,13 @@ +DPDK_1.8 { + global: + + rte_meter_srtcm_config; + rte_meter_trtcm_config; + rte_meter_srtcm_color_blind_check; + rte_meter_srtcm_color_aware_check; + rte_meter_trtcm_color_blind_check; + rte_meter_trtcm_color_aware_check; + + local: *; +}; +
lib/librte_pipeline/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pipeline.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_pipeline_version.map + # # all source are stored in SRCS-y #
lib/librte_pipeline/rte_pipeline_version.map new file +23 -0
@@ -0,0 +1,23 @@ +DPDK_1.8 { + global: + + rte_pipeline_create; + rte_pipeline_free; + rte_pipeline_check; + rte_pipeline_run; + rte_pipeline_flush; + rte_pipeline_table_create; + rte_pipeline_table_default_entry_add; + rte_pipeline_table_default_entry_delete; + rte_pipeline_table_entry_add; + rte_pipeline_table_entry_delete; + rte_pipeline_port_in_create; + rte_pipeline_port_in_connect_to_table; + rte_pipeline_port_in_enable; + rte_pipeline_port_in_disable; + rte_pipeline_port_out_create; + rte_pipeline_port_out_packet_insert; + + local: *; +}; +
lib/librte_pmd_af_packet/Makefile +2 -0
@@ -38,6 +38,8 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB = librte_pmd_af_packet.a +EXPORT_MAP := rte_pmd_af_packet_version.map + CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS)
lib/librte_pmd_af_packet/rte_pmd_af_packet_version.map new file +7 -0
@@ -0,0 +1,7 @@ +DPDK_1.8 { + global: + rte_pmd_af_packet_devinit; + + local: *; +}; +
lib/librte_pmd_bond/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_bond.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_eth_bond_version.map + # # all source are stored in SRCS-y #
lib/librte_pmd_bond/rte_eth_bond_version.map new file +21 -0
@@ -0,0 +1,21 @@ +DPDK_1.8 { + global: + + rte_eth_bond_create; + rte_eth_bond_slave_add; + rte_eth_bond_slave_remove; + rte_eth_bond_mode_set; + rte_eth_bond_mode_get; + rte_eth_bond_primary_set; + rte_eth_bond_primary_get; + rte_eth_bond_slaves_get; + rte_eth_bond_active_slaves_get; + rte_eth_bond_mac_address_set; + rte_eth_bond_mac_address_reset; + rte_eth_bond_xmit_policy_set; + rte_eth_bond_xmit_policy_get; + rte_eth_bond_link_monitoring_set; + + local: *; +}; +
lib/librte_pmd_e1000/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_e1000.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_pmd_e1000_version.map + ifeq ($(CC), icc) # # CFLAGS for icc
lib/librte_pmd_e1000/rte_pmd_e1000_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_enic/Makefile +2 -0
@@ -37,6 +37,8 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB = librte_pmd_enic.a +EXPORT_MAP := rte_pmd_enic_version.map + CFLAGS += -I$(RTE_SDK)/lib/librte_pmd_enic/vnic/ CFLAGS += -I$(RTE_SDK)/lib/librte_pmd_enic/ CFLAGS += -O3
lib/librte_pmd_enic/rte_pmd_enic_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_i40e/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_i40e.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_pmd_i40e_version.map + # # Add extra flags for base driver files (also known as shared code) # to disable warnings
lib/librte_pmd_i40e/rte_pmd_i40e_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_ixgbe/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_ixgbe.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_pmd_ixgbe_version.map + ifeq ($(CC), icc) # # CFLAGS for icc
lib/librte_pmd_ixgbe/rte_pmd_ixgbe_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_pcap/Makefile +2 -0
@@ -40,6 +40,8 @@ LIB = librte_pmd_pcap.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_pmd_pcap_version.map + # # all source are stored in SRCS-y #
lib/librte_pmd_pcap/rte_pmd_pcap_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_ring/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_ring.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_eth_ring_version.map + # # all source are stored in SRCS-y #
lib/librte_pmd_ring/rte_eth_ring.c +1 -1
@@ -473,7 +473,7 @@ out:return ret; } -int +static int rte_pmd_ring_devinit (const char *name,const char *params) {struct rte_kvargs *kvlist;
lib/librte_pmd_ring/rte_eth_ring.h +0 -6
@@ -50,12 +50,6 @@ int rte_eth_from_rings(const char *name,int rte_eth_ring_pair_create (const char *name,const unsigned numa_node);int rte_eth_ring_pair_attach (const char *name,const unsigned numa_node); -/** -* For use by test apps only. Called as part of EAL init to set up any dummy NICs -* configured on command line. -*/ -int rte_pmd_ring_devinit (const char *name,const char *params); - #ifdef __cplusplus }#endif
lib/librte_pmd_ring/rte_eth_ring_version.map new file +10 -0
@@ -0,0 +1,10 @@ +DPDK_1.8 { + + global: + + rte_eth_from_rings; + rte_eth_ring_pair_create; + rte_eth_ring_pair_attach; + + local: *; +};
lib/librte_pmd_virtio/Makefile +1 -0
@@ -39,6 +39,7 @@ LIB = librte_pmd_virtio_uio.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_pmd_virtio_version.map # # all source are stored in SRCS-y
lib/librte_pmd_virtio/rte_pmd_virtio_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_vmxnet3/Makefile +2 -0
@@ -66,6 +66,8 @@ endif VPATH += $(RTE_SDK)/lib/librte_pmd_vmxnet3/vmxnet3 +EXPORT_MAP := rte_pmd_vmxnet3_version.map + # # all source are stored in SRCS-y #
lib/librte_pmd_vmxnet3/rte_pmd_vmxnet3_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_xenvirt/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_xenvirt.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_eth_xenvirt_version.map + # # all source are stored in SRCS-y #
lib/librte_pmd_xenvirt/rte_eth_xenvirt_version.map new file +8 -0
@@ -0,0 +1,8 @@ +DPDK_1.8 { + global: + + rte_mempool_gntalloc_create; + + local: *; +}; +
lib/librte_port/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_port.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_port_version.map + # # all source are stored in SRCS-y #
lib/librte_port/rte_port_version.map new file +18 -0
@@ -0,0 +1,18 @@ +DPDK_1.8 { + global: + rte_port_ring_reader_ops; + rte_port_ring_writer_ops; + rte_port_ethdev_reader_ops; + rte_port_ethdev_writer_ops; + rte_port_ring_reader_ipv4_frag_ops; + rte_port_ring_writer_ipv4_ras_ops; + rte_port_ring_reader_ops; + rte_port_ring_writer_ops; + rte_port_sched_reader_ops; + rte_port_sched_writer_ops; + rte_port_source_ops; + rte_port_sink_ops; + + local: *; +}; +
lib/librte_power/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_power.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -fno-strict-aliasing +EXPORT_MAP := rte_power_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_POWER) := rte_power.c rte_power_acpi_cpufreq.c SRCS-$(CONFIG_RTE_LIBRTE_POWER) += rte_power_kvm_vm.c guest_channel.c
lib/librte_power/rte_power_version.map new file +18 -0
@@ -0,0 +1,18 @@ +DPDK_1.8 { + global: + rte_power_init; + rte_power_exit; + rte_power_freqs; + rte_power_get_freq; + rte_power_set_freq; + rte_power_freq_up; + rte_power_freq_down; + rte_power_freq_max; + rte_power_freq_min; + rte_power_set_env; + rte_power_get_env; + rte_power_unset_env; + + local: *; +}; +
lib/librte_ring/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_ring.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_ring_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_RING) := rte_ring.c
lib/librte_ring/rte_ring_version.map new file +12 -0
@@ -0,0 +1,12 @@ +DPDK_1.8 { + global: + rte_ring_get_memsize; + rte_ring_init; + rte_ring_create; + rte_ring_set_water_mark; + rte_ring_dump; + rte_ring_list_dump; + rte_ring_lookup; + + local: *; +};
lib/librte_sched/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) CFLAGS_rte_red.o := -D_GNU_SOURCE +EXPORT_MAP := rte_sched_version.map + # # all source are stored in SRCS-y #
lib/librte_sched/rte_sched_version.map new file +22 -0
@@ -0,0 +1,22 @@ +DPDK_1.8 { + global: + + rte_approx; + rte_red_rt_data_init; + rte_red_config_init; + rte_sched_port_config; + rte_sched_port_free; + rte_sched_subport_config; + rte_sched_pipe_config; + rte_sched_port_get_memory_footprint; + rte_sched_subport_read_stats; + rte_sched_queue_read_stats; + rte_sched_port_enqueue; + rte_sched_port_dequeue; + rte_red_log2_1_minus_Wq; + rte_red_pow2_frac_inv; + rte_red_rand_val; + rte_red_rand_seed; + + local: *; +};
lib/librte_table/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_table.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_table_version.map + # # all source are stored in SRCS-y #
lib/librte_table/rte_table_version.map new file +22 -0
@@ -0,0 +1,22 @@ +DPDK_1.8 { + global: + + rte_table_stub_ops; + rte_table_lpm_ops; + rte_table_array_ops; + rte_table_hash_key8_lru_ops; + rte_table_hash_key8_lru_dosig_ops; + rte_table_hash_key8_ext_ops; + rte_table_hash_key8_ext_dosig_ops; + rte_table_lpm_ipv6_ops; + rte_table_hash_key16_lru_ops; + rte_table_hash_key32_lru_ops; + rte_table_hash_key16_ext_ops; + rte_table_hash_key32_ext_ops; + rte_table_acl_ops; + rte_table_hash_lru_ops; + rte_table_hash_ext_ops; + + local: *; +}; +
lib/librte_timer/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_timer.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_timer_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_TIMER) := rte_timer.c
lib/librte_timer/rte_timer_version.map new file +16 -0
@@ -0,0 +1,16 @@ +DPDK_1.8 { + global: + + rte_timer_subsystem_init; + rte_timer_init; + rte_timer_reset; + rte_timer_reset_sync; + rte_timer_stop; + rte_timer_stop_sync; + rte_timer_pending; + rte_timer_manage; + rte_timer_dump_stats; + + local: *; +}; +
lib/librte_vhost/Makefile +2 -0
@@ -34,6 +34,8 @@ include $(RTE_SDK)/mk/rte.vars.mk # library name LIB = librte_vhost.a +EXPORT_MAP := rte_vhost_version.map + CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -D_FILE_OFFSET_BITS=64 -lfuse LDFLAGS += -lfuse # all source are stored in SRCS-y
lib/librte_vhost/rte_vhost_version.map new file +14 -0
@@ -0,0 +1,14 @@ +DPDK_1.8 { + global: + rte_vhost_feature_disable; + rte_vhost_feature_enable; + rte_vhost_feature_get; + rte_vhost_enable_guest_notification; + rte_vhost_driver_register; + rte_vhost_driver_callback_register; + rte_vhost_driver_session_start; + rte_vhost_enqueue_burst; + rte_vhost_dequeue_burst; + + local: *; +};
Signature · 1 line
2.1.0
PATCH v7 3/4 Add library version extenstion
In reply to a message not in the archiveTo differentiate libraries that break ABI, we add a library version number suffix to the library, which must be incremented when a given libraries ABI is broken. This patch enforces that addition, sets the initial abi soname extension to 1 for each library and creates a symlink to the base SONAME so that the test applications will link properly.
---
Change Notes:
v3)
Made symlinking of libraries conditional on a DSO build
v4) Removed erroneous newline
changed @exit 1 to @false changed ./$(LIB) to $< --- lib/librte_acl/Makefile | 2 ++ lib/librte_cfgfile/Makefile | 2 ++ lib/librte_cmdline/Makefile | 2 ++ lib/librte_compat/Makefile | 2 ++ lib/librte_distributor/Makefile | 2 ++ lib/librte_eal/bsdapp/eal/Makefile | 2 ++ lib/librte_eal/linuxapp/eal/Makefile | 2 ++ lib/librte_ether/Makefile | 2 ++ lib/librte_hash/Makefile | 2 ++ lib/librte_ip_frag/Makefile | 2 ++ lib/librte_ivshmem/Makefile | 2 ++ lib/librte_kni/Makefile | 2 ++ lib/librte_kvargs/Makefile | 2 ++ lib/librte_lpm/Makefile | 2 ++ lib/librte_malloc/Makefile | 2 ++ lib/librte_mbuf/Makefile | 2 ++ lib/librte_mempool/Makefile | 2 ++ lib/librte_meter/Makefile | 2 ++ lib/librte_pipeline/Makefile | 2 ++ lib/librte_pmd_af_packet/Makefile | 2 ++ lib/librte_pmd_bond/Makefile | 2 ++ lib/librte_pmd_e1000/Makefile | 2 ++ lib/librte_pmd_enic/Makefile | 2 ++ lib/librte_pmd_i40e/Makefile | 2 ++ lib/librte_pmd_ixgbe/Makefile | 2 ++ lib/librte_pmd_pcap/Makefile | 2 ++ lib/librte_pmd_ring/Makefile | 2 ++ lib/librte_pmd_virtio/Makefile | 2 ++ lib/librte_pmd_vmxnet3/Makefile | 2 ++ lib/librte_pmd_xenvirt/Makefile | 2 ++ lib/librte_port/Makefile | 2 ++ lib/librte_power/Makefile | 2 ++ lib/librte_ring/Makefile | 2 ++ lib/librte_sched/Makefile | 2 ++ lib/librte_table/Makefile | 2 ++ lib/librte_timer/Makefile | 2 ++ lib/librte_vhost/Makefile | 2 ++ mk/rte.lib.mk | 12 ++++++++++-- 38 files changed, 84 insertions(+), 2 deletions(-)
lib/librte_acl/Makefile +2 -0
@@ -39,6 +39,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) EXPORT_MAP := rte_acl_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_ACL) += tb_mem.c
lib/librte_cfgfile/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_cfgfile_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_cmdline/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_cmdline_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_CMDLINE) := cmdline.c SRCS-$(CONFIG_RTE_LIBRTE_CMDLINE) += cmdline_cirbuf.c
lib/librte_compat/Makefile +2 -0
@@ -32,6 +32,8 @@ include $(RTE_SDK)/mk/rte.vars.mk +LIBABIVER := 1 + # install includes SYMLINK-y-include := rte_compat.h
lib/librte_distributor/Makefile +2 -0
@@ -39,6 +39,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) EXPORT_MAP := rte_distributor_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) := rte_distributor.c
lib/librte_eal/bsdapp/eal/Makefile +2 -0
@@ -48,6 +48,8 @@ CFLAGS += $(WERROR_FLAGS) -O3 EXPORT_MAP := rte_eal_version.map +LIBABIVER := 1 + # specific to linuxapp exec-env SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) := eal.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal_memory.c
lib/librte_eal/linuxapp/eal/Makefile +2 -0
@@ -35,6 +35,8 @@ LIB = librte_eal.a EXPORT_MAP := rte_eal_version.map +LIBABIVER := 1 + VPATH += $(RTE_SDK)/lib/librte_eal/common CFLAGS += -I$(SRCDIR)/include
lib/librte_ether/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_ether_version.map +LIBABIVER := 1 + SRCS-y += rte_ethdev.c #
lib/librte_hash/Makefile +2 -0
@@ -39,6 +39,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) EXPORT_MAP := rte_hash_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_HASH) := rte_hash.c SRCS-$(CONFIG_RTE_LIBRTE_HASH) += rte_fbk_hash.c
lib/librte_ip_frag/Makefile +2 -0
@@ -39,6 +39,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) EXPORT_MAP := rte_ipfrag_version.map +LIBABIVER := 1 + #source files ifeq ($(CONFIG_RTE_MBUF_REFCNT),y) SRCS-$(CONFIG_RTE_LIBRTE_IP_FRAG) += rte_ipv4_fragmentation.c
lib/librte_ivshmem/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_ivshmem_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_IVSHMEM) := rte_ivshmem.c
lib/librte_kni/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -fno-strict-aliasing EXPORT_MAP := rte_kni_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_KNI) := rte_kni.c
lib/librte_kvargs/Makefile +2 -0
@@ -40,6 +40,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_kvargs_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_KVARGS) := rte_kvargs.c
lib/librte_lpm/Makefile +2 -0
@@ -39,6 +39,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) EXPORT_MAP := rte_lpm_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_LPM) := rte_lpm.c rte_lpm6.c
lib/librte_malloc/Makefile +2 -0
@@ -34,6 +34,8 @@ include $(RTE_SDK)/mk/rte.vars.mk # library name LIB = librte_malloc.a +LIBABIVER := 1 + CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_malloc_version.map
lib/librte_mbuf/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_mbuf_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_MBUF) := rte_mbuf.c
lib/librte_mempool/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_mempool_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_MEMPOOL) += rte_mempool.c ifeq ($(CONFIG_RTE_LIBRTE_XEN_DOM0),y)
lib/librte_meter/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_meter_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pipeline/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_pipeline_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pmd_af_packet/Makefile +2 -0
@@ -40,6 +40,8 @@ LIB = librte_pmd_af_packet.a EXPORT_MAP := rte_pmd_af_packet_version.map +LIBABIVER := 1 + CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS)
lib/librte_pmd_bond/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_eth_bond_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pmd_e1000/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_pmd_e1000_version.map +LIBABIVER := 1 + ifeq ($(CC), icc) # # CFLAGS for icc
lib/librte_pmd_enic/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_enic.a EXPORT_MAP := rte_pmd_enic_version.map +LIBABIVER := 1 + CFLAGS += -I$(RTE_SDK)/lib/librte_pmd_enic/vnic/ CFLAGS += -I$(RTE_SDK)/lib/librte_pmd_enic/ CFLAGS += -O3
lib/librte_pmd_i40e/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_pmd_i40e_version.map +LIBABIVER := 1 + # # Add extra flags for base driver files (also known as shared code) # to disable warnings
lib/librte_pmd_ixgbe/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_pmd_ixgbe_version.map +LIBABIVER := 1 + ifeq ($(CC), icc) # # CFLAGS for icc
lib/librte_pmd_pcap/Makefile +2 -0
@@ -42,6 +42,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_pmd_pcap_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pmd_ring/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_eth_ring_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pmd_virtio/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_pmd_virtio_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pmd_vmxnet3/Makefile +2 -0
@@ -68,6 +68,8 @@ VPATH += $(RTE_SDK)/lib/librte_pmd_vmxnet3/vmxnet3 EXPORT_MAP := rte_pmd_vmxnet3_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pmd_xenvirt/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_eth_xenvirt_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_port/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_port_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_power/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -fno-strict-aliasing EXPORT_MAP := rte_power_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_POWER) := rte_power.c rte_power_acpi_cpufreq.c SRCS-$(CONFIG_RTE_LIBRTE_POWER) += rte_power_kvm_vm.c guest_channel.c
lib/librte_ring/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_ring_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_RING) := rte_ring.c
lib/librte_sched/Makefile +2 -0
@@ -43,6 +43,8 @@ CFLAGS_rte_red.o := -D_GNU_SOURCE EXPORT_MAP := rte_sched_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_table/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_table_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_timer/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_timer_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_TIMER) := rte_timer.c
lib/librte_vhost/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_vhost.a EXPORT_MAP := rte_vhost_version.map +LIBABIVER := 1 + CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -D_FILE_OFFSET_BITS=64 -lfuse LDFLAGS += -lfuse # all source are stored in SRCS-y
mk/rte.lib.mk +10 -2
@@ -37,10 +37,9 @@ include $(RTE_SDK)/mk/internal/rte.depdirs-pre.mk # VPATH contains at least SRCDIR VPATH += $(SRCDIR) - ifeq ($(RTE_BUILD_SHARED_LIB),y) -LIB := $(patsubst %.a,%.so,$(LIB)) +LIB := $(patsubst %.a,%.so.$(LIBABIVER),$(LIB)) CPU_LDFLAGS += --version-script=$(SRCDIR)/$(EXPORT_MAP) endif
@@ -113,6 +112,10 @@ lib_dir = [ -d $(RTE_OUTPUT)/lib ] || mkdir -p $(RTE_OUTPUT)/lib; # ifeq ($(RTE_BUILD_SHARED_LIB),y) $(LIB): $(OBJS-y) $(DEP_$(LIB)) FORCE +ifeq ($(LIBABIVER),) + @echo "Must Specify a $(LIB) ABI version" + @false +endif @[ -d $(dir $@) ] || mkdir -p $(dir $@) $(if $(D),\ @echo -n "$< -> $@ " ; \
@@ -126,6 +129,7 @@ $(LIB): $(OBJS-y) $(DEP_$(LIB)) FORCE $(depfile_missing),\ $(depfile_newer)),\ $(O_TO_S_DO)) + ifeq ($(RTE_BUILD_COMBINE_LIBS),y) $(if $(or \ $(file_missing),\
@@ -163,9 +167,13 @@ endif # install lib in $(RTE_OUTPUT)/lib # $(RTE_OUTPUT)/lib/$(LIB): $(LIB) + $(eval LIBSONAME := $(basename $(LIB))) @echo " INSTALL-LIB $(LIB)" @[ -d $(RTE_OUTPUT)/lib ] || mkdir -p $(RTE_OUTPUT)/lib $(Q)cp -f $(LIB) $(RTE_OUTPUT)/lib +ifeq ($(RTE_BUILD_SHARED_LIB),y) + $(Q)ln -s -f $< $(RTE_OUTPUT)/lib/$(LIBSONAME) +endif # # Clean all generated files
Signature · 1 line
2.1.0
PATCH v7 4/4 docs: Add ABI documentation
In reply to a message not in the archiveAdding a document describing rudimentary ABI policy and adding notice space for any deprecation announcements
---
Change notes:
v5) Updated documentation to add notes from Thomas M.
v6) Moved abi.txt to guides/rel_notes/abi.rst
v7) Updated abi.rst to integrate with index file
Updated abi.rst to conform to rst formatting
Updated abi.rst to include example deprecation notices. Its not exactly the
language that Thomas indicated, but I think it makes the idea clear.
--- doc/guides/rel_notes/abi.rst | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 doc/guides/rel_notes/abi.rst
doc/guides/rel_notes/abi.rst new file +41 -0
@@ -0,0 +1,41 @@ +ABI policy +========== +ABI versions are set at the time of major release labeling, and ABI may change +multiple times between the last labeling and the HEAD label of the git tree +without warning. + +ABI versions, once released are available until such time as their +deprecation has been noted here for at least one major release cycle, after it +has been tagged. E.g. the ABI for DPDK 1.8 is shipped, and then the decision to +remove it is made during the development of DPDK 1.9. The decision will be +recorded here, shipped with the DPDK 1.9 release, and actually removed when DPDK +1.10 ships. + +ABI versions may be deprecated in whole, or in part as needed by a given update. + +Some ABI changes may be too significant to reasonably maintain multiple +versions of. In those events ABI's may be updated without backward +compatibility provided. The requirements for doing so are: + +#. At least 3 acknoweldgements of the need on the dpdk.org +#. A full deprecation cycle must be made to offer downstream consumers sufficient warning of the change. E.g. if dpdk 2.0 is under development when the change is proposed, a deprecation notice must be added to this file, and released with dpdk 2.0. Then the change may be incorporated for dpdk 2.1 +#. The LIBABIVER variable in the makefilei(s) where the ABI changes are incorporated must be incremented in parallel with the ABI changes themselves + +Note that the above process for ABI deprecation should not be undertaken +lightly. ABI stability is extreemely important for downstream consumers of the +DPDK, especially when distributed in shared object form. Every effort should be +made to preserve ABI whenever possible. For instance, reorganizing public +structure field for astetic or readability purposes should be avoided as it will +cause ABI breakage. Only significant (e.g. performance) reasons should be seen +as cause to alter ABI. + +Examples of Deprecation notices +------------------------------- +* The Macro #RTE_FOO is deprecated and will be removed with version 2.0, to be replaced with the inline function rte_bar() +* The function rte_mbuf_grok has been updated to include new parameter in version 2.0. Backwards compatibility will be maintained for this function until the release of version 2.1 +* The members struct foo have been reorganized in release 2.0. Existing binary applications will have backwards compatibility in release 2.0, while newly built binaries will need to reference new structure variant struct foo2. Compatibility will be removed in release 2.2, and all applications will require updating a rebuilding to the new structure at that time, which will be renamed to the origional struct foo. +* Significant ABI changes are planned for the librte_dostuff library. The upcomming release 2.0 will not contain these changes, but release 2.1 will, and no backwards compatibility is planned due to the invasive nature of these changes. Binaries using this library built prior to version 2.1 will require updating and recompilation. + +Deprecation Notices +------------------- +
Signature · 1 line
2.1.0
A message that is not in the archive (sent off-list or not yet received): 1421873986-21912-4-git-send-email-nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org
Re: [PATCH v7 4/4] docs: Add ABI documentation
Quoted 8 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Neil Horman
Sent: Wednesday, January 21, 2015 9:00 PM
To: [email protected]
Subject: [dpdk-dev] [PATCH v7 4/4] docs: Add ABI documentation
Quoted 6 lines
Adding a document describing rudimentary ABI policy and adding notice space for any deprecation announcements
Signed-off-by Neil Horman <[email protected]>CC Thomas Monjalon <[email protected]>CC "Richardson, Bruce" <[email protected]>
Hi Neil,
Tried to apply the patch and build it, the following warnings occurred.
Applying: docs: Add ABI documentation /nfs/sie/disks/git_workspace/bairemon/dpdk-doc-next/.git/rebase-apply/patch:55: trailing whitespace.
-------------------------------
/nfs/sie/disks/git_workspace/bairemon/dpdk-doc-next/.git/rebase-apply/patch:22: new blank line at EOF. +
warning: 2 lines add whitespace errors.
sivswdev01> make doc-guides-html
sphinx for guides...
/nfs/sie/disks/git_workspace/bairemon/dpdk-doc-next/doc/guides/rel_notes/abi.rst:: WARNING: document isn't included in any toctree
Change to doc/guides/rel_notes/index.rst is missing from the patch.
Suggest applying and building the patch and then checking the generated HTML in Firefox to see that it is as you expect. file:///home/nhorman/dpdk-doc-next/build/doc/html/guides/rel_notes/index.html
Regards,
Bernard.
Quoted 81 lines
---
Change notes:v5) Updated documentation to add notes from Thomas M.
v6) Moved abi.txt to
guides/rel_notes/abi.rstv7) Updated
abi.rstto integrate with index file
Updatedabi.rstto conform to rst formatting
Updatedabi.rstto include example deprecation notices. Its not exactly the language that Thomas
indicated, but I think it makes the idea clear.--- doc/guides/rel_notes/abi.rst | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 doc/guides/rel_notes/abi.rstdoc/guides/rel_notes/abi.rst new file mode 100644 index renamed from doc/guides/rel_notes/abi.rst +0
-00000000..9b72719
doc/guides/rel_notes/abi.rst new file +45
-0@@ -0,0 +1,41 @@ +ABI policy +========== +ABI versions are set at the time of major release labeling, and ABI may +change multiple times between the last labeling and the HEAD label of +the git tree without warning. + +ABI versions, once released are available until such time as their +deprecation has been noted here for at least one major release cycle, +after it has been tagged. E.g. the ABI for DPDK 1.8 is shipped, and +then the decision to remove it is made during the development of DPDK +1.9. The decision will be recorded here, shipped with the DPDK 1.9 +release, and actually removed when DPDK +1.10 ships. + +ABI versions may be deprecated in whole, or in part as needed by a given update. + +Some ABI changes may be too significant to reasonably maintain multiple +versions of. In those events ABI's may be updated without backward +compatibility provided. The requirements for doing so are: + +#. At least 3 acknoweldgements of the need on the dpdk.org #. A full +deprecation cycle must be made to offer downstream consumers sufficient +warning of the change. E.g. if dpdk 2.0 is under development when the +change is proposed, a deprecation notice must be added to this file, +and released with dpdk 2.0. Then the change may be incorporated for +dpdk 2.1 #. The LIBABIVER variable in the makefilei(s) where the ABI +changes are incorporated must be incremented in parallel with the ABI +changes themselves + +Note that the above process for ABI deprecation should not be +undertaken lightly. ABI stability is extreemely important for +downstream consumers of the DPDK, especially when distributed in shared +object form. Every effort should be made to preserve ABI whenever +possible. For instance, reorganizing public structure field for +astetic or readability purposes should be avoided as it will cause ABI +breakage. Only significant (e.g. performance) reasons should be seen as cause to alter ABI. + +Examples of Deprecation notices +------------------------------- +* The Macro #RTE_FOO is deprecated and will be removed with version +2.0, to be replaced with the inline function rte_bar() +* The function rte_mbuf_grok has been updated to include new parameter +in version 2.0. Backwards compatibility will be maintained for this +function until the release of version 2.1 +* The members struct foo have been reorganized in release 2.0. Existing binary applications will havebackwards compatibility in release 2.0, while newly built binaries will need to reference new structure variant struct foo2. Compatibility will be removed in release 2.2, and all applications will require updating a rebuilding to the new structure at that time, which will be renamed to the origional struct foo.
+* Significant ABI changes are planned for thelibrte_dostufflibrary. The upcomming release 2.0 will not contain these changes, but release 2.1 will, and no backwards compatibility is planned due to the invasive nature of these changes. Binaries using this library built prior to version 2.1 will require updating and recompilation.doc/guides/rel_notes/abi.rst new file +4
-1+ +Deprecation Notices +------------------- + --2.1.0
A message that is not in the archive (sent off-list or not yet received): 8CEF83825BEC744B83065625E567D7C2049D98D9-kPTMFJFq+rEMvF1YICWikbfspsVTdybXVpNB7YpNyf8@public.gmane.org
Re: [PATCH v7 4/4] docs: Add ABI documentation
Quoted 17 lines · Bernard
Quoted 8 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Neil Horman
Sent: Wednesday, January 21, 2015 9:00 PM
To: [email protected]
Subject: [dpdk-dev] [PATCH v7 4/4] docs: Add ABI documentationQuoted 6 lines
Adding a document describing rudimentary ABI policy and adding notice space for any deprecation announcements
Signed-off-by Neil Horman <[email protected]>CC Thomas Monjalon <[email protected]>CC "Richardson, Bruce" <[email protected]>Hi Neil,
Quoted 9 lines
Tried to apply the patch and build it, the following warnings occurred.
Applying: docs: Add ABI documentation /nfs/sie/disks/git_workspace/bairemon/dpdk-doc-next/.git/rebase-apply/patch:55: trailing whitespace.
-------------------------------
/nfs/sie/disks/git_workspace/bairemon/dpdk-doc-next/.git/rebase-apply/patch:22: new blank line at EOF. +
warning: 2 lines add whitespace errors.
Those errors don't make much sense. Theres no whitespace on line 55 of the patch after the last character and line 22 isn't the end of a file that I can see.
Quoted 9 lines
sivswdev01> make doc-guides-html
sphinx for guides...
/nfs/sie/disks/git_workspace/bairemon/dpdk-doc-next/doc/guides/rel_notes/abi.rst:: WARNING: document isn't included in any toctreeChange to
doc/guides/rel_notes/index.rstis missing from the patch.Suggest applying and building the patch and then checking the generated HTML in Firefox to see that it is as you expect. file:///home/nhorman/dpdk-doc-next/build/doc/html/guides/rel_notes/index.html
No, the generated html works fine. I have the abi line added to index.rst but somehow it didn't get comitted, so my testing worked, but the patch isn't right. I'll resend it, and try to figure out whats wrong with those lines, though they really seem screwy to me.
Neil
Quoted 88 lines
Regards,
Bernard.
Quoted 81 lines
---
Change notes:v5) Updated documentation to add notes from Thomas M.
v6) Moved abi.txt to
guides/rel_notes/abi.rstv7) Updated
abi.rstto integrate with index file
Updatedabi.rstto conform to rst formatting
Updatedabi.rstto include example deprecation notices. Its not exactly the language that Thomas
indicated, but I think it makes the idea clear.--- doc/guides/rel_notes/abi.rst | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 doc/guides/rel_notes/abi.rstdoc/guides/rel_notes/abi.rst new file mode 100644 index renamed from doc/guides/rel_notes/abi.rst +0
-00000000..9b72719
doc/guides/rel_notes/abi.rst new file +45
-0@@ -0,0 +1,41 @@ +ABI policy +========== +ABI versions are set at the time of major release labeling, and ABI may +change multiple times between the last labeling and the HEAD label of +the git tree without warning. + +ABI versions, once released are available until such time as their +deprecation has been noted here for at least one major release cycle, +after it has been tagged. E.g. the ABI for DPDK 1.8 is shipped, and +then the decision to remove it is made during the development of DPDK +1.9. The decision will be recorded here, shipped with the DPDK 1.9 +release, and actually removed when DPDK +1.10 ships. + +ABI versions may be deprecated in whole, or in part as needed by a given update. + +Some ABI changes may be too significant to reasonably maintain multiple +versions of. In those events ABI's may be updated without backward +compatibility provided. The requirements for doing so are: + +#. At least 3 acknoweldgements of the need on the dpdk.org #. A full +deprecation cycle must be made to offer downstream consumers sufficient +warning of the change. E.g. if dpdk 2.0 is under development when the +change is proposed, a deprecation notice must be added to this file, +and released with dpdk 2.0. Then the change may be incorporated for +dpdk 2.1 #. The LIBABIVER variable in the makefilei(s) where the ABI +changes are incorporated must be incremented in parallel with the ABI +changes themselves + +Note that the above process for ABI deprecation should not be +undertaken lightly. ABI stability is extreemely important for +downstream consumers of the DPDK, especially when distributed in shared +object form. Every effort should be made to preserve ABI whenever +possible. For instance, reorganizing public structure field for +astetic or readability purposes should be avoided as it will cause ABI +breakage. Only significant (e.g. performance) reasons should be seen as cause to alter ABI. + +Examples of Deprecation notices +------------------------------- +* The Macro #RTE_FOO is deprecated and will be removed with version +2.0, to be replaced with the inline function rte_bar() +* The function rte_mbuf_grok has been updated to include new parameter +in version 2.0. Backwards compatibility will be maintained for this +function until the release of version 2.1 +* The members struct foo have been reorganized in release 2.0. Existing binary applications will havebackwards compatibility in release 2.0, while newly built binaries will need to reference new structure variant struct foo2. Compatibility will be removed in release 2.2, and all applications will require updating a rebuilding to the new structure at that time, which will be renamed to the origional struct foo.
+* Significant ABI changes are planned for thelibrte_dostufflibrary. The upcomming release 2.0 will not contain these changes, but release 2.1 will, and no backwards compatibility is planned due to the invasive nature of these changes. Binaries using this library built prior to version 2.1 will require updating and recompilation.doc/guides/rel_notes/abi.rst new file +4
-1+ +Deprecation Notices +------------------- + --2.1.0
PATCH v8 1/4 compat: Add infrastructure to support symbol versioning
In reply to a message not in the archiveAdd initial pass header files to support symbol versioning.
---
Change Notes:
V2)
Moved ifeq to _INSTALL target
V3)
Undo V2 changes and make librte_compat use the rte.install.mk file
instead
v4)
changed --version-script to accept SRCDIR in this patch at per request documented versioning macros
cleaned up macro parameter consistency
converted SA macro to RTE_STR macro
fixed copyright
--- lib/Makefile | 1 + lib/librte_compat/Makefile | 38 +++++++++++++ lib/librte_compat/rte_compat.h | 117 +++++++++++++++++++++++++++++++++++++++++ mk/rte.lib.mk | 4 ++ 4 files changed, 160 insertions(+) create mode 100644 lib/librte_compat/Makefile create mode 100644 lib/librte_compat/rte_compat.h
lib/Makefile +1 -0
@@ -31,6 +31,7 @@ include $(RTE_SDK)/mk/rte.vars.mk +DIRS-y += librte_compat DIRS-$(CONFIG_RTE_LIBRTE_EAL) += librte_eal DIRS-$(CONFIG_RTE_LIBRTE_MALLOC) += librte_malloc DIRS-$(CONFIG_RTE_LIBRTE_RING) += librte_ring
lib/librte_compat/Makefile new file +38 -0
@@ -0,0 +1,38 @@ +# BSD LICENSE +# +# Copyright(c) 2013 Neil Horman <[email protected]> +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in +# the documentation and/or other materials provided with the +# distribution. +# * Neither the name of Intel Corporation nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +include $(RTE_SDK)/mk/rte.vars.mk + + +# install includes +SYMLINK-y-include := rte_compat.h + +include $(RTE_SDK)/mk/rte.install.mk
lib/librte_compat/rte_compat.h new file +117 -0
117 lines not on this page · raw message
mk/rte.lib.mk +4 -0
@@ -40,8 +40,12 @@ VPATH += $(SRCDIR) ifeq ($(RTE_BUILD_SHARED_LIB),y) LIB := $(patsubst %.a,%.so,$(LIB)) + +CPU_LDFLAGS += --version-script=$(SRCDIR)/$(EXPORT_MAP) + endif + _BUILD = $(LIB) _INSTALL = $(INSTALL-FILES-y) $(SYMLINK-FILES-y) $(RTE_OUTPUT)/lib/$(LIB) _CLEAN = doclean
Signature · 1 line
2.1.0
A message that is not in the archive (sent off-list or not yet received): 1421941756-30948-1-git-send-email-nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org
PATCH v8 2/4 Provide initial versioning for all DPDK libraries
Add linker version script files to each DPDK library to put a stake in the ground from which we can start cleaning up API's
---
Change Notes:
v2)
* Updated export map to not require full path
--- lib/librte_acl/Makefile | 2 + lib/librte_acl/rte_acl_version.map | 21 ++++ lib/librte_cfgfile/Makefile | 2 + lib/librte_cfgfile/rte_cfgfile_version.map | 14 +++ lib/librte_cmdline/Makefile | 2 + lib/librte_cmdline/rte_cmdline_version.map | 69 +++++++++++++ lib/librte_distributor/Makefile | 2 + lib/librte_distributor/rte_distributor_version.map | 16 +++ lib/librte_eal/bsdapp/eal/Makefile | 2 + lib/librte_eal/bsdapp/eal/rte_eal_version.map | 90 ++++++++++++++++ lib/librte_eal/linuxapp/eal/Makefile | 2 + lib/librte_eal/linuxapp/eal/rte_eal_version.map | 90 ++++++++++++++++ lib/librte_ether/Makefile | 2 + lib/librte_ether/rte_ether_version.map | 113 +++++++++++++++++++++ lib/librte_hash/Makefile | 2 + lib/librte_hash/rte_hash_version.map | 18 ++++ lib/librte_ip_frag/Makefile | 2 + lib/librte_ip_frag/rte_ipfrag_version.map | 14 +++ lib/librte_ivshmem/Makefile | 2 + lib/librte_ivshmem/rte_ivshmem_version.map | 13 +++ lib/librte_kni/Makefile | 2 + lib/librte_kni/rte_kni_version.map | 20 ++++ lib/librte_kvargs/Makefile | 2 + lib/librte_kvargs/rte_kvargs_version.map | 10 ++ lib/librte_lpm/Makefile | 2 + lib/librte_lpm/rte_lpm_version.map | 24 +++++ lib/librte_malloc/Makefile | 2 + lib/librte_malloc/rte_malloc_version.map | 19 ++++ lib/librte_mbuf/Makefile | 2 + lib/librte_mbuf/rte_mbuf_version.map | 14 +++ lib/librte_mempool/Makefile | 2 + lib/librte_mempool/rte_mempool_version.map | 18 ++++ lib/librte_meter/Makefile | 2 + lib/librte_meter/rte_meter_version.map | 13 +++ lib/librte_pipeline/Makefile | 2 + lib/librte_pipeline/rte_pipeline_version.map | 23 +++++ lib/librte_pmd_af_packet/Makefile | 2 + .../rte_pmd_af_packet_version.map | 7 ++ lib/librte_pmd_bond/Makefile | 2 + lib/librte_pmd_bond/rte_eth_bond_version.map | 21 ++++ lib/librte_pmd_e1000/Makefile | 2 + lib/librte_pmd_e1000/rte_pmd_e1000_version.map | 5 + lib/librte_pmd_enic/Makefile | 2 + lib/librte_pmd_enic/rte_pmd_enic_version.map | 5 + lib/librte_pmd_i40e/Makefile | 2 + lib/librte_pmd_i40e/rte_pmd_i40e_version.map | 5 + lib/librte_pmd_ixgbe/Makefile | 2 + lib/librte_pmd_ixgbe/rte_pmd_ixgbe_version.map | 5 + lib/librte_pmd_pcap/Makefile | 2 + lib/librte_pmd_pcap/rte_pmd_pcap_version.map | 5 + lib/librte_pmd_ring/Makefile | 2 + lib/librte_pmd_ring/rte_eth_ring.c | 2 +- lib/librte_pmd_ring/rte_eth_ring.h | 6 -- lib/librte_pmd_ring/rte_eth_ring_version.map | 10 ++ lib/librte_pmd_virtio/Makefile | 1 + lib/librte_pmd_virtio/rte_pmd_virtio_version.map | 5 + lib/librte_pmd_vmxnet3/Makefile | 2 + lib/librte_pmd_vmxnet3/rte_pmd_vmxnet3_version.map | 5 + lib/librte_pmd_xenvirt/Makefile | 2 + lib/librte_pmd_xenvirt/rte_eth_xenvirt_version.map | 8 ++ lib/librte_port/Makefile | 2 + lib/librte_port/rte_port_version.map | 18 ++++ lib/librte_power/Makefile | 2 + lib/librte_power/rte_power_version.map | 18 ++++ lib/librte_ring/Makefile | 2 + lib/librte_ring/rte_ring_version.map | 12 +++ lib/librte_sched/Makefile | 2 + lib/librte_sched/rte_sched_version.map | 22 ++++ lib/librte_table/Makefile | 2 + lib/librte_table/rte_table_version.map | 22 ++++ lib/librte_timer/Makefile | 2 + lib/librte_timer/rte_timer_version.map | 16 +++ lib/librte_vhost/Makefile | 2 + lib/librte_vhost/rte_vhost_version.map | 14 +++ 74 files changed, 874 insertions(+), 7 deletions(-) create mode 100644 lib/librte_acl/rte_acl_version.map create mode 100644 lib/librte_cfgfile/rte_cfgfile_version.map create mode 100644 lib/librte_cmdline/rte_cmdline_version.map create mode 100644 lib/librte_distributor/rte_distributor_version.map create mode 100644 lib/librte_eal/bsdapp/eal/rte_eal_version.map create mode 100644 lib/librte_eal/linuxapp/eal/rte_eal_version.map create mode 100644 lib/librte_ether/rte_ether_version.map create mode 100644 lib/librte_hash/rte_hash_version.map create mode 100644 lib/librte_ip_frag/rte_ipfrag_version.map create mode 100644 lib/librte_ivshmem/rte_ivshmem_version.map create mode 100644 lib/librte_kni/rte_kni_version.map create mode 100644 lib/librte_kvargs/rte_kvargs_version.map create mode 100644 lib/librte_lpm/rte_lpm_version.map create mode 100644 lib/librte_malloc/rte_malloc_version.map create mode 100644 lib/librte_mbuf/rte_mbuf_version.map create mode 100644 lib/librte_mempool/rte_mempool_version.map create mode 100644 lib/librte_meter/rte_meter_version.map create mode 100644 lib/librte_pipeline/rte_pipeline_version.map create mode 100644 lib/librte_pmd_af_packet/rte_pmd_af_packet_version.map create mode 100644 lib/librte_pmd_bond/rte_eth_bond_version.map create mode 100644 lib/librte_pmd_e1000/rte_pmd_e1000_version.map create mode 100644 lib/librte_pmd_enic/rte_pmd_enic_version.map create mode 100644 lib/librte_pmd_i40e/rte_pmd_i40e_version.map create mode 100644 lib/librte_pmd_ixgbe/rte_pmd_ixgbe_version.map create mode 100644 lib/librte_pmd_pcap/rte_pmd_pcap_version.map create mode 100644 lib/librte_pmd_ring/rte_eth_ring_version.map create mode 100644 lib/librte_pmd_virtio/rte_pmd_virtio_version.map create mode 100644 lib/librte_pmd_vmxnet3/rte_pmd_vmxnet3_version.map create mode 100644 lib/librte_pmd_xenvirt/rte_eth_xenvirt_version.map create mode 100644 lib/librte_port/rte_port_version.map create mode 100644 lib/librte_power/rte_power_version.map create mode 100644 lib/librte_ring/rte_ring_version.map create mode 100644 lib/librte_sched/rte_sched_version.map create mode 100644 lib/librte_table/rte_table_version.map create mode 100644 lib/librte_timer/rte_timer_version.map create mode 100644 lib/librte_vhost/rte_vhost_version.map
lib/librte_acl/Makefile +2 -0
@@ -37,6 +37,8 @@ LIB = librte_acl.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) +EXPORT_MAP := rte_acl_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_ACL) += tb_mem.c
lib/librte_acl/rte_acl_version.map new file +21 -0
@@ -0,0 +1,21 @@ +DPDK_1.8 { + global: + rte_acl_create; + rte_acl_find_existing; + rte_acl_free; + rte_acl_add_rules; + rte_acl_reset_rules; + rte_acl_build; + rte_acl_reset; + rte_acl_classify; + rte_acl_dump; + rte_acl_list_dump; + rte_acl_ipv4vlan_add_rules; + rte_acl_ipv4vlan_build; + rte_acl_classify_scalar; + rte_acl_classify_alg; + rte_acl_set_ctx_classify; + + local: *; +}; +
lib/librte_cfgfile/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_cfgfile.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_cfgfile_version.map + # # all source are stored in SRCS-y #
lib/librte_cfgfile/rte_cfgfile_version.map new file +14 -0
@@ -0,0 +1,14 @@ +DPDK_1.8 { + global: + rte_cfgfile_load; + rte_cfgfile_num_sections; + rte_cfgfile_sections; + rte_cfgfile_has_section; + rte_cfgfile_section_num_entries; + rte_cfgfile_section_entries; + rte_cfgfile_get_entry; + rte_cfgfile_has_entry; + rte_cfgfile_close; + + local: *; +};
lib/librte_cmdline/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_cmdline.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_cmdline_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_CMDLINE) := cmdline.c SRCS-$(CONFIG_RTE_LIBRTE_CMDLINE) += cmdline_cirbuf.c
lib/librte_cmdline/rte_cmdline_version.map new file +69 -0
69 lines not on this page · raw message
lib/librte_distributor/Makefile +2 -0
@@ -37,6 +37,8 @@ LIB = librte_distributor.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) +EXPORT_MAP := rte_distributor_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) := rte_distributor.c
lib/librte_distributor/rte_distributor_version.map new file +16 -0
@@ -0,0 +1,16 @@ +DPDK_1.8 { + + global: + rte_distributor_create; + rte_distributor_process; + rte_distributor_returned_pkts; + rte_distributor_flush; + rte_distributor_clear_returns; + rte_distributor_get_pkt; + rte_distributor_return_pkt; + rte_distributor_request_pkt; + rte_distributor_poll_pkt; + + local: *; +}; +
lib/librte_eal/bsdapp/eal/Makefile +2 -0
@@ -46,6 +46,8 @@ CFLAGS += -I$(RTE_SDK)/lib/librte_pmd_ring CFLAGS += -I$(RTE_SDK)/lib/librte_pmd_pcap CFLAGS += $(WERROR_FLAGS) -O3 +EXPORT_MAP := rte_eal_version.map + # specific to linuxapp exec-env SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) := eal.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal_memory.c
lib/librte_eal/bsdapp/eal/rte_eal_version.map new file +90 -0
90 lines not on this page · raw message
lib/librte_eal/linuxapp/eal/Makefile +2 -0
@@ -33,6 +33,8 @@ include $(RTE_SDK)/mk/rte.vars.mk LIB = librte_eal.a +EXPORT_MAP := rte_eal_version.map + VPATH += $(RTE_SDK)/lib/librte_eal/common CFLAGS += -I$(SRCDIR)/include
lib/librte_eal/linuxapp/eal/rte_eal_version.map new file +90 -0
90 lines not on this page · raw message
lib/librte_ether/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = libethdev.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_ether_version.map + SRCS-y += rte_ethdev.c #
lib/librte_ether/rte_ether_version.map new file +113 -0
113 lines not on this page · raw message
lib/librte_hash/Makefile +2 -0
@@ -37,6 +37,8 @@ LIB = librte_hash.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) +EXPORT_MAP := rte_hash_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_HASH) := rte_hash.c SRCS-$(CONFIG_RTE_LIBRTE_HASH) += rte_fbk_hash.c
lib/librte_hash/rte_hash_version.map new file +18 -0
@@ -0,0 +1,18 @@ +DPDK_1.8 { + global: + rte_fbk_hash_find_existing; + rte_fbk_hash_create; + rte_fbk_hash_free; + rte_hash_create; + rte_hash_find_existing; + rte_hash_free; + rte_hash_add_key; + rte_hash_add_key_with_hash; + rte_hash_del_key; + rte_hash_del_key_with_hash; + rte_hash_lookup; + rte_hash_lookup_with_hash; + rte_hash_lookup_bulk; + + local: *; +};
lib/librte_ip_frag/Makefile +2 -0
@@ -37,6 +37,8 @@ LIB = librte_ip_frag.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) +EXPORT_MAP := rte_ipfrag_version.map + #source files ifeq ($(CONFIG_RTE_MBUF_REFCNT),y) SRCS-$(CONFIG_RTE_LIBRTE_IP_FRAG) += rte_ipv4_fragmentation.c
lib/librte_ip_frag/rte_ipfrag_version.map new file +14 -0
@@ -0,0 +1,14 @@ +DPDK_1.8 { + global: + + rte_ip_frag_table_create; + rte_ipv6_fragment_packet; + rte_ipv6_frag_reassemble_packet; + rte_ipv4_fragment_packet; + rte_ipv4_frag_reassemble_packet; + rte_ip_frag_free_death_row; + rte_ip_frag_table_statistics_dump; + + local: *; +}; +
lib/librte_ivshmem/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_ivshmem.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_ivshmem_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_IVSHMEM) := rte_ivshmem.c
lib/librte_ivshmem/rte_ivshmem_version.map new file +13 -0
@@ -0,0 +1,13 @@ +DPDK_1.8 { + global: + + rte_ivshmem_metadata_create; + rte_ivshmem_metadata_add_memzone; + rte_ivshmem_metadata_add_ring; + rte_ivshmem_metadata_add_mempool; + rte_ivshmem_metadata_cmdline_generate; + rte_ivshmem_metadata_dump; + + local: *; +}; +
lib/librte_kni/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_kni.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -fno-strict-aliasing +EXPORT_MAP := rte_kni_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_KNI) := rte_kni.c
lib/librte_kni/rte_kni_version.map new file +20 -0
@@ -0,0 +1,20 @@ +DPDK_1.8 { + global: + + rte_kni_alloc; + rte_kni_create; + rte_kni_release; + rte_kni_handle_request; + rte_kni_rx_burst; + rte_kni_tx_burst; + rte_kni_get_port_id; + rte_kni_get; + rte_kni_info_get; + rte_kni_register_handlers; + rte_kni_unregister_handlers; + rte_kni_close; + rte_kni_init; + + local: *; +}; +
lib/librte_kvargs/Makefile +2 -0
@@ -38,6 +38,8 @@ LIB = librte_kvargs.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_kvargs_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_KVARGS) := rte_kvargs.c
lib/librte_kvargs/rte_kvargs_version.map new file +10 -0
@@ -0,0 +1,10 @@ +DPDK_1.8 { + + global: + rte_kvargs_parse; + rte_kvargs_free; + rte_kvargs_process; + rte_kvargs_count; + + local: *; +};
lib/librte_lpm/Makefile +2 -0
@@ -37,6 +37,8 @@ LIB = librte_lpm.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) +EXPORT_MAP := rte_lpm_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_LPM) := rte_lpm.c rte_lpm6.c
lib/librte_lpm/rte_lpm_version.map new file +24 -0
@@ -0,0 +1,24 @@ +DPDK_1.8 { + global: + + rte_lpm_create; + rte_lpm_find_existing; + rte_lpm_free; + rte_lpm_add; + rte_lpm_is_rule_present; + rte_lpm_delete; + rte_lpm_delete_all; + rte_lpm6_create; + rte_lpm6_find_existing; + rte_lpm6_free; + rte_lpm6_add; + rte_lpm6_is_rule_present; + rte_lpm6_delete; + rte_lpm6_delete_bulk_func; + rte_lpm6_delete_all; + rte_lpm6_lookup; + rte_lpm6_lookup_bulk_func; + + local: *; +}; +
lib/librte_malloc/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_malloc.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_malloc_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_MALLOC) := rte_malloc.c malloc_elem.c malloc_heap.c
lib/librte_malloc/rte_malloc_version.map new file +19 -0
@@ -0,0 +1,19 @@ +DPDK_1.8 { + global: + + rte_malloc; + rte_zmalloc; + rte_calloc; + rte_realloc; + rte_malloc_socket; + rte_zmalloc_socket; + rte_calloc_socket; + rte_free; + rte_malloc_validate; + rte_malloc_get_socket_stats; + rte_malloc_dump_stats; + rte_malloc_set_limit; + rte_malloc_virt2phy; + + local: *; +};
lib/librte_mbuf/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_mbuf.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_mbuf_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_MBUF) := rte_mbuf.c
lib/librte_mbuf/rte_mbuf_version.map new file +14 -0
@@ -0,0 +1,14 @@ +DPDK_1.8 { + global: + + rte_mbuf_sanity_check; + rte_ctrlmbuf_init; + rte_pktmbuf_init; + rte_pktmbuf_pool_init; + rte_pktmbuf_dump; + rte_get_rx_ol_flag_name; + rte_get_tx_ol_flag_name; + + local: *; +}; +
lib/librte_mempool/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_mempool.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_mempool_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_MEMPOOL) += rte_mempool.c ifeq ($(CONFIG_RTE_LIBRTE_XEN_DOM0),y)
lib/librte_mempool/rte_mempool_version.map new file +18 -0
@@ -0,0 +1,18 @@ +DPDK_1.8 { + global: + + rte_mempool_create; + rte_mempool_xmem_create; + rte_dom0_mempool_create; + rte_mempool_dump; + rte_mempool_audit; + rte_mempool_list_dump; + rte_mempool_lookup; + rte_mempool_calc_obj_size; + rte_mempool_xmem_size; + rte_mempool_xmem_usage; + rte_mempool_walk; + rte_mempool_count; + + local: *; +};
lib/librte_meter/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_meter.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_meter_version.map + # # all source are stored in SRCS-y #
lib/librte_meter/rte_meter_version.map new file +13 -0
@@ -0,0 +1,13 @@ +DPDK_1.8 { + global: + + rte_meter_srtcm_config; + rte_meter_trtcm_config; + rte_meter_srtcm_color_blind_check; + rte_meter_srtcm_color_aware_check; + rte_meter_trtcm_color_blind_check; + rte_meter_trtcm_color_aware_check; + + local: *; +}; +
lib/librte_pipeline/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pipeline.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_pipeline_version.map + # # all source are stored in SRCS-y #
lib/librte_pipeline/rte_pipeline_version.map new file +23 -0
@@ -0,0 +1,23 @@ +DPDK_1.8 { + global: + + rte_pipeline_create; + rte_pipeline_free; + rte_pipeline_check; + rte_pipeline_run; + rte_pipeline_flush; + rte_pipeline_table_create; + rte_pipeline_table_default_entry_add; + rte_pipeline_table_default_entry_delete; + rte_pipeline_table_entry_add; + rte_pipeline_table_entry_delete; + rte_pipeline_port_in_create; + rte_pipeline_port_in_connect_to_table; + rte_pipeline_port_in_enable; + rte_pipeline_port_in_disable; + rte_pipeline_port_out_create; + rte_pipeline_port_out_packet_insert; + + local: *; +}; +
lib/librte_pmd_af_packet/Makefile +2 -0
@@ -38,6 +38,8 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB = librte_pmd_af_packet.a +EXPORT_MAP := rte_pmd_af_packet_version.map + CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS)
lib/librte_pmd_af_packet/rte_pmd_af_packet_version.map new file +7 -0
@@ -0,0 +1,7 @@ +DPDK_1.8 { + global: + rte_pmd_af_packet_devinit; + + local: *; +}; +
lib/librte_pmd_bond/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_bond.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_eth_bond_version.map + # # all source are stored in SRCS-y #
lib/librte_pmd_bond/rte_eth_bond_version.map new file +21 -0
@@ -0,0 +1,21 @@ +DPDK_1.8 { + global: + + rte_eth_bond_create; + rte_eth_bond_slave_add; + rte_eth_bond_slave_remove; + rte_eth_bond_mode_set; + rte_eth_bond_mode_get; + rte_eth_bond_primary_set; + rte_eth_bond_primary_get; + rte_eth_bond_slaves_get; + rte_eth_bond_active_slaves_get; + rte_eth_bond_mac_address_set; + rte_eth_bond_mac_address_reset; + rte_eth_bond_xmit_policy_set; + rte_eth_bond_xmit_policy_get; + rte_eth_bond_link_monitoring_set; + + local: *; +}; +
lib/librte_pmd_e1000/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_e1000.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_pmd_e1000_version.map + ifeq ($(CC), icc) # # CFLAGS for icc
lib/librte_pmd_e1000/rte_pmd_e1000_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_enic/Makefile +2 -0
@@ -37,6 +37,8 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB = librte_pmd_enic.a +EXPORT_MAP := rte_pmd_enic_version.map + CFLAGS += -I$(RTE_SDK)/lib/librte_pmd_enic/vnic/ CFLAGS += -I$(RTE_SDK)/lib/librte_pmd_enic/ CFLAGS += -O3
lib/librte_pmd_enic/rte_pmd_enic_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_i40e/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_i40e.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_pmd_i40e_version.map + # # Add extra flags for base driver files (also known as shared code) # to disable warnings
lib/librte_pmd_i40e/rte_pmd_i40e_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_ixgbe/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_ixgbe.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_pmd_ixgbe_version.map + ifeq ($(CC), icc) # # CFLAGS for icc
lib/librte_pmd_ixgbe/rte_pmd_ixgbe_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_pcap/Makefile +2 -0
@@ -40,6 +40,8 @@ LIB = librte_pmd_pcap.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_pmd_pcap_version.map + # # all source are stored in SRCS-y #
lib/librte_pmd_pcap/rte_pmd_pcap_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_ring/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_ring.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_eth_ring_version.map + # # all source are stored in SRCS-y #
lib/librte_pmd_ring/rte_eth_ring.c +1 -1
@@ -473,7 +473,7 @@ out:return ret; } -int +static int rte_pmd_ring_devinit (const char *name,const char *params) {struct rte_kvargs *kvlist;
lib/librte_pmd_ring/rte_eth_ring.h +0 -6
@@ -50,12 +50,6 @@ int rte_eth_from_rings(const char *name,int rte_eth_ring_pair_create (const char *name,const unsigned numa_node);int rte_eth_ring_pair_attach (const char *name,const unsigned numa_node); -/** -* For use by test apps only. Called as part of EAL init to set up any dummy NICs -* configured on command line. -*/ -int rte_pmd_ring_devinit (const char *name,const char *params); - #ifdef __cplusplus }#endif
lib/librte_pmd_ring/rte_eth_ring_version.map new file +10 -0
@@ -0,0 +1,10 @@ +DPDK_1.8 { + + global: + + rte_eth_from_rings; + rte_eth_ring_pair_create; + rte_eth_ring_pair_attach; + + local: *; +};
lib/librte_pmd_virtio/Makefile +1 -0
@@ -39,6 +39,7 @@ LIB = librte_pmd_virtio_uio.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_pmd_virtio_version.map # # all source are stored in SRCS-y
lib/librte_pmd_virtio/rte_pmd_virtio_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_vmxnet3/Makefile +2 -0
@@ -66,6 +66,8 @@ endif VPATH += $(RTE_SDK)/lib/librte_pmd_vmxnet3/vmxnet3 +EXPORT_MAP := rte_pmd_vmxnet3_version.map + # # all source are stored in SRCS-y #
lib/librte_pmd_vmxnet3/rte_pmd_vmxnet3_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_xenvirt/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_xenvirt.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_eth_xenvirt_version.map + # # all source are stored in SRCS-y #
lib/librte_pmd_xenvirt/rte_eth_xenvirt_version.map new file +8 -0
@@ -0,0 +1,8 @@ +DPDK_1.8 { + global: + + rte_mempool_gntalloc_create; + + local: *; +}; +
lib/librte_port/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_port.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_port_version.map + # # all source are stored in SRCS-y #
lib/librte_port/rte_port_version.map new file +18 -0
@@ -0,0 +1,18 @@ +DPDK_1.8 { + global: + rte_port_ring_reader_ops; + rte_port_ring_writer_ops; + rte_port_ethdev_reader_ops; + rte_port_ethdev_writer_ops; + rte_port_ring_reader_ipv4_frag_ops; + rte_port_ring_writer_ipv4_ras_ops; + rte_port_ring_reader_ops; + rte_port_ring_writer_ops; + rte_port_sched_reader_ops; + rte_port_sched_writer_ops; + rte_port_source_ops; + rte_port_sink_ops; + + local: *; +}; +
lib/librte_power/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_power.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -fno-strict-aliasing +EXPORT_MAP := rte_power_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_POWER) := rte_power.c rte_power_acpi_cpufreq.c SRCS-$(CONFIG_RTE_LIBRTE_POWER) += rte_power_kvm_vm.c guest_channel.c
lib/librte_power/rte_power_version.map new file +18 -0
@@ -0,0 +1,18 @@ +DPDK_1.8 { + global: + rte_power_init; + rte_power_exit; + rte_power_freqs; + rte_power_get_freq; + rte_power_set_freq; + rte_power_freq_up; + rte_power_freq_down; + rte_power_freq_max; + rte_power_freq_min; + rte_power_set_env; + rte_power_get_env; + rte_power_unset_env; + + local: *; +}; +
lib/librte_ring/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_ring.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_ring_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_RING) := rte_ring.c
lib/librte_ring/rte_ring_version.map new file +12 -0
@@ -0,0 +1,12 @@ +DPDK_1.8 { + global: + rte_ring_get_memsize; + rte_ring_init; + rte_ring_create; + rte_ring_set_water_mark; + rte_ring_dump; + rte_ring_list_dump; + rte_ring_lookup; + + local: *; +};
lib/librte_sched/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) CFLAGS_rte_red.o := -D_GNU_SOURCE +EXPORT_MAP := rte_sched_version.map + # # all source are stored in SRCS-y #
lib/librte_sched/rte_sched_version.map new file +22 -0
@@ -0,0 +1,22 @@ +DPDK_1.8 { + global: + + rte_approx; + rte_red_rt_data_init; + rte_red_config_init; + rte_sched_port_config; + rte_sched_port_free; + rte_sched_subport_config; + rte_sched_pipe_config; + rte_sched_port_get_memory_footprint; + rte_sched_subport_read_stats; + rte_sched_queue_read_stats; + rte_sched_port_enqueue; + rte_sched_port_dequeue; + rte_red_log2_1_minus_Wq; + rte_red_pow2_frac_inv; + rte_red_rand_val; + rte_red_rand_seed; + + local: *; +};
lib/librte_table/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_table.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_table_version.map + # # all source are stored in SRCS-y #
lib/librte_table/rte_table_version.map new file +22 -0
@@ -0,0 +1,22 @@ +DPDK_1.8 { + global: + + rte_table_stub_ops; + rte_table_lpm_ops; + rte_table_array_ops; + rte_table_hash_key8_lru_ops; + rte_table_hash_key8_lru_dosig_ops; + rte_table_hash_key8_ext_ops; + rte_table_hash_key8_ext_dosig_ops; + rte_table_lpm_ipv6_ops; + rte_table_hash_key16_lru_ops; + rte_table_hash_key32_lru_ops; + rte_table_hash_key16_ext_ops; + rte_table_hash_key32_ext_ops; + rte_table_acl_ops; + rte_table_hash_lru_ops; + rte_table_hash_ext_ops; + + local: *; +}; +
lib/librte_timer/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_timer.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_timer_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_TIMER) := rte_timer.c
lib/librte_timer/rte_timer_version.map new file +16 -0
@@ -0,0 +1,16 @@ +DPDK_1.8 { + global: + + rte_timer_subsystem_init; + rte_timer_init; + rte_timer_reset; + rte_timer_reset_sync; + rte_timer_stop; + rte_timer_stop_sync; + rte_timer_pending; + rte_timer_manage; + rte_timer_dump_stats; + + local: *; +}; +
lib/librte_vhost/Makefile +2 -0
@@ -34,6 +34,8 @@ include $(RTE_SDK)/mk/rte.vars.mk # library name LIB = librte_vhost.a +EXPORT_MAP := rte_vhost_version.map + CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -D_FILE_OFFSET_BITS=64 -lfuse LDFLAGS += -lfuse # all source are stored in SRCS-y
lib/librte_vhost/rte_vhost_version.map new file +14 -0
@@ -0,0 +1,14 @@ +DPDK_1.8 { + global: + rte_vhost_feature_disable; + rte_vhost_feature_enable; + rte_vhost_feature_get; + rte_vhost_enable_guest_notification; + rte_vhost_driver_register; + rte_vhost_driver_callback_register; + rte_vhost_driver_session_start; + rte_vhost_enqueue_burst; + rte_vhost_dequeue_burst; + + local: *; +};
Signature · 1 line
2.1.0
PATCH v8 3/4 Add library version extenstion
In reply to a message not in the archiveTo differentiate libraries that break ABI, we add a library version number suffix to the library, which must be incremented when a given libraries ABI is broken. This patch enforces that addition, sets the initial abi soname extension to 1 for each library and creates a symlink to the base SONAME so that the test applications will link properly.
---
Change Notes:
v3)
Made symlinking of libraries conditional on a DSO build
v4) Removed erroneous newline
changed @exit 1 to @false changed ./$(LIB) to $< --- lib/librte_acl/Makefile | 2 ++ lib/librte_cfgfile/Makefile | 2 ++ lib/librte_cmdline/Makefile | 2 ++ lib/librte_compat/Makefile | 2 ++ lib/librte_distributor/Makefile | 2 ++ lib/librte_eal/bsdapp/eal/Makefile | 2 ++ lib/librte_eal/linuxapp/eal/Makefile | 2 ++ lib/librte_ether/Makefile | 2 ++ lib/librte_hash/Makefile | 2 ++ lib/librte_ip_frag/Makefile | 2 ++ lib/librte_ivshmem/Makefile | 2 ++ lib/librte_kni/Makefile | 2 ++ lib/librte_kvargs/Makefile | 2 ++ lib/librte_lpm/Makefile | 2 ++ lib/librte_malloc/Makefile | 2 ++ lib/librte_mbuf/Makefile | 2 ++ lib/librte_mempool/Makefile | 2 ++ lib/librte_meter/Makefile | 2 ++ lib/librte_pipeline/Makefile | 2 ++ lib/librte_pmd_af_packet/Makefile | 2 ++ lib/librte_pmd_bond/Makefile | 2 ++ lib/librte_pmd_e1000/Makefile | 2 ++ lib/librte_pmd_enic/Makefile | 2 ++ lib/librte_pmd_i40e/Makefile | 2 ++ lib/librte_pmd_ixgbe/Makefile | 2 ++ lib/librte_pmd_pcap/Makefile | 2 ++ lib/librte_pmd_ring/Makefile | 2 ++ lib/librte_pmd_virtio/Makefile | 2 ++ lib/librte_pmd_vmxnet3/Makefile | 2 ++ lib/librte_pmd_xenvirt/Makefile | 2 ++ lib/librte_port/Makefile | 2 ++ lib/librte_power/Makefile | 2 ++ lib/librte_ring/Makefile | 2 ++ lib/librte_sched/Makefile | 2 ++ lib/librte_table/Makefile | 2 ++ lib/librte_timer/Makefile | 2 ++ lib/librte_vhost/Makefile | 2 ++ mk/rte.lib.mk | 12 ++++++++++-- 38 files changed, 84 insertions(+), 2 deletions(-)
lib/librte_acl/Makefile +2 -0
@@ -39,6 +39,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) EXPORT_MAP := rte_acl_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_ACL) += tb_mem.c
lib/librte_cfgfile/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_cfgfile_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_cmdline/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_cmdline_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_CMDLINE) := cmdline.c SRCS-$(CONFIG_RTE_LIBRTE_CMDLINE) += cmdline_cirbuf.c
lib/librte_compat/Makefile +2 -0
@@ -32,6 +32,8 @@ include $(RTE_SDK)/mk/rte.vars.mk +LIBABIVER := 1 + # install includes SYMLINK-y-include := rte_compat.h
lib/librte_distributor/Makefile +2 -0
@@ -39,6 +39,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) EXPORT_MAP := rte_distributor_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) := rte_distributor.c
lib/librte_eal/bsdapp/eal/Makefile +2 -0
@@ -48,6 +48,8 @@ CFLAGS += $(WERROR_FLAGS) -O3 EXPORT_MAP := rte_eal_version.map +LIBABIVER := 1 + # specific to linuxapp exec-env SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) := eal.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal_memory.c
lib/librte_eal/linuxapp/eal/Makefile +2 -0
@@ -35,6 +35,8 @@ LIB = librte_eal.a EXPORT_MAP := rte_eal_version.map +LIBABIVER := 1 + VPATH += $(RTE_SDK)/lib/librte_eal/common CFLAGS += -I$(SRCDIR)/include
lib/librte_ether/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_ether_version.map +LIBABIVER := 1 + SRCS-y += rte_ethdev.c #
lib/librte_hash/Makefile +2 -0
@@ -39,6 +39,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) EXPORT_MAP := rte_hash_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_HASH) := rte_hash.c SRCS-$(CONFIG_RTE_LIBRTE_HASH) += rte_fbk_hash.c
lib/librte_ip_frag/Makefile +2 -0
@@ -39,6 +39,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) EXPORT_MAP := rte_ipfrag_version.map +LIBABIVER := 1 + #source files ifeq ($(CONFIG_RTE_MBUF_REFCNT),y) SRCS-$(CONFIG_RTE_LIBRTE_IP_FRAG) += rte_ipv4_fragmentation.c
lib/librte_ivshmem/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_ivshmem_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_IVSHMEM) := rte_ivshmem.c
lib/librte_kni/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -fno-strict-aliasing EXPORT_MAP := rte_kni_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_KNI) := rte_kni.c
lib/librte_kvargs/Makefile +2 -0
@@ -40,6 +40,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_kvargs_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_KVARGS) := rte_kvargs.c
lib/librte_lpm/Makefile +2 -0
@@ -39,6 +39,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) EXPORT_MAP := rte_lpm_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_LPM) := rte_lpm.c rte_lpm6.c
lib/librte_malloc/Makefile +2 -0
@@ -34,6 +34,8 @@ include $(RTE_SDK)/mk/rte.vars.mk # library name LIB = librte_malloc.a +LIBABIVER := 1 + CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_malloc_version.map
lib/librte_mbuf/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_mbuf_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_MBUF) := rte_mbuf.c
lib/librte_mempool/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_mempool_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_MEMPOOL) += rte_mempool.c ifeq ($(CONFIG_RTE_LIBRTE_XEN_DOM0),y)
lib/librte_meter/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_meter_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pipeline/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_pipeline_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pmd_af_packet/Makefile +2 -0
@@ -40,6 +40,8 @@ LIB = librte_pmd_af_packet.a EXPORT_MAP := rte_pmd_af_packet_version.map +LIBABIVER := 1 + CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS)
lib/librte_pmd_bond/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_eth_bond_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pmd_e1000/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_pmd_e1000_version.map +LIBABIVER := 1 + ifeq ($(CC), icc) # # CFLAGS for icc
lib/librte_pmd_enic/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_enic.a EXPORT_MAP := rte_pmd_enic_version.map +LIBABIVER := 1 + CFLAGS += -I$(RTE_SDK)/lib/librte_pmd_enic/vnic/ CFLAGS += -I$(RTE_SDK)/lib/librte_pmd_enic/ CFLAGS += -O3
lib/librte_pmd_i40e/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_pmd_i40e_version.map +LIBABIVER := 1 + # # Add extra flags for base driver files (also known as shared code) # to disable warnings
lib/librte_pmd_ixgbe/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_pmd_ixgbe_version.map +LIBABIVER := 1 + ifeq ($(CC), icc) # # CFLAGS for icc
lib/librte_pmd_pcap/Makefile +2 -0
@@ -42,6 +42,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_pmd_pcap_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pmd_ring/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_eth_ring_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pmd_virtio/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_pmd_virtio_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pmd_vmxnet3/Makefile +2 -0
@@ -68,6 +68,8 @@ VPATH += $(RTE_SDK)/lib/librte_pmd_vmxnet3/vmxnet3 EXPORT_MAP := rte_pmd_vmxnet3_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pmd_xenvirt/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_eth_xenvirt_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_port/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_port_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_power/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -fno-strict-aliasing EXPORT_MAP := rte_power_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_POWER) := rte_power.c rte_power_acpi_cpufreq.c SRCS-$(CONFIG_RTE_LIBRTE_POWER) += rte_power_kvm_vm.c guest_channel.c
lib/librte_ring/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_ring_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_RING) := rte_ring.c
lib/librte_sched/Makefile +2 -0
@@ -43,6 +43,8 @@ CFLAGS_rte_red.o := -D_GNU_SOURCE EXPORT_MAP := rte_sched_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_table/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_table_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_timer/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_timer_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_TIMER) := rte_timer.c
lib/librte_vhost/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_vhost.a EXPORT_MAP := rte_vhost_version.map +LIBABIVER := 1 + CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -D_FILE_OFFSET_BITS=64 -lfuse LDFLAGS += -lfuse # all source are stored in SRCS-y
mk/rte.lib.mk +10 -2
@@ -37,10 +37,9 @@ include $(RTE_SDK)/mk/internal/rte.depdirs-pre.mk # VPATH contains at least SRCDIR VPATH += $(SRCDIR) - ifeq ($(RTE_BUILD_SHARED_LIB),y) -LIB := $(patsubst %.a,%.so,$(LIB)) +LIB := $(patsubst %.a,%.so.$(LIBABIVER),$(LIB)) CPU_LDFLAGS += --version-script=$(SRCDIR)/$(EXPORT_MAP) endif
@@ -113,6 +112,10 @@ lib_dir = [ -d $(RTE_OUTPUT)/lib ] || mkdir -p $(RTE_OUTPUT)/lib; # ifeq ($(RTE_BUILD_SHARED_LIB),y) $(LIB): $(OBJS-y) $(DEP_$(LIB)) FORCE +ifeq ($(LIBABIVER),) + @echo "Must Specify a $(LIB) ABI version" + @false +endif @[ -d $(dir $@) ] || mkdir -p $(dir $@) $(if $(D),\ @echo -n "$< -> $@ " ; \
@@ -126,6 +129,7 @@ $(LIB): $(OBJS-y) $(DEP_$(LIB)) FORCE $(depfile_missing),\ $(depfile_newer)),\ $(O_TO_S_DO)) + ifeq ($(RTE_BUILD_COMBINE_LIBS),y) $(if $(or \ $(file_missing),\
@@ -163,9 +167,13 @@ endif # install lib in $(RTE_OUTPUT)/lib # $(RTE_OUTPUT)/lib/$(LIB): $(LIB) + $(eval LIBSONAME := $(basename $(LIB))) @echo " INSTALL-LIB $(LIB)" @[ -d $(RTE_OUTPUT)/lib ] || mkdir -p $(RTE_OUTPUT)/lib $(Q)cp -f $(LIB) $(RTE_OUTPUT)/lib +ifeq ($(RTE_BUILD_SHARED_LIB),y) + $(Q)ln -s -f $< $(RTE_OUTPUT)/lib/$(LIBSONAME) +endif # # Clean all generated files
Signature · 1 line
2.1.0
PATCH v8 4/4 docs: Add ABI documentation
In reply to a message not in the archiveAdding a document describing rudimentary ABI policy and adding notice space for any deprecation announcements
---
Change notes:
v5) Updated documentation to add notes from Thomas M.
v6) Moved abi.txt to guides/rel_notes/abi.rst
v7) Updated abi.rst to integrate with index file
Updated abi.rst to conform to rst formatting
Updated abi.rst to include example deprecation notices. Its not exactly the
language that Thomas indicated, but I think it makes the idea clear.
v8) Add missing file index.rst which was left out of the prior commit
--- doc/guides/rel_notes/abi.rst | 40 ++++++++++++++++++++++++++++++++++++++++ doc/guides/rel_notes/index.rst | 1 + 2 files changed, 41 insertions(+) create mode 100644 doc/guides/rel_notes/abi.rst
doc/guides/rel_notes/abi.rst new file +40 -0
@@ -0,0 +1,40 @@ +ABI policy +========== +ABI versions are set at the time of major release labeling, and ABI may change +multiple times between the last labeling and the HEAD label of the git tree +without warning. + +ABI versions, once released are available until such time as their +deprecation has been noted here for at least one major release cycle, after it +has been tagged. E.g. the ABI for DPDK 1.8 is shipped, and then the decision to +remove it is made during the development of DPDK 1.9. The decision will be +recorded here, shipped with the DPDK 1.9 release, and actually removed when DPDK +1.10 ships. + +ABI versions may be deprecated in whole, or in part as needed by a given update. + +Some ABI changes may be too significant to reasonably maintain multiple +versions of. In those events ABI's may be updated without backward +compatibility provided. The requirements for doing so are: + +#. At least 3 acknoweldgements of the need on the dpdk.org +#. A full deprecation cycle must be made to offer downstream consumers sufficient warning of the change. E.g. if dpdk 2.0 is under development when the change is proposed, a deprecation notice must be added to this file, and released with dpdk 2.0. Then the change may be incorporated for dpdk 2.1 +#. The LIBABIVER variable in the makefilei(s) where the ABI changes are incorporated must be incremented in parallel with the ABI changes themselves + +Note that the above process for ABI deprecation should not be undertaken +lightly. ABI stability is extreemely important for downstream consumers of the +DPDK, especially when distributed in shared object form. Every effort should be +made to preserve ABI whenever possible. For instance, reorganizing public +structure field for astetic or readability purposes should be avoided as it will +cause ABI breakage. Only significant (e.g. performance) reasons should be seen +as cause to alter ABI. + +Examples of Deprecation notices +------------------------------- +* The Macro #RTE_FOO is deprecated and will be removed with version 2.0, to be replaced with the inline function rte_bar() +* The function rte_mbuf_grok has been updated to include new parameter in version 2.0. Backwards compatibility will be maintained for this function until the release of version 2.1 +* The members struct foo have been reorganized in release 2.0. Existing binary applications will have backwards compatibility in release 2.0, while newly built binaries will need to reference new structure variant struct foo2. Compatibility will be removed in release 2.2, and all applications will require updating a rebuilding to the new structure at that time, which will be renamed to the origional struct foo. +* Significant ABI changes are planned for the librte_dostuff library. The upcomming release 2.0 will not contain these changes, but release 2.1 will, and no backwards compatibility is planned due to the invasive nature of these changes. Binaries using this library built prior to version 2.1 will require updating and recompilation. + +Deprecation Notices +-------------------
doc/guides/rel_notes/index.rst +1 -0
@@ -48,4 +48,5 @@ Contents updating_apps known_issues resolved_issues + abi faq
Signature · 1 line
2.1.0
A message that is not in the archive (sent off-list or not yet received): 1421941756-30948-4-git-send-email-nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org
Butler, Siobhan A
Acked-byRe: [PATCH v8 4/4] docs: Add ABI documentation
Quoted 110 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Neil Horman
Sent: Thursday, January 22, 2015 3:49 PM
To: [email protected]
Subject: [dpdk-dev] [PATCH v8 4/4] docs: Add ABI documentationAdding a document describing rudimentary ABI policy and adding notice space for any deprecation announcements
Signed-off-by Neil Horman <[email protected]>CC Thomas Monjalon <[email protected]>CC "Richardson, Bruce" <[email protected]>---
Change notes:v5) Updated documentation to add notes from Thomas M.
v6) Moved abi.txt to
guides/rel_notes/abi.rstv7) Updated
abi.rstto integrate with index file
Updatedabi.rstto conform to rst formatting
Updatedabi.rstto include example deprecation notices. Its not exactly the
language that Thomas indicated, but I think it makes the idea clear.v8) Add missing file
index.rstwhich was left out of the prior commit--- doc/guides/rel_notes/abi.rst | 40 ++++++++++++++++++++++++++++++++++++++++ doc/guides/rel_notes/index.rst | 1 + 2 files changed, 41 insertions(+) create mode 100644 doc/guides/rel_notes/abi.rstdoc/guides/rel_notes/abi.rst new renamed from doc/guides/rel_notes/abi.rst +0
-0file mode 100644 index 0000000..73d88ca
doc/guides/rel_notes/abi.rst new file +15
-0@@ -0,0 +1,40 @@ +ABI policy +========== +ABI versions are set at the time of major release labeling, and ABI may +change multiple times between the last labeling and the HEAD label of +the git tree without warning. + +ABI versions, once released are available until such time as their +deprecation has been noted here for at least one major release cycle, +after it has been tagged. E.g. the ABI for DPDK 1.8 is shipped, and +then the decision to remove it is made during the development of DPDK +1.9. The decision will be recorded here, shipped with the DPDK 1.9 +release, and actually removed when DPDK +1.10 ships. + +ABI versions may be deprecated in whole, or in part as needed by a givenupdate.
doc/guides/rel_notes/abi.rst new file +21
-0+ +Some ABI changes may be too significant to reasonably maintain multiple +versions of. In those events ABI's may be updated without backward +compatibility provided. The requirements for doing so are: + +#. At least 3 acknoweldgements of the need on the dpdk.org #. A full +deprecation cycle must be made to offer downstream consumers sufficient +warning of the change. E.g. if dpdk 2.0 is under development when the +change is proposed, a deprecation notice must be added to this file, +and released with dpdk 2.0. Then the change may be incorporated for +dpdk 2.1 #. The LIBABIVER variable in the makefilei(s) where the ABI +changes are incorporated must be incremented in parallel with the ABI +changes themselves + +Note that the above process for ABI deprecation should not be +undertaken lightly. ABI stability is extreemely important for +downstream consumers of the DPDK, especially when distributed in shared +object form. Every effort should be made to preserve ABI whenever +possible. For instance, reorganizing public structure field for +astetic or readability purposes should be avoided as it will cause ABI +breakage. Only significant (e.g. performance) reasons should be seen ascause to alter ABI.
doc/guides/rel_notes/abi.rst new file +9
-0+ +Examples of Deprecation notices +------------------------------- +* The Macro #RTE_FOO is deprecated and will be removed with version +2.0, to be replaced with the inline function rte_bar() +* The function rte_mbuf_grok has been updated to include new parameter +in version 2.0. Backwards compatibility will be maintained for this +function until the release of version 2.1 +* The members struct foo have been reorganized in release 2.0. Existingbinary applications will have backwards compatibility in release 2.0, while newly built binaries will need to reference new structure variant struct foo2. Compatibility will be removed in release 2.2, and all applications will require updating a rebuilding to the new structure at that time, which will be renamed to the origional struct foo.
+* Significant ABI changes are planned for thelibrte_dostufflibrary. The upcomming release 2.0 will not contain these changes, but release 2.1 will, and no backwards compatibility is planned due to the invasive nature of these changes. Binaries using this library built prior to version 2.1 will require updating and recompilation.doc/guides/rel_notes/abi.rst new file +3
-0+ +Deprecation Notices +-------------------doc/guides/rel_notes/index.rst +1
-1@@ -48,4 +48,5 @@ Contents updating_apps known_issues resolved_issues + abi faq --
Quoted 1 line
2.1.0
Re: [PATCH v8 4/4] docs: Add ABI documentation
In reply to a message not in the archive2015-01-22 10:49, Neil Horman:
Quoted 6 lines
Adding a document describing rudimentary ABI policy and adding notice space for any deprecation announcements
Signed-off-by Neil Horman <[email protected]>CC Thomas Monjalon <[email protected]>CC "Richardson, Bruce" <[email protected]>
[...]
Quoted 2 lines
+Examples of Deprecation notices
+-------------------------------
Curiosity: what is the rule to use uppercase letter in an english title?
doc/guides/rel_notes/abi.rst line 36
Quoted 3 lines
doc/guides/rel_notes/abi.rst new file +3
-0+* The Macro #RTE_FOO is deprecated and will be removed with version 2.0, to be replaced with the inline function rte_bar() +* The function rte_mbuf_grok has been updated to include new parameter in version 2.0. Backwards compatibility will be maintained for this function until the release of version 2.1 +* The members struct foo have been reorganized in release 2.0. Existing binary applications will have backwards compatibility in release 2.0, while newly built binaries will need to reference new structure variant struct foo2. Compatibility will be removed in release 2.2, and all applications will require updating a rebuilding to the new structure at that time, which will be renamed to the origional struct foo.
What means "will require updating a rebuilding to the new structure"?
origional -> original
Quoted 1 line
+* Significant ABI changes are planned for the
librte_dostufflibrary. The upcomming release 2.0 will not contain these changes, but release 2.1 will, and no backwards compatibility is planned due to the invasive nature of these changes. Binaries using this library built prior to version 2.1 will require updating and recompilation.
upcomming -> upcoming
Thanks
Signature · 1 line
Thomas
Re: [PATCH v8 4/4] docs: Add ABI documentation
Quoted 4 lines · Thomas Monjalon
2015-01-22 10:49, Neil Horman:
Quoted 3 lines
Adding a document describing rudimentary ABI policy and adding notice space for any deprecation announcements
Quoted 9 lines
Quoted 3 lines
Signed-off-by Neil Horman <[email protected]>CC Thomas Monjalon <[email protected]>CC "Richardson, Bruce" <[email protected]>[...]
Quoted 2 lines
+Examples of Deprecation notices
+-------------------------------Curiosity: what is the rule to use uppercase letter in an english title?
According to MLA:
https://owl.english.purdue.edu/owl/resource/747/01/
Section and Title headings should use title case, capitalizing the primary words. As such the n in notices should be capitalized.
Quoted 6 lines
doc/guides/rel_notes/abi.rst line 36
Quoted 3 lines
doc/guides/rel_notes/abi.rst new file +3
-0+* The Macro #RTE_FOO is deprecated and will be removed with version 2.0, to be replaced with the inline function rte_bar() +* The function rte_mbuf_grok has been updated to include new parameter in version 2.0. Backwards compatibility will be maintained for this function until the release of version 2.1 +* The members struct foo have been reorganized in release 2.0. Existing binary applications will have backwards compatibility in release 2.0, while newly built binaries will need to reference new structure variant struct foo2. Compatibility will be removed in release 2.2, and all applications will require updating a rebuilding to the new structure at that time, which will be renamed to the origional struct foo.What means "will require updating a rebuilding to the new structure"?
the "a" should be "and"
Quoted 6 lines
origional -> original
Quoted 1 line
+* Significant ABI changes are planned for the
librte_dostufflibrary. The upcomming release 2.0 will not contain these changes, but release 2.1 will, and no backwards compatibility is planned due to the invasive nature of these changes. Binaries using this library built prior to version 2.1 will require updating and recompilation.upcomming -> upcoming
Very will, I'll send an updated version of this patch.
Quoted 4 lines
Thanks
Signature · 1 line
Thomas
Re: [PATCH v8 1/4] compat: Add infrastructure to support symbol versioning
In reply to a message not in the archive2015-01-22 10:49, Neil Horman:
Quoted 3 lines
Add initial pass header files to support symbol versioning.
Signed-off-by Neil Horman <[email protected]>
[...]
Quoted 6 lines
lib/librte_compat/Makefile new file +3
-0@@ -0,0 +1,38 @@ +# BSD LICENSE +# +# Copyright(c) 2013 Neil Horman <[email protected]>
[...]
lib/librte_compat/rte_compat.h line 4
Quoted 7 lines
lib/librte_compat/rte_compat.h new file +4
-0@@ -0,0 +1,117 @@ +/*- +* BSD LICENSE +* +* Copyright(c) 2010 Neil Horman <[email protected]>.
These years (2010, 2013) are weird. Your patchset is not so old ;)
lib/librte_compat/rte_compat.h line 17
Quoted 1 line
lib/librte_compat/rte_compat.h new file +1
-0+* * Neither the name of Intel Corporation nor the names of its
Are you sure that's what you mean?
In general, we put the name of our company here.
Signature · 1 line
Thomas
Re: [PATCH v8 1/4] compat: Add infrastructure to support symbol versioning
Quoted 22 lines · Thomas Monjalon
2015-01-22 10:49, Neil Horman:
Quoted 3 lines
Add initial pass header files to support symbol versioning.
Signed-off-by Neil Horman <[email protected]>[...]
Quoted 6 lines
lib/librte_compat/Makefile new file +3
-0@@ -0,0 +1,38 @@ +# BSD LICENSE +# +# Copyright(c) 2013 Neil Horman <[email protected]>[...]
lib/librte_compat/rte_compat.h line 4
Quoted 7 lines
lib/librte_compat/rte_compat.h new file +4
-0@@ -0,0 +1,117 @@ +/*- +* BSD LICENSE +* +* Copyright(c) 2010 Neil Horman <[email protected]>. These years (2010, 2013) are weird. Your patchset is not so old ;)
Quoted 5 lines
lib/librte_compat/rte_compat.h line 17
Quoted 1 line
lib/librte_compat/rte_compat.h new file +1
-0+* * Neither the name of Intel Corporation nor the names of its Are you sure that's what you mean?
In general, we put the name of our company here.
The copyright was borrowed from the header file in another directory, I can update it if you like, though I'm not sure how relevant it is.
As for the Intel language, I can certainly remove it. Neil
Quoted 3 lines
Signature · 1 line
Thomas
PATCH v9 1/4 compat: Add infrastructure to support symbol versioning
In reply to a message not in the archiveAdd initial pass header files to support symbol versioning.
---
Change Notes:
V2)
Moved ifeq to _INSTALL target
V3)
Undo V2 changes and make librte_compat use the rte.install.mk file
instead
v4)
changed --version-script to accept SRCDIR in this patch at per request documented versioning macros
cleaned up macro parameter consistency
converted SA macro to RTE_STR macro
fixed copyright
v9) Fixed some typos in copyright
--- lib/Makefile | 1 + lib/librte_compat/Makefile | 38 ++++++++++++++ lib/librte_compat/rte_compat.h | 114 +++++++++++++++++++++++++++++++++++++++++ mk/rte.lib.mk | 4 ++ 4 files changed, 157 insertions(+) create mode 100644 lib/librte_compat/Makefile create mode 100644 lib/librte_compat/rte_compat.h
lib/Makefile +1 -0
@@ -31,6 +31,7 @@ include $(RTE_SDK)/mk/rte.vars.mk +DIRS-y += librte_compat DIRS-$(CONFIG_RTE_LIBRTE_EAL) += librte_eal DIRS-$(CONFIG_RTE_LIBRTE_MALLOC) += librte_malloc DIRS-$(CONFIG_RTE_LIBRTE_RING) += librte_ring
lib/librte_compat/Makefile new file +38 -0
@@ -0,0 +1,38 @@ +# BSD LICENSE +# +# Copyright(c) 2013 Neil Horman <[email protected]> +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in +# the documentation and/or other materials provided with the +# distribution. +# * Neither the name of Intel Corporation nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +include $(RTE_SDK)/mk/rte.vars.mk + + +# install includes +SYMLINK-y-include := rte_compat.h + +include $(RTE_SDK)/mk/rte.install.mk
lib/librte_compat/rte_compat.h new file +114 -0
114 lines not on this page · raw message
mk/rte.lib.mk +4 -0
@@ -40,8 +40,12 @@ VPATH += $(SRCDIR) ifeq ($(RTE_BUILD_SHARED_LIB),y) LIB := $(patsubst %.a,%.so,$(LIB)) + +CPU_LDFLAGS += --version-script=$(SRCDIR)/$(EXPORT_MAP) + endif + _BUILD = $(LIB) _INSTALL = $(INSTALL-FILES-y) $(SYMLINK-FILES-y) $(RTE_OUTPUT)/lib/$(LIB) _CLEAN = doclean
Signature · 1 line
2.1.0
A message that is not in the archive (sent off-list or not yet received): 1422898822-16422-1-git-send-email-nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org
PATCH v9 2/4 Provide initial versioning for all DPDK libraries
Add linker version script files to each DPDK library to put a stake in the ground from which we can start cleaning up API's
---
Change Notes:
v2)
* Updated export map to not require full path
--- lib/librte_acl/Makefile | 2 + lib/librte_acl/rte_acl_version.map | 21 ++++ lib/librte_cfgfile/Makefile | 2 + lib/librte_cfgfile/rte_cfgfile_version.map | 14 +++ lib/librte_cmdline/Makefile | 2 + lib/librte_cmdline/rte_cmdline_version.map | 69 +++++++++++++ lib/librte_distributor/Makefile | 2 + lib/librte_distributor/rte_distributor_version.map | 16 +++ lib/librte_eal/bsdapp/eal/Makefile | 2 + lib/librte_eal/bsdapp/eal/rte_eal_version.map | 90 ++++++++++++++++ lib/librte_eal/linuxapp/eal/Makefile | 2 + lib/librte_eal/linuxapp/eal/rte_eal_version.map | 90 ++++++++++++++++ lib/librte_ether/Makefile | 2 + lib/librte_ether/rte_ether_version.map | 113 +++++++++++++++++++++ lib/librte_hash/Makefile | 2 + lib/librte_hash/rte_hash_version.map | 18 ++++ lib/librte_ip_frag/Makefile | 2 + lib/librte_ip_frag/rte_ipfrag_version.map | 14 +++ lib/librte_ivshmem/Makefile | 2 + lib/librte_ivshmem/rte_ivshmem_version.map | 13 +++ lib/librte_kni/Makefile | 2 + lib/librte_kni/rte_kni_version.map | 20 ++++ lib/librte_kvargs/Makefile | 2 + lib/librte_kvargs/rte_kvargs_version.map | 10 ++ lib/librte_lpm/Makefile | 2 + lib/librte_lpm/rte_lpm_version.map | 24 +++++ lib/librte_malloc/Makefile | 2 + lib/librte_malloc/rte_malloc_version.map | 19 ++++ lib/librte_mbuf/Makefile | 2 + lib/librte_mbuf/rte_mbuf_version.map | 14 +++ lib/librte_mempool/Makefile | 2 + lib/librte_mempool/rte_mempool_version.map | 18 ++++ lib/librte_meter/Makefile | 2 + lib/librte_meter/rte_meter_version.map | 13 +++ lib/librte_pipeline/Makefile | 2 + lib/librte_pipeline/rte_pipeline_version.map | 23 +++++ lib/librte_pmd_af_packet/Makefile | 2 + .../rte_pmd_af_packet_version.map | 7 ++ lib/librte_pmd_bond/Makefile | 2 + lib/librte_pmd_bond/rte_eth_bond_version.map | 21 ++++ lib/librte_pmd_e1000/Makefile | 2 + lib/librte_pmd_e1000/rte_pmd_e1000_version.map | 5 + lib/librte_pmd_enic/Makefile | 2 + lib/librte_pmd_enic/rte_pmd_enic_version.map | 5 + lib/librte_pmd_i40e/Makefile | 2 + lib/librte_pmd_i40e/rte_pmd_i40e_version.map | 5 + lib/librte_pmd_ixgbe/Makefile | 2 + lib/librte_pmd_ixgbe/rte_pmd_ixgbe_version.map | 5 + lib/librte_pmd_pcap/Makefile | 2 + lib/librte_pmd_pcap/rte_pmd_pcap_version.map | 5 + lib/librte_pmd_ring/Makefile | 2 + lib/librte_pmd_ring/rte_eth_ring.c | 2 +- lib/librte_pmd_ring/rte_eth_ring.h | 6 -- lib/librte_pmd_ring/rte_eth_ring_version.map | 10 ++ lib/librte_pmd_virtio/Makefile | 1 + lib/librte_pmd_virtio/rte_pmd_virtio_version.map | 5 + lib/librte_pmd_vmxnet3/Makefile | 2 + lib/librte_pmd_vmxnet3/rte_pmd_vmxnet3_version.map | 5 + lib/librte_pmd_xenvirt/Makefile | 2 + lib/librte_pmd_xenvirt/rte_eth_xenvirt_version.map | 8 ++ lib/librte_port/Makefile | 2 + lib/librte_port/rte_port_version.map | 18 ++++ lib/librte_power/Makefile | 2 + lib/librte_power/rte_power_version.map | 18 ++++ lib/librte_ring/Makefile | 2 + lib/librte_ring/rte_ring_version.map | 12 +++ lib/librte_sched/Makefile | 2 + lib/librte_sched/rte_sched_version.map | 22 ++++ lib/librte_table/Makefile | 2 + lib/librte_table/rte_table_version.map | 22 ++++ lib/librte_timer/Makefile | 2 + lib/librte_timer/rte_timer_version.map | 16 +++ lib/librte_vhost/Makefile | 2 + lib/librte_vhost/rte_vhost_version.map | 14 +++ 74 files changed, 874 insertions(+), 7 deletions(-) create mode 100644 lib/librte_acl/rte_acl_version.map create mode 100644 lib/librte_cfgfile/rte_cfgfile_version.map create mode 100644 lib/librte_cmdline/rte_cmdline_version.map create mode 100644 lib/librte_distributor/rte_distributor_version.map create mode 100644 lib/librte_eal/bsdapp/eal/rte_eal_version.map create mode 100644 lib/librte_eal/linuxapp/eal/rte_eal_version.map create mode 100644 lib/librte_ether/rte_ether_version.map create mode 100644 lib/librte_hash/rte_hash_version.map create mode 100644 lib/librte_ip_frag/rte_ipfrag_version.map create mode 100644 lib/librte_ivshmem/rte_ivshmem_version.map create mode 100644 lib/librte_kni/rte_kni_version.map create mode 100644 lib/librte_kvargs/rte_kvargs_version.map create mode 100644 lib/librte_lpm/rte_lpm_version.map create mode 100644 lib/librte_malloc/rte_malloc_version.map create mode 100644 lib/librte_mbuf/rte_mbuf_version.map create mode 100644 lib/librte_mempool/rte_mempool_version.map create mode 100644 lib/librte_meter/rte_meter_version.map create mode 100644 lib/librte_pipeline/rte_pipeline_version.map create mode 100644 lib/librte_pmd_af_packet/rte_pmd_af_packet_version.map create mode 100644 lib/librte_pmd_bond/rte_eth_bond_version.map create mode 100644 lib/librte_pmd_e1000/rte_pmd_e1000_version.map create mode 100644 lib/librte_pmd_enic/rte_pmd_enic_version.map create mode 100644 lib/librte_pmd_i40e/rte_pmd_i40e_version.map create mode 100644 lib/librte_pmd_ixgbe/rte_pmd_ixgbe_version.map create mode 100644 lib/librte_pmd_pcap/rte_pmd_pcap_version.map create mode 100644 lib/librte_pmd_ring/rte_eth_ring_version.map create mode 100644 lib/librte_pmd_virtio/rte_pmd_virtio_version.map create mode 100644 lib/librte_pmd_vmxnet3/rte_pmd_vmxnet3_version.map create mode 100644 lib/librte_pmd_xenvirt/rte_eth_xenvirt_version.map create mode 100644 lib/librte_port/rte_port_version.map create mode 100644 lib/librte_power/rte_power_version.map create mode 100644 lib/librte_ring/rte_ring_version.map create mode 100644 lib/librte_sched/rte_sched_version.map create mode 100644 lib/librte_table/rte_table_version.map create mode 100644 lib/librte_timer/rte_timer_version.map create mode 100644 lib/librte_vhost/rte_vhost_version.map
lib/librte_acl/Makefile +2 -0
@@ -37,6 +37,8 @@ LIB = librte_acl.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) +EXPORT_MAP := rte_acl_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_ACL) += tb_mem.c
lib/librte_acl/rte_acl_version.map new file +21 -0
@@ -0,0 +1,21 @@ +DPDK_1.8 { + global: + rte_acl_create; + rte_acl_find_existing; + rte_acl_free; + rte_acl_add_rules; + rte_acl_reset_rules; + rte_acl_build; + rte_acl_reset; + rte_acl_classify; + rte_acl_dump; + rte_acl_list_dump; + rte_acl_ipv4vlan_add_rules; + rte_acl_ipv4vlan_build; + rte_acl_classify_scalar; + rte_acl_classify_alg; + rte_acl_set_ctx_classify; + + local: *; +}; +
lib/librte_cfgfile/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_cfgfile.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_cfgfile_version.map + # # all source are stored in SRCS-y #
lib/librte_cfgfile/rte_cfgfile_version.map new file +14 -0
@@ -0,0 +1,14 @@ +DPDK_1.8 { + global: + rte_cfgfile_load; + rte_cfgfile_num_sections; + rte_cfgfile_sections; + rte_cfgfile_has_section; + rte_cfgfile_section_num_entries; + rte_cfgfile_section_entries; + rte_cfgfile_get_entry; + rte_cfgfile_has_entry; + rte_cfgfile_close; + + local: *; +};
lib/librte_cmdline/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_cmdline.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_cmdline_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_CMDLINE) := cmdline.c SRCS-$(CONFIG_RTE_LIBRTE_CMDLINE) += cmdline_cirbuf.c
lib/librte_cmdline/rte_cmdline_version.map new file +69 -0
69 lines not on this page · raw message
lib/librte_distributor/Makefile +2 -0
@@ -37,6 +37,8 @@ LIB = librte_distributor.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) +EXPORT_MAP := rte_distributor_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) := rte_distributor.c
lib/librte_distributor/rte_distributor_version.map new file +16 -0
@@ -0,0 +1,16 @@ +DPDK_1.8 { + + global: + rte_distributor_create; + rte_distributor_process; + rte_distributor_returned_pkts; + rte_distributor_flush; + rte_distributor_clear_returns; + rte_distributor_get_pkt; + rte_distributor_return_pkt; + rte_distributor_request_pkt; + rte_distributor_poll_pkt; + + local: *; +}; +
lib/librte_eal/bsdapp/eal/Makefile +2 -0
@@ -46,6 +46,8 @@ CFLAGS += -I$(RTE_SDK)/lib/librte_pmd_ring CFLAGS += -I$(RTE_SDK)/lib/librte_pmd_pcap CFLAGS += $(WERROR_FLAGS) -O3 +EXPORT_MAP := rte_eal_version.map + # specific to linuxapp exec-env SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) := eal.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal_memory.c
lib/librte_eal/bsdapp/eal/rte_eal_version.map new file +90 -0
90 lines not on this page · raw message
lib/librte_eal/linuxapp/eal/Makefile +2 -0
@@ -33,6 +33,8 @@ include $(RTE_SDK)/mk/rte.vars.mk LIB = librte_eal.a +EXPORT_MAP := rte_eal_version.map + VPATH += $(RTE_SDK)/lib/librte_eal/common CFLAGS += -I$(SRCDIR)/include
lib/librte_eal/linuxapp/eal/rte_eal_version.map new file +90 -0
90 lines not on this page · raw message
lib/librte_ether/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = libethdev.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_ether_version.map + SRCS-y += rte_ethdev.c #
lib/librte_ether/rte_ether_version.map new file +113 -0
113 lines not on this page · raw message
lib/librte_hash/Makefile +2 -0
@@ -37,6 +37,8 @@ LIB = librte_hash.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) +EXPORT_MAP := rte_hash_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_HASH) := rte_hash.c SRCS-$(CONFIG_RTE_LIBRTE_HASH) += rte_fbk_hash.c
lib/librte_hash/rte_hash_version.map new file +18 -0
@@ -0,0 +1,18 @@ +DPDK_1.8 { + global: + rte_fbk_hash_find_existing; + rte_fbk_hash_create; + rte_fbk_hash_free; + rte_hash_create; + rte_hash_find_existing; + rte_hash_free; + rte_hash_add_key; + rte_hash_add_key_with_hash; + rte_hash_del_key; + rte_hash_del_key_with_hash; + rte_hash_lookup; + rte_hash_lookup_with_hash; + rte_hash_lookup_bulk; + + local: *; +};
lib/librte_ip_frag/Makefile +2 -0
@@ -37,6 +37,8 @@ LIB = librte_ip_frag.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) +EXPORT_MAP := rte_ipfrag_version.map + #source files ifeq ($(CONFIG_RTE_MBUF_REFCNT),y) SRCS-$(CONFIG_RTE_LIBRTE_IP_FRAG) += rte_ipv4_fragmentation.c
lib/librte_ip_frag/rte_ipfrag_version.map new file +14 -0
@@ -0,0 +1,14 @@ +DPDK_1.8 { + global: + + rte_ip_frag_table_create; + rte_ipv6_fragment_packet; + rte_ipv6_frag_reassemble_packet; + rte_ipv4_fragment_packet; + rte_ipv4_frag_reassemble_packet; + rte_ip_frag_free_death_row; + rte_ip_frag_table_statistics_dump; + + local: *; +}; +
lib/librte_ivshmem/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_ivshmem.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_ivshmem_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_IVSHMEM) := rte_ivshmem.c
lib/librte_ivshmem/rte_ivshmem_version.map new file +13 -0
@@ -0,0 +1,13 @@ +DPDK_1.8 { + global: + + rte_ivshmem_metadata_create; + rte_ivshmem_metadata_add_memzone; + rte_ivshmem_metadata_add_ring; + rte_ivshmem_metadata_add_mempool; + rte_ivshmem_metadata_cmdline_generate; + rte_ivshmem_metadata_dump; + + local: *; +}; +
lib/librte_kni/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_kni.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -fno-strict-aliasing +EXPORT_MAP := rte_kni_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_KNI) := rte_kni.c
lib/librte_kni/rte_kni_version.map new file +20 -0
@@ -0,0 +1,20 @@ +DPDK_1.8 { + global: + + rte_kni_alloc; + rte_kni_create; + rte_kni_release; + rte_kni_handle_request; + rte_kni_rx_burst; + rte_kni_tx_burst; + rte_kni_get_port_id; + rte_kni_get; + rte_kni_info_get; + rte_kni_register_handlers; + rte_kni_unregister_handlers; + rte_kni_close; + rte_kni_init; + + local: *; +}; +
lib/librte_kvargs/Makefile +2 -0
@@ -38,6 +38,8 @@ LIB = librte_kvargs.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_kvargs_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_KVARGS) := rte_kvargs.c
lib/librte_kvargs/rte_kvargs_version.map new file +10 -0
@@ -0,0 +1,10 @@ +DPDK_1.8 { + + global: + rte_kvargs_parse; + rte_kvargs_free; + rte_kvargs_process; + rte_kvargs_count; + + local: *; +};
lib/librte_lpm/Makefile +2 -0
@@ -37,6 +37,8 @@ LIB = librte_lpm.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) +EXPORT_MAP := rte_lpm_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_LPM) := rte_lpm.c rte_lpm6.c
lib/librte_lpm/rte_lpm_version.map new file +24 -0
@@ -0,0 +1,24 @@ +DPDK_1.8 { + global: + + rte_lpm_create; + rte_lpm_find_existing; + rte_lpm_free; + rte_lpm_add; + rte_lpm_is_rule_present; + rte_lpm_delete; + rte_lpm_delete_all; + rte_lpm6_create; + rte_lpm6_find_existing; + rte_lpm6_free; + rte_lpm6_add; + rte_lpm6_is_rule_present; + rte_lpm6_delete; + rte_lpm6_delete_bulk_func; + rte_lpm6_delete_all; + rte_lpm6_lookup; + rte_lpm6_lookup_bulk_func; + + local: *; +}; +
lib/librte_malloc/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_malloc.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_malloc_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_MALLOC) := rte_malloc.c malloc_elem.c malloc_heap.c
lib/librte_malloc/rte_malloc_version.map new file +19 -0
@@ -0,0 +1,19 @@ +DPDK_1.8 { + global: + + rte_malloc; + rte_zmalloc; + rte_calloc; + rte_realloc; + rte_malloc_socket; + rte_zmalloc_socket; + rte_calloc_socket; + rte_free; + rte_malloc_validate; + rte_malloc_get_socket_stats; + rte_malloc_dump_stats; + rte_malloc_set_limit; + rte_malloc_virt2phy; + + local: *; +};
lib/librte_mbuf/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_mbuf.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_mbuf_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_MBUF) := rte_mbuf.c
lib/librte_mbuf/rte_mbuf_version.map new file +14 -0
@@ -0,0 +1,14 @@ +DPDK_1.8 { + global: + + rte_mbuf_sanity_check; + rte_ctrlmbuf_init; + rte_pktmbuf_init; + rte_pktmbuf_pool_init; + rte_pktmbuf_dump; + rte_get_rx_ol_flag_name; + rte_get_tx_ol_flag_name; + + local: *; +}; +
lib/librte_mempool/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_mempool.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_mempool_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_MEMPOOL) += rte_mempool.c ifeq ($(CONFIG_RTE_LIBRTE_XEN_DOM0),y)
lib/librte_mempool/rte_mempool_version.map new file +18 -0
@@ -0,0 +1,18 @@ +DPDK_1.8 { + global: + + rte_mempool_create; + rte_mempool_xmem_create; + rte_dom0_mempool_create; + rte_mempool_dump; + rte_mempool_audit; + rte_mempool_list_dump; + rte_mempool_lookup; + rte_mempool_calc_obj_size; + rte_mempool_xmem_size; + rte_mempool_xmem_usage; + rte_mempool_walk; + rte_mempool_count; + + local: *; +};
lib/librte_meter/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_meter.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_meter_version.map + # # all source are stored in SRCS-y #
lib/librte_meter/rte_meter_version.map new file +13 -0
@@ -0,0 +1,13 @@ +DPDK_1.8 { + global: + + rte_meter_srtcm_config; + rte_meter_trtcm_config; + rte_meter_srtcm_color_blind_check; + rte_meter_srtcm_color_aware_check; + rte_meter_trtcm_color_blind_check; + rte_meter_trtcm_color_aware_check; + + local: *; +}; +
lib/librte_pipeline/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pipeline.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_pipeline_version.map + # # all source are stored in SRCS-y #
lib/librte_pipeline/rte_pipeline_version.map new file +23 -0
@@ -0,0 +1,23 @@ +DPDK_1.8 { + global: + + rte_pipeline_create; + rte_pipeline_free; + rte_pipeline_check; + rte_pipeline_run; + rte_pipeline_flush; + rte_pipeline_table_create; + rte_pipeline_table_default_entry_add; + rte_pipeline_table_default_entry_delete; + rte_pipeline_table_entry_add; + rte_pipeline_table_entry_delete; + rte_pipeline_port_in_create; + rte_pipeline_port_in_connect_to_table; + rte_pipeline_port_in_enable; + rte_pipeline_port_in_disable; + rte_pipeline_port_out_create; + rte_pipeline_port_out_packet_insert; + + local: *; +}; +
lib/librte_pmd_af_packet/Makefile +2 -0
@@ -38,6 +38,8 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB = librte_pmd_af_packet.a +EXPORT_MAP := rte_pmd_af_packet_version.map + CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS)
lib/librte_pmd_af_packet/rte_pmd_af_packet_version.map new file +7 -0
@@ -0,0 +1,7 @@ +DPDK_1.8 { + global: + rte_pmd_af_packet_devinit; + + local: *; +}; +
lib/librte_pmd_bond/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_bond.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_eth_bond_version.map + # # all source are stored in SRCS-y #
lib/librte_pmd_bond/rte_eth_bond_version.map new file +21 -0
@@ -0,0 +1,21 @@ +DPDK_1.8 { + global: + + rte_eth_bond_create; + rte_eth_bond_slave_add; + rte_eth_bond_slave_remove; + rte_eth_bond_mode_set; + rte_eth_bond_mode_get; + rte_eth_bond_primary_set; + rte_eth_bond_primary_get; + rte_eth_bond_slaves_get; + rte_eth_bond_active_slaves_get; + rte_eth_bond_mac_address_set; + rte_eth_bond_mac_address_reset; + rte_eth_bond_xmit_policy_set; + rte_eth_bond_xmit_policy_get; + rte_eth_bond_link_monitoring_set; + + local: *; +}; +
lib/librte_pmd_e1000/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_e1000.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_pmd_e1000_version.map + ifeq ($(CC), icc) # # CFLAGS for icc
lib/librte_pmd_e1000/rte_pmd_e1000_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_enic/Makefile +2 -0
@@ -37,6 +37,8 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB = librte_pmd_enic.a +EXPORT_MAP := rte_pmd_enic_version.map + CFLAGS += -I$(RTE_SDK)/lib/librte_pmd_enic/vnic/ CFLAGS += -I$(RTE_SDK)/lib/librte_pmd_enic/ CFLAGS += -O3
lib/librte_pmd_enic/rte_pmd_enic_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_i40e/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_i40e.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_pmd_i40e_version.map + # # Add extra flags for base driver files (also known as shared code) # to disable warnings
lib/librte_pmd_i40e/rte_pmd_i40e_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_ixgbe/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_ixgbe.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_pmd_ixgbe_version.map + ifeq ($(CC), icc) # # CFLAGS for icc
lib/librte_pmd_ixgbe/rte_pmd_ixgbe_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_pcap/Makefile +2 -0
@@ -40,6 +40,8 @@ LIB = librte_pmd_pcap.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_pmd_pcap_version.map + # # all source are stored in SRCS-y #
lib/librte_pmd_pcap/rte_pmd_pcap_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_ring/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_ring.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_eth_ring_version.map + # # all source are stored in SRCS-y #
lib/librte_pmd_ring/rte_eth_ring.c +1 -1
@@ -473,7 +473,7 @@ out:return ret; } -int +static int rte_pmd_ring_devinit (const char *name,const char *params) {struct rte_kvargs *kvlist;
lib/librte_pmd_ring/rte_eth_ring.h +0 -6
@@ -50,12 +50,6 @@ int rte_eth_from_rings(const char *name,int rte_eth_ring_pair_create (const char *name,const unsigned numa_node);int rte_eth_ring_pair_attach (const char *name,const unsigned numa_node); -/** -* For use by test apps only. Called as part of EAL init to set up any dummy NICs -* configured on command line. -*/ -int rte_pmd_ring_devinit (const char *name,const char *params); - #ifdef __cplusplus }#endif
lib/librte_pmd_ring/rte_eth_ring_version.map new file +10 -0
@@ -0,0 +1,10 @@ +DPDK_1.8 { + + global: + + rte_eth_from_rings; + rte_eth_ring_pair_create; + rte_eth_ring_pair_attach; + + local: *; +};
lib/librte_pmd_virtio/Makefile +1 -0
@@ -39,6 +39,7 @@ LIB = librte_pmd_virtio_uio.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_pmd_virtio_version.map # # all source are stored in SRCS-y
lib/librte_pmd_virtio/rte_pmd_virtio_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_vmxnet3/Makefile +2 -0
@@ -66,6 +66,8 @@ endif VPATH += $(RTE_SDK)/lib/librte_pmd_vmxnet3/vmxnet3 +EXPORT_MAP := rte_pmd_vmxnet3_version.map + # # all source are stored in SRCS-y #
lib/librte_pmd_vmxnet3/rte_pmd_vmxnet3_version.map new file +5 -0
@@ -0,0 +1,5 @@ +DPDK_1.8 { + + local: *; +}; +
lib/librte_pmd_xenvirt/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_xenvirt.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_eth_xenvirt_version.map + # # all source are stored in SRCS-y #
lib/librte_pmd_xenvirt/rte_eth_xenvirt_version.map new file +8 -0
@@ -0,0 +1,8 @@ +DPDK_1.8 { + global: + + rte_mempool_gntalloc_create; + + local: *; +}; +
lib/librte_port/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_port.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_port_version.map + # # all source are stored in SRCS-y #
lib/librte_port/rte_port_version.map new file +18 -0
@@ -0,0 +1,18 @@ +DPDK_1.8 { + global: + rte_port_ring_reader_ops; + rte_port_ring_writer_ops; + rte_port_ethdev_reader_ops; + rte_port_ethdev_writer_ops; + rte_port_ring_reader_ipv4_frag_ops; + rte_port_ring_writer_ipv4_ras_ops; + rte_port_ring_reader_ops; + rte_port_ring_writer_ops; + rte_port_sched_reader_ops; + rte_port_sched_writer_ops; + rte_port_source_ops; + rte_port_sink_ops; + + local: *; +}; +
lib/librte_power/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_power.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -fno-strict-aliasing +EXPORT_MAP := rte_power_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_POWER) := rte_power.c rte_power_acpi_cpufreq.c SRCS-$(CONFIG_RTE_LIBRTE_POWER) += rte_power_kvm_vm.c guest_channel.c
lib/librte_power/rte_power_version.map new file +18 -0
@@ -0,0 +1,18 @@ +DPDK_1.8 { + global: + rte_power_init; + rte_power_exit; + rte_power_freqs; + rte_power_get_freq; + rte_power_set_freq; + rte_power_freq_up; + rte_power_freq_down; + rte_power_freq_max; + rte_power_freq_min; + rte_power_set_env; + rte_power_get_env; + rte_power_unset_env; + + local: *; +}; +
lib/librte_ring/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_ring.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_ring_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_RING) := rte_ring.c
lib/librte_ring/rte_ring_version.map new file +12 -0
@@ -0,0 +1,12 @@ +DPDK_1.8 { + global: + rte_ring_get_memsize; + rte_ring_init; + rte_ring_create; + rte_ring_set_water_mark; + rte_ring_dump; + rte_ring_list_dump; + rte_ring_lookup; + + local: *; +};
lib/librte_sched/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) CFLAGS_rte_red.o := -D_GNU_SOURCE +EXPORT_MAP := rte_sched_version.map + # # all source are stored in SRCS-y #
lib/librte_sched/rte_sched_version.map new file +22 -0
@@ -0,0 +1,22 @@ +DPDK_1.8 { + global: + + rte_approx; + rte_red_rt_data_init; + rte_red_config_init; + rte_sched_port_config; + rte_sched_port_free; + rte_sched_subport_config; + rte_sched_pipe_config; + rte_sched_port_get_memory_footprint; + rte_sched_subport_read_stats; + rte_sched_queue_read_stats; + rte_sched_port_enqueue; + rte_sched_port_dequeue; + rte_red_log2_1_minus_Wq; + rte_red_pow2_frac_inv; + rte_red_rand_val; + rte_red_rand_seed; + + local: *; +};
lib/librte_table/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_table.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +EXPORT_MAP := rte_table_version.map + # # all source are stored in SRCS-y #
lib/librte_table/rte_table_version.map new file +22 -0
@@ -0,0 +1,22 @@ +DPDK_1.8 { + global: + + rte_table_stub_ops; + rte_table_lpm_ops; + rte_table_array_ops; + rte_table_hash_key8_lru_ops; + rte_table_hash_key8_lru_dosig_ops; + rte_table_hash_key8_ext_ops; + rte_table_hash_key8_ext_dosig_ops; + rte_table_lpm_ipv6_ops; + rte_table_hash_key16_lru_ops; + rte_table_hash_key32_lru_ops; + rte_table_hash_key16_ext_ops; + rte_table_hash_key32_ext_ops; + rte_table_acl_ops; + rte_table_hash_lru_ops; + rte_table_hash_ext_ops; + + local: *; +}; +
lib/librte_timer/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_timer.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 +EXPORT_MAP := rte_timer_version.map + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_TIMER) := rte_timer.c
lib/librte_timer/rte_timer_version.map new file +16 -0
@@ -0,0 +1,16 @@ +DPDK_1.8 { + global: + + rte_timer_subsystem_init; + rte_timer_init; + rte_timer_reset; + rte_timer_reset_sync; + rte_timer_stop; + rte_timer_stop_sync; + rte_timer_pending; + rte_timer_manage; + rte_timer_dump_stats; + + local: *; +}; +
lib/librte_vhost/Makefile +2 -0
@@ -34,6 +34,8 @@ include $(RTE_SDK)/mk/rte.vars.mk # library name LIB = librte_vhost.a +EXPORT_MAP := rte_vhost_version.map + CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -D_FILE_OFFSET_BITS=64 -lfuse LDFLAGS += -lfuse # all source are stored in SRCS-y
lib/librte_vhost/rte_vhost_version.map new file +14 -0
@@ -0,0 +1,14 @@ +DPDK_1.8 { + global: + rte_vhost_feature_disable; + rte_vhost_feature_enable; + rte_vhost_feature_get; + rte_vhost_enable_guest_notification; + rte_vhost_driver_register; + rte_vhost_driver_callback_register; + rte_vhost_driver_session_start; + rte_vhost_enqueue_burst; + rte_vhost_dequeue_burst; + + local: *; +};
Signature · 1 line
2.1.0
PATCH v9 3/4 Add library version extenstion
In reply to a message not in the archiveTo differentiate libraries that break ABI, we add a library version number suffix to the library, which must be incremented when a given libraries ABI is broken. This patch enforces that addition, sets the initial abi soname extension to 1 for each library and creates a symlink to the base SONAME so that the test applications will link properly.
---
Change Notes:
v3)
Made symlinking of libraries conditional on a DSO build
v4) Removed erroneous newline
changed @exit 1 to @false changed ./$(LIB) to $< --- lib/librte_acl/Makefile | 2 ++ lib/librte_cfgfile/Makefile | 2 ++ lib/librte_cmdline/Makefile | 2 ++ lib/librte_compat/Makefile | 2 ++ lib/librte_distributor/Makefile | 2 ++ lib/librte_eal/bsdapp/eal/Makefile | 2 ++ lib/librte_eal/linuxapp/eal/Makefile | 2 ++ lib/librte_ether/Makefile | 2 ++ lib/librte_hash/Makefile | 2 ++ lib/librte_ip_frag/Makefile | 2 ++ lib/librte_ivshmem/Makefile | 2 ++ lib/librte_kni/Makefile | 2 ++ lib/librte_kvargs/Makefile | 2 ++ lib/librte_lpm/Makefile | 2 ++ lib/librte_malloc/Makefile | 2 ++ lib/librte_mbuf/Makefile | 2 ++ lib/librte_mempool/Makefile | 2 ++ lib/librte_meter/Makefile | 2 ++ lib/librte_pipeline/Makefile | 2 ++ lib/librte_pmd_af_packet/Makefile | 2 ++ lib/librte_pmd_bond/Makefile | 2 ++ lib/librte_pmd_e1000/Makefile | 2 ++ lib/librte_pmd_enic/Makefile | 2 ++ lib/librte_pmd_i40e/Makefile | 2 ++ lib/librte_pmd_ixgbe/Makefile | 2 ++ lib/librte_pmd_pcap/Makefile | 2 ++ lib/librte_pmd_ring/Makefile | 2 ++ lib/librte_pmd_virtio/Makefile | 2 ++ lib/librte_pmd_vmxnet3/Makefile | 2 ++ lib/librte_pmd_xenvirt/Makefile | 2 ++ lib/librte_port/Makefile | 2 ++ lib/librte_power/Makefile | 2 ++ lib/librte_ring/Makefile | 2 ++ lib/librte_sched/Makefile | 2 ++ lib/librte_table/Makefile | 2 ++ lib/librte_timer/Makefile | 2 ++ lib/librte_vhost/Makefile | 2 ++ mk/rte.lib.mk | 12 ++++++++++-- 38 files changed, 84 insertions(+), 2 deletions(-)
lib/librte_acl/Makefile +2 -0
@@ -39,6 +39,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) EXPORT_MAP := rte_acl_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_ACL) += tb_mem.c
lib/librte_cfgfile/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_cfgfile_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_cmdline/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_cmdline_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_CMDLINE) := cmdline.c SRCS-$(CONFIG_RTE_LIBRTE_CMDLINE) += cmdline_cirbuf.c
lib/librte_compat/Makefile +2 -0
@@ -32,6 +32,8 @@ include $(RTE_SDK)/mk/rte.vars.mk +LIBABIVER := 1 + # install includes SYMLINK-y-include := rte_compat.h
lib/librte_distributor/Makefile +2 -0
@@ -39,6 +39,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) EXPORT_MAP := rte_distributor_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) := rte_distributor.c
lib/librte_eal/bsdapp/eal/Makefile +2 -0
@@ -48,6 +48,8 @@ CFLAGS += $(WERROR_FLAGS) -O3 EXPORT_MAP := rte_eal_version.map +LIBABIVER := 1 + # specific to linuxapp exec-env SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) := eal.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal_memory.c
lib/librte_eal/linuxapp/eal/Makefile +2 -0
@@ -35,6 +35,8 @@ LIB = librte_eal.a EXPORT_MAP := rte_eal_version.map +LIBABIVER := 1 + VPATH += $(RTE_SDK)/lib/librte_eal/common CFLAGS += -I$(SRCDIR)/include
lib/librte_ether/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_ether_version.map +LIBABIVER := 1 + SRCS-y += rte_ethdev.c #
lib/librte_hash/Makefile +2 -0
@@ -39,6 +39,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) EXPORT_MAP := rte_hash_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_HASH) := rte_hash.c SRCS-$(CONFIG_RTE_LIBRTE_HASH) += rte_fbk_hash.c
lib/librte_ip_frag/Makefile +2 -0
@@ -39,6 +39,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) EXPORT_MAP := rte_ipfrag_version.map +LIBABIVER := 1 + #source files ifeq ($(CONFIG_RTE_MBUF_REFCNT),y) SRCS-$(CONFIG_RTE_LIBRTE_IP_FRAG) += rte_ipv4_fragmentation.c
lib/librte_ivshmem/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_ivshmem_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_IVSHMEM) := rte_ivshmem.c
lib/librte_kni/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -fno-strict-aliasing EXPORT_MAP := rte_kni_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_KNI) := rte_kni.c
lib/librte_kvargs/Makefile +2 -0
@@ -40,6 +40,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_kvargs_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_KVARGS) := rte_kvargs.c
lib/librte_lpm/Makefile +2 -0
@@ -39,6 +39,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) EXPORT_MAP := rte_lpm_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_LPM) := rte_lpm.c rte_lpm6.c
lib/librte_malloc/Makefile +2 -0
@@ -34,6 +34,8 @@ include $(RTE_SDK)/mk/rte.vars.mk # library name LIB = librte_malloc.a +LIBABIVER := 1 + CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_malloc_version.map
lib/librte_mbuf/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_mbuf_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_MBUF) := rte_mbuf.c
lib/librte_mempool/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_mempool_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_MEMPOOL) += rte_mempool.c ifeq ($(CONFIG_RTE_LIBRTE_XEN_DOM0),y)
lib/librte_meter/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_meter_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pipeline/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_pipeline_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pmd_af_packet/Makefile +2 -0
@@ -40,6 +40,8 @@ LIB = librte_pmd_af_packet.a EXPORT_MAP := rte_pmd_af_packet_version.map +LIBABIVER := 1 + CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS)
lib/librte_pmd_bond/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_eth_bond_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pmd_e1000/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_pmd_e1000_version.map +LIBABIVER := 1 + ifeq ($(CC), icc) # # CFLAGS for icc
lib/librte_pmd_enic/Makefile +2 -0
@@ -39,6 +39,8 @@ LIB = librte_pmd_enic.a EXPORT_MAP := rte_pmd_enic_version.map +LIBABIVER := 1 + CFLAGS += -I$(RTE_SDK)/lib/librte_pmd_enic/vnic/ CFLAGS += -I$(RTE_SDK)/lib/librte_pmd_enic/ CFLAGS += -O3
lib/librte_pmd_i40e/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_pmd_i40e_version.map +LIBABIVER := 1 + # # Add extra flags for base driver files (also known as shared code) # to disable warnings
lib/librte_pmd_ixgbe/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_pmd_ixgbe_version.map +LIBABIVER := 1 + ifeq ($(CC), icc) # # CFLAGS for icc
lib/librte_pmd_pcap/Makefile +2 -0
@@ -42,6 +42,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_pmd_pcap_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pmd_ring/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_eth_ring_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pmd_virtio/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_pmd_virtio_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pmd_vmxnet3/Makefile +2 -0
@@ -68,6 +68,8 @@ VPATH += $(RTE_SDK)/lib/librte_pmd_vmxnet3/vmxnet3 EXPORT_MAP := rte_pmd_vmxnet3_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_pmd_xenvirt/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_eth_xenvirt_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_port/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_port_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_power/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -fno-strict-aliasing EXPORT_MAP := rte_power_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_POWER) := rte_power.c rte_power_acpi_cpufreq.c SRCS-$(CONFIG_RTE_LIBRTE_POWER) += rte_power_kvm_vm.c guest_channel.c
lib/librte_ring/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_ring_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_RING) := rte_ring.c
lib/librte_sched/Makefile +2 -0
@@ -43,6 +43,8 @@ CFLAGS_rte_red.o := -D_GNU_SOURCE EXPORT_MAP := rte_sched_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_table/Makefile +2 -0
@@ -41,6 +41,8 @@ CFLAGS += $(WERROR_FLAGS) EXPORT_MAP := rte_table_version.map +LIBABIVER := 1 + # # all source are stored in SRCS-y #
lib/librte_timer/Makefile +2 -0
@@ -38,6 +38,8 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 EXPORT_MAP := rte_timer_version.map +LIBABIVER := 1 + # all source are stored in SRCS-y SRCS-$(CONFIG_RTE_LIBRTE_TIMER) := rte_timer.c
lib/librte_vhost/Makefile +2 -0
@@ -36,6 +36,8 @@ LIB = librte_vhost.a EXPORT_MAP := rte_vhost_version.map +LIBABIVER := 1 + CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -D_FILE_OFFSET_BITS=64 -lfuse LDFLAGS += -lfuse # all source are stored in SRCS-y
mk/rte.lib.mk +10 -2
@@ -37,10 +37,9 @@ include $(RTE_SDK)/mk/internal/rte.depdirs-pre.mk # VPATH contains at least SRCDIR VPATH += $(SRCDIR) - ifeq ($(RTE_BUILD_SHARED_LIB),y) -LIB := $(patsubst %.a,%.so,$(LIB)) +LIB := $(patsubst %.a,%.so.$(LIBABIVER),$(LIB)) CPU_LDFLAGS += --version-script=$(SRCDIR)/$(EXPORT_MAP) endif
@@ -113,6 +112,10 @@ lib_dir = [ -d $(RTE_OUTPUT)/lib ] || mkdir -p $(RTE_OUTPUT)/lib; # ifeq ($(RTE_BUILD_SHARED_LIB),y) $(LIB): $(OBJS-y) $(DEP_$(LIB)) FORCE +ifeq ($(LIBABIVER),) + @echo "Must Specify a $(LIB) ABI version" + @false +endif @[ -d $(dir $@) ] || mkdir -p $(dir $@) $(if $(D),\ @echo -n "$< -> $@ " ; \
@@ -126,6 +129,7 @@ $(LIB): $(OBJS-y) $(DEP_$(LIB)) FORCE $(depfile_missing),\ $(depfile_newer)),\ $(O_TO_S_DO)) + ifeq ($(RTE_BUILD_COMBINE_LIBS),y) $(if $(or \ $(file_missing),\
@@ -163,9 +167,13 @@ endif # install lib in $(RTE_OUTPUT)/lib # $(RTE_OUTPUT)/lib/$(LIB): $(LIB) + $(eval LIBSONAME := $(basename $(LIB))) @echo " INSTALL-LIB $(LIB)" @[ -d $(RTE_OUTPUT)/lib ] || mkdir -p $(RTE_OUTPUT)/lib $(Q)cp -f $(LIB) $(RTE_OUTPUT)/lib +ifeq ($(RTE_BUILD_SHARED_LIB),y) + $(Q)ln -s -f $< $(RTE_OUTPUT)/lib/$(LIBSONAME) +endif # # Clean all generated files
Signature · 1 line
2.1.0
PATCH v9 4/4 docs: Add ABI documentation
In reply to a message not in the archiveAdding a document describing rudimentary ABI policy and adding notice space for any deprecation announcements
---
Change notes:
v5) Updated documentation to add notes from Thomas M.
v6) Moved abi.txt to guides/rel_notes/abi.rst
v7) Updated abi.rst to integrate with index file
Updated abi.rst to conform to rst formatting
Updated abi.rst to include example deprecation notices. Its not exactly the
language that Thomas indicated, but I think it makes the idea clear.
v8) Add missing file index.rst which was left out of the prior commit
v9) Fixed typos
--- doc/guides/rel_notes/abi.rst | 40 ++++++++++++++++++++++++++++++++++++++++ doc/guides/rel_notes/index.rst | 1 + 2 files changed, 41 insertions(+) create mode 100644 doc/guides/rel_notes/abi.rst
doc/guides/rel_notes/abi.rst new file +40 -0
@@ -0,0 +1,40 @@ +ABI policy +========== +ABI versions are set at the time of major release labeling, and ABI may change +multiple times between the last labeling and the HEAD label of the git tree +without warning. + +ABI versions, once released are available until such time as their +deprecation has been noted here for at least one major release cycle, after it +has been tagged. E.g. the ABI for DPDK 1.8 is shipped, and then the decision to +remove it is made during the development of DPDK 1.9. The decision will be +recorded here, shipped with the DPDK 1.9 release, and actually removed when DPDK +1.10 ships. + +ABI versions may be deprecated in whole, or in part as needed by a given update. + +Some ABI changes may be too significant to reasonably maintain multiple +versions of. In those events ABI's may be updated without backward +compatibility provided. The requirements for doing so are: + +#. At least 3 acknoweldgements of the need on the dpdk.org +#. A full deprecation cycle must be made to offer downstream consumers sufficient warning of the change. E.g. if dpdk 2.0 is under development when the change is proposed, a deprecation notice must be added to this file, and released with dpdk 2.0. Then the change may be incorporated for dpdk 2.1 +#. The LIBABIVER variable in the makefilei(s) where the ABI changes are incorporated must be incremented in parallel with the ABI changes themselves + +Note that the above process for ABI deprecation should not be undertaken +lightly. ABI stability is extreemely important for downstream consumers of the +DPDK, especially when distributed in shared object form. Every effort should be +made to preserve ABI whenever possible. For instance, reorganizing public +structure field for astetic or readability purposes should be avoided as it will +cause ABI breakage. Only significant (e.g. performance) reasons should be seen +as cause to alter ABI. + +Examples of Deprecation Notices +------------------------------- +* The Macro #RTE_FOO is deprecated and will be removed with version 2.0, to be replaced with the inline function rte_bar() +* The function rte_mbuf_grok has been updated to include new parameter in version 2.0. Backwards compatibility will be maintained for this function until the release of version 2.1 +* The members struct foo have been reorganized in release 2.0. Existing binary applications will have backwards compatibility in release 2.0, while newly built binaries will need to reference new structure variant struct foo2. Compatibility will be removed in release 2.2, and all applications will require updating and rebuilding to the new structure at that time, which will be renamed to the origional struct foo. +* Significant ABI changes are planned for the librte_dostuff library. The upcoming release 2.0 will not contain these changes, but release 2.1 will, and no backwards compatibility is planned due to the invasive nature of these changes. Binaries using this library built prior to version 2.1 will require updating and recompilation. + +Deprecation Notices +-------------------
doc/guides/rel_notes/index.rst +1 -0
@@ -48,4 +48,5 @@ Contents updating_apps known_issues resolved_issues + abi faq
Signature · 1 line
2.1.0
A message that is not in the archive (sent off-list or not yet received): 1422898822-16422-4-git-send-email-nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org
Thomas Monjalon
Acked-byRe: [PATCH v9 4/4] docs: Add ABI documentation
Quoted 4 lines
Adding a document describing rudimentary ABI policy and adding notice space for any deprecation announcements
Signed-off-by Neil Horman <[email protected]>
Thanks Neil for writing the policy.
The version 2.0 will be the first to have a versioned ABI with LIBABIVER := 1. Starting from there, we'll have to consider this ABI policy when preparing next versions.
Signature · 1 line
Thomas
2014-12-20 16:01, Neil Horman:
Quoted 39 lines
GI: [PATCH 1/4] compat: Add infrastructure to support symbol versioninBI develops and changes quickly, which makes it difficult for applications to keep up with the latest version of the library, especially when it (the DPDK) is built as a set of shared objects, as applications may be built against an older version of the library.
To mitigate this, this patch series introduces support for library and symbol versioning when the DPDK is built as a DSO. Specifically, it does 4 things:
1) Adds initial support for library versioning. Each library now has a version map that explicitly calls out what symbols are exported to using applications, and assigns version(s) to them
2) Adds support macros so that when libraries create incompatible ABI's, multiple versions may be supported so that applications linked against older DPDK releases can continue to function
3) Adds library soname versioning suffixes so that when ABI's must be broken in a fashion that requires a rebuild of older applications, they will break at load time, rather than cause unexpected issues at run time.
4) Adds documentation for ABI policy, and provides space to document deprecated ABI versions, so that applications might be warned of impending changes.
With these elements in place the DPDK has some support to allow for the extended maintenence of older API's while still allowing the freedom to develop new and improved API's.
Implementing this feature will require some additional effort on the part of developers and reviewers. When reviewing patches, must be checked against existing exports to ensure that the function prototypes are not changing. If they are, the versioning macros must be used, and the library export map should be updated to reflect the new version of the function.
When data structures change, if those structures are application accessible, apis that accept or return instances of those data structures should have new versions created so that users of the old data structure version might co-exist at the same time.
Quoted 7 lines
Note it was requested that this series be delayed until DPDK 2.0, so this is a repost, now that DPDK 1.8 has been tagged.
Signed-off-by Neil Horman <[email protected]>CC Thomas Monjalon <[email protected]>CC "Richardson, Bruce" <[email protected]>CC "Robert Love" <[email protected]>
After updating to version 2.0, and sorting symbol lists, Applied
It's probably an important change which makes 2.0 number meaningful. Thanks
Signature · 1 line
Thomas
Quoted 48 lines · Thomas Monjalon
2014-12-20 16:01, Neil Horman:
Quoted 39 lines
GI: [PATCH 1/4] compat: Add infrastructure to support symbol versioninBI develops and changes quickly, which makes it difficult for applications to keep up with the latest version of the library, especially when it (the DPDK) is built as a set of shared objects, as applications may be built against an older version of the library.
To mitigate this, this patch series introduces support for library and symbol versioning when the DPDK is built as a DSO. Specifically, it does 4 things:
1) Adds initial support for library versioning. Each library now has a version map that explicitly calls out what symbols are exported to using applications, and assigns version(s) to them
2) Adds support macros so that when libraries create incompatible ABI's, multiple versions may be supported so that applications linked against older DPDK releases can continue to function
3) Adds library soname versioning suffixes so that when ABI's must be broken in a fashion that requires a rebuild of older applications, they will break at load time, rather than cause unexpected issues at run time.
4) Adds documentation for ABI policy, and provides space to document deprecated ABI versions, so that applications might be warned of impending changes.
With these elements in place the DPDK has some support to allow for the extended maintenence of older API's while still allowing the freedom to develop new and improved API's.
Implementing this feature will require some additional effort on the part of developers and reviewers. When reviewing patches, must be checked against existing exports to ensure that the function prototypes are not changing. If they are, the versioning macros must be used, and the library export map should be updated to reflect the new version of the function.
When data structures change, if those structures are application accessible, apis that accept or return instances of those data structures should have new versions created so that users of the old data structure version might co-exist at the same time.
Quoted 7 lines
Note it was requested that this series be delayed until DPDK 2.0, so this is a repost, now that DPDK 1.8 has been tagged.
Signed-off-by Neil Horman <[email protected]>CC Thomas Monjalon <[email protected]>CC "Richardson, Bruce" <[email protected]>CC "Robert Love" <[email protected]>
Quoted 8 lines
After updating to version 2.0, and sorting symbol lists, Applied
It's probably an important change which makes 2.0 number meaningful. Thanks
Signature · 1 line
Thomas
Thank you Thomas! Just as a heads up, there may be some inconsistencies resulting from patches that you merged between the time of my last repost and the time of this merge. They'll be easy to fix as they will just amount to symbol additions/removals from the various version map file. So please cc me on any sucpicious build breaks in the next few days when building shared objects, and I'll fix them up ASAP.
Neil