* [dpdk-dev] [PATCH v1 1/2] eal/linux: fix symbol missing in version map
2015-02-25 3:39 [dpdk-dev] [PATCH v1 0/2] eal: fix symbol missing in version map Cunming Liang
@ 2015-02-25 3:39 ` Cunming Liang
2015-02-25 3:39 ` [dpdk-dev] [PATCH v1 2/2] eal/bsd: " Cunming Liang
` (3 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: Cunming Liang @ 2015-02-25 3:39 UTC (permalink / raw)
To: dev
As per_lcore__socket_id and rte_sys_gettid are missing in version map,
it causes compiling error when CONFIG_RTE_BUILD_SHARED_LIB is enabled.
Signed-off-by: Cunming Liang <cunming.liang@intel.com>
---
lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/librte_eal/linuxapp/eal/rte_eal_version.map b/lib/librte_eal/linuxapp/eal/rte_eal_version.map
index c207cee..17515a9 100644
--- a/lib/librte_eal/linuxapp/eal/rte_eal_version.map
+++ b/lib/librte_eal/linuxapp/eal/rte_eal_version.map
@@ -10,6 +10,7 @@ DPDK_2.0 {
pci_driver_list;
per_lcore__lcore_id;
per_lcore__rte_errno;
+ per_lcore__socket_id;
rte_cpu_check_supported;
rte_cpu_get_flag_enabled;
rte_cycles_vmware_tsc_map;
@@ -83,6 +84,7 @@ DPDK_2.0 {
rte_snprintf;
rte_strerror;
rte_strsplit;
+ rte_sys_gettid;
rte_thread_get_affinity;
rte_thread_set_affinity;
rte_vlog;
--
1.8.1.4
^ permalink raw reply [flat|nested] 9+ messages in thread
* [dpdk-dev] [PATCH v1 2/2] eal/bsd: fix symbol missing in version map
2015-02-25 3:39 [dpdk-dev] [PATCH v1 0/2] eal: fix symbol missing in version map Cunming Liang
2015-02-25 3:39 ` [dpdk-dev] [PATCH v1 1/2] eal/linux: " Cunming Liang
@ 2015-02-25 3:39 ` Cunming Liang
2015-02-25 4:08 ` [dpdk-dev] [PATCH v1 0/2] eal: " Tetsuya Mukawa
` (2 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: Cunming Liang @ 2015-02-25 3:39 UTC (permalink / raw)
To: dev
As per_lcore__socket_id and rte_sys_gettid are missing in version map,
it causes compiling error when CONFIG_RTE_BUILD_SHARED_LIB is enabled.
Signed-off-by: Cunming Liang <cunming.liang@intel.com>
---
lib/librte_eal/bsdapp/eal/rte_eal_version.map | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/librte_eal/bsdapp/eal/rte_eal_version.map b/lib/librte_eal/bsdapp/eal/rte_eal_version.map
index c207cee..17515a9 100644
--- a/lib/librte_eal/bsdapp/eal/rte_eal_version.map
+++ b/lib/librte_eal/bsdapp/eal/rte_eal_version.map
@@ -10,6 +10,7 @@ DPDK_2.0 {
pci_driver_list;
per_lcore__lcore_id;
per_lcore__rte_errno;
+ per_lcore__socket_id;
rte_cpu_check_supported;
rte_cpu_get_flag_enabled;
rte_cycles_vmware_tsc_map;
@@ -83,6 +84,7 @@ DPDK_2.0 {
rte_snprintf;
rte_strerror;
rte_strsplit;
+ rte_sys_gettid;
rte_thread_get_affinity;
rte_thread_set_affinity;
rte_vlog;
--
1.8.1.4
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [dpdk-dev] [PATCH v1 0/2] eal: fix symbol missing in version map
2015-02-25 3:39 [dpdk-dev] [PATCH v1 0/2] eal: fix symbol missing in version map Cunming Liang
2015-02-25 3:39 ` [dpdk-dev] [PATCH v1 1/2] eal/linux: " Cunming Liang
2015-02-25 3:39 ` [dpdk-dev] [PATCH v1 2/2] eal/bsd: " Cunming Liang
@ 2015-02-25 4:08 ` Tetsuya Mukawa
2015-02-25 8:14 ` Mcnamara, John
2015-02-25 12:30 ` Neil Horman
4 siblings, 0 replies; 9+ messages in thread
From: Tetsuya Mukawa @ 2015-02-25 4:08 UTC (permalink / raw)
To: Cunming Liang, dev
On 2015/02/25 12:39, Cunming Liang wrote:
> These two patches are the fixing for the compling error when CONFIG_RTE_BUILD_SHARED_LIB=y.
> The root cause is *per_lcore__socket_id* and *rte_sys_gettid* are missing in the version map.
> Thanks for the notification from Tetsuya Mukawa <mukawa@igel.co.jp>.
>
> Cunming Liang (2):
> eal/linux: fix symbol missing in version map
> eal/bsd: fix symbol missing in version map
>
> lib/librte_eal/bsdapp/eal/rte_eal_version.map | 2 ++
> lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 ++
> 2 files changed, 4 insertions(+)
>
Hi Liang,
I've confirmed it works on my Linux environment.
Thanks,
Tetsuya
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [dpdk-dev] [PATCH v1 0/2] eal: fix symbol missing in version map
2015-02-25 3:39 [dpdk-dev] [PATCH v1 0/2] eal: fix symbol missing in version map Cunming Liang
` (2 preceding siblings ...)
2015-02-25 4:08 ` [dpdk-dev] [PATCH v1 0/2] eal: " Tetsuya Mukawa
@ 2015-02-25 8:14 ` Mcnamara, John
2015-02-25 9:07 ` Thomas Monjalon
2015-02-25 12:30 ` Neil Horman
4 siblings, 1 reply; 9+ messages in thread
From: Mcnamara, John @ 2015-02-25 8:14 UTC (permalink / raw)
To: Liang, Cunming, dev
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Cunming Liang
> Sent: Wednesday, February 25, 2015 3:40 AM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH v1 0/2] eal: fix symbol missing in version map
>
> These two patches are the fixing for the compling error when
> CONFIG_RTE_BUILD_SHARED_LIB=y.
> The root cause is *per_lcore__socket_id* and *rte_sys_gettid* are missing
> in the version map.
> Thanks for the notification from Tetsuya Mukawa <mukawa@igel.co.jp>.
>
> Cunming Liang (2):
> eal/linux: fix symbol missing in version map
> eal/bsd: fix symbol missing in version map
>
> lib/librte_eal/bsdapp/eal/rte_eal_version.map | 2 ++
> lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 ++
> 2 files changed, 4 insertions(+)
>
Series Acked-by: John McNamara <john.mcnamara@intel.com>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [dpdk-dev] [PATCH v1 0/2] eal: fix symbol missing in version map
2015-02-25 8:14 ` Mcnamara, John
@ 2015-02-25 9:07 ` Thomas Monjalon
0 siblings, 0 replies; 9+ messages in thread
From: Thomas Monjalon @ 2015-02-25 9:07 UTC (permalink / raw)
To: Liang, Cunming; +Cc: dev
> > These two patches are the fixing for the compling error when
> > CONFIG_RTE_BUILD_SHARED_LIB=y.
> > The root cause is *per_lcore__socket_id* and *rte_sys_gettid* are missing
> > in the version map.
> > Thanks for the notification from Tetsuya Mukawa <mukawa@igel.co.jp>.
Please use Reported-by: in such case.
Fixes: ef76436c6834 ("eal: get unique thread id")
Fixes: 9e29251b2afa ("eal: thread affinity API")
> > Cunming Liang (2):
> > eal/linux: fix symbol missing in version map
> > eal/bsd: fix symbol missing in version map
Merged together
> Series Acked-by: John McNamara <john.mcnamara@intel.com>
Applied, thanks
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [dpdk-dev] [PATCH v1 0/2] eal: fix symbol missing in version map
2015-02-25 3:39 [dpdk-dev] [PATCH v1 0/2] eal: fix symbol missing in version map Cunming Liang
` (3 preceding siblings ...)
2015-02-25 8:14 ` Mcnamara, John
@ 2015-02-25 12:30 ` Neil Horman
2015-02-25 13:39 ` Thomas Monjalon
4 siblings, 1 reply; 9+ messages in thread
From: Neil Horman @ 2015-02-25 12:30 UTC (permalink / raw)
To: Cunming Liang; +Cc: dev
On Wed, Feb 25, 2015 at 11:39:47AM +0800, Cunming Liang wrote:
> These two patches are the fixing for the compling error when CONFIG_RTE_BUILD_SHARED_LIB=y.
> The root cause is *per_lcore__socket_id* and *rte_sys_gettid* are missing in the version map.
> Thanks for the notification from Tetsuya Mukawa <mukawa@igel.co.jp>.
>
> Cunming Liang (2):
> eal/linux: fix symbol missing in version map
> eal/bsd: fix symbol missing in version map
>
> lib/librte_eal/bsdapp/eal/rte_eal_version.map | 2 ++
> lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 ++
> 2 files changed, 4 insertions(+)
>
> --
> 1.8.1.4
>
>
NAK
This is the wrong way to fix this problem. Exporting global variables is
never a good solution when it can be helped. Instead, rte_socket id should be
made a non inline function and exported. Then the definition of
per_lcore_socket_id can be made private, protecting it from type changes.
Neil
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [dpdk-dev] [PATCH v1 0/2] eal: fix symbol missing in version map
2015-02-25 12:30 ` Neil Horman
@ 2015-02-25 13:39 ` Thomas Monjalon
2015-02-25 14:34 ` Neil Horman
0 siblings, 1 reply; 9+ messages in thread
From: Thomas Monjalon @ 2015-02-25 13:39 UTC (permalink / raw)
To: Neil Horman; +Cc: dev
2015-02-25 07:30, Neil Horman:
> On Wed, Feb 25, 2015 at 11:39:47AM +0800, Cunming Liang wrote:
> > These two patches are the fixing for the compling error when CONFIG_RTE_BUILD_SHARED_LIB=y.
> > The root cause is *per_lcore__socket_id* and *rte_sys_gettid* are missing in the version map.
> > Thanks for the notification from Tetsuya Mukawa <mukawa@igel.co.jp>.
> >
> > Cunming Liang (2):
> > eal/linux: fix symbol missing in version map
> > eal/bsd: fix symbol missing in version map
> >
> > lib/librte_eal/bsdapp/eal/rte_eal_version.map | 2 ++
> > lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 ++
> > 2 files changed, 4 insertions(+)
> >
>
> NAK
>
> This is the wrong way to fix this problem. Exporting global variables is
> never a good solution when it can be helped. Instead, rte_socket id should be
> made a non inline function and exported. Then the definition of
> per_lcore_socket_id can be made private, protecting it from type changes.
Neil, I applied the patches to fix compilation on HEAD.
In case your comment makes sense, a cleanup would be appreciated.
Thanks
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [dpdk-dev] [PATCH v1 0/2] eal: fix symbol missing in version map
2015-02-25 13:39 ` Thomas Monjalon
@ 2015-02-25 14:34 ` Neil Horman
0 siblings, 0 replies; 9+ messages in thread
From: Neil Horman @ 2015-02-25 14:34 UTC (permalink / raw)
To: Thomas Monjalon; +Cc: dev
On Wed, Feb 25, 2015 at 02:39:33PM +0100, Thomas Monjalon wrote:
> 2015-02-25 07:30, Neil Horman:
> > On Wed, Feb 25, 2015 at 11:39:47AM +0800, Cunming Liang wrote:
> > > These two patches are the fixing for the compling error when CONFIG_RTE_BUILD_SHARED_LIB=y.
> > > The root cause is *per_lcore__socket_id* and *rte_sys_gettid* are missing in the version map.
> > > Thanks for the notification from Tetsuya Mukawa <mukawa@igel.co.jp>.
> > >
> > > Cunming Liang (2):
> > > eal/linux: fix symbol missing in version map
> > > eal/bsd: fix symbol missing in version map
> > >
> > > lib/librte_eal/bsdapp/eal/rte_eal_version.map | 2 ++
> > > lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 ++
> > > 2 files changed, 4 insertions(+)
> > >
> >
> > NAK
> >
> > This is the wrong way to fix this problem. Exporting global variables is
> > never a good solution when it can be helped. Instead, rte_socket id should be
> > made a non inline function and exported. Then the definition of
> > per_lcore_socket_id can be made private, protecting it from type changes.
>
> Neil, I applied the patches to fix compilation on HEAD.
> In case your comment makes sense, a cleanup would be appreciated.
>
> Thanks
>
Sent. You and Cunming are CC-ed
Thanks
Neil
^ permalink raw reply [flat|nested] 9+ messages in thread