DPDK patches and discussions
 help / color / mirror / Atom feed
From: William Tu <u9012063@gmail.com>
To: dpdk-dev <dev@dpdk.org>
Cc: Dmitry Kozliuk <dmitry.kozliuk@gmail.com>
Subject: [dpdk-dev] RTE_REGISTER_BUS does not work on Windows
Date: Thu, 23 Sep 2021 10:47:42 -0700	[thread overview]
Message-ID: <CALDO+SYy5Gsfz+8kKD80h5KXjwNJobTE4fL+5GPwbT3qOsAc6g@mail.gmail.com> (raw)

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_REGISTER_BUS to
register itself, and it's a macro creating the businitfn_pci, and calls
rte_bus_register. But somehow on my system, it does not invoke
so actually the 'rte_bus_list' is empty. And I guess this is due to
"constructor" function not working correctly when I static link DPDK.

When linking DPDK using gcc, OVS passes the linker option '--whole-archive'.
https://github.com/openvswitch/ovs/blob/master/acinclude.m4#L509

I tried adding -Wl,-force_load, or -Wl,/WHOLEARCHIVE at libdpdk.pc.
So far I still couldn't get it to work. Any suggestions or comments are welcome!

Thank you
William

             reply	other threads:[~2021-09-23 17:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-23 17:47 William Tu [this message]
2021-09-24 14:41 ` William Tu
2021-09-25 13:45   ` William Tu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CALDO+SYy5Gsfz+8kKD80h5KXjwNJobTE4fL+5GPwbT3qOsAc6g@mail.gmail.com \
    --to=u9012063@gmail.com \
    --cc=dev@dpdk.org \
    --cc=dmitry.kozliuk@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).