Re: [dpdk-dev] RTE_REGISTER_BUS does not work on Windows

2021-09-25 Thread William Tu
I've resolved the issue by adding -Wl,/WHOLEARCHIVE at libdpdk.pc Thanks William On Fri, Sep 24, 2021 at 7:41 AM William Tu wrote: > > Hi, > > I continued my experiment and observed below > 1. for dpdk-testpmd.exe which works fine, the functions in driver/bus/pci/* > are there in the binary, ex:

Re: [dpdk-dev] RTE_REGISTER_BUS does not work on Windows

2021-09-24 Thread William Tu
Hi, I continued my experiment and observed below 1. for dpdk-testpmd.exe which works fine, the functions in driver/bus/pci/* are there in the binary, ex: PS C:\dpdk\build\app> dumpbin.exe /ALL .\dpdk-testpmd.exe | grep rte_pci_set_b 0001D1F0 0068DB40 0068DC32 0073BDEC rte_pci_set_bus_master So

[dpdk-dev] RTE_REGISTER_BUS does not work on Windows

2021-09-23 Thread William Tu
Hi, I'm trying to run OVS-DPDK on Windows (building OVS binaries and statically link DPDK windows library), and it doesn't work due to rte_bus_scan() find no available devices. (However, when using dpdk-testpmd.exe, it finds the device successfully) I realized that the PCI bus driver calls RTE_RE