Re: [PATCH] vmbus: get current rte_vmbus_bus struct

2022-07-09 Thread David Marchand
On Thu, Apr 14, 2022 at 11:58 AM Abdelfattah Chehab wrote: > > The global variable is not accessible from libdpdk.so > I don't really see how the linker can find it in this case. Well, the initial mail was missing a description of the problem. The patch is badly formatted and sent against 20.11,

RE: [PATCH] vmbus: get current rte_vmbus_bus struct

2022-04-19 Thread Abdelfattah Chehab
The global variable is not accessible from libdpdk.so I don't really see how the linker can find it in this case. -Original Message- From: David Marchand Sent: 13 April 2022 10:11 To: Abdelfattah Chehab Cc: dev@dpdk.org; sta...@dpdk.org Subject: Re: [PATCH] vmbus: get cu

Re: [PATCH] vmbus: get current rte_vmbus_bus struct

2022-04-13 Thread David Marchand
On Wed, Apr 13, 2022 at 9:32 AM Abdelfattah Chehab wrote: > > Hi All, > > FOREACH_DEVICE_ON_VMBUS needs rte_vmbus_bus to work on > > If static link to libdpdk.a : no issues > > If dynamic link to *.so: linker issue, global variable not found. Not sure I really get your usecase, but this probably

[PATCH] vmbus: get current rte_vmbus_bus struct

2022-04-13 Thread Abdelfattah Chehab
Hi All, FOREACH_DEVICE_ON_VMBUS needs rte_vmbus_bus to work on If static link to libdpdk.a : no issues If dynamic link to *.so: linker issue, global variable not found. I suggest this patch to get a current rte_vmbus_bus struct: Thanks. diff --git a/dpdk-20.11/drivers/bus/vmbus/rte_bus_vmbus.h