title: rte_eth_dev_count_avail() from the DPDK API returns 0
body: <p>I am trying to use the DPDK api and trying to get a count of the number of ethernet devices available for use by the application running on top of DPDK. For this purpose I make use of the rte_eth_dev_count_avail() method provided by the DPDK api, but it returns 0 even when I see devices bound to DPDK compatible device drivers.
  Here is the output of ./usertools/dpdk-devbind.py --status</p>
  
  <p><a href="https://i.stack.imgur.com/NdDMk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NdDMk.png" alt=""></a></p>
  
  <p>As you can see, I have multiple device drivers bound to DPDK compatible device driver, so not sure why this is happening.</p>
  
  <p>I have also added the output for ldd [binary] as mentioned in the comments.</p>
  
  <p><a href="https://i.stack.imgur.com/80pFT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/80pFT.png" alt="enter image description here"></a></p>
  
  <p>I am adding the output of the command egrep "SHARED|IGB_PMD|EM_PMD" $RTE_TARGET/.config</p>
  
  <p><a href="https://i.stack.imgur.com/Uu4Zv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Uu4Zv.png" alt="enter image description here"></a></p>
  
  <p>Output for ./usertools/dpdk-pmdinfo.py -d /usr/share/hwdata/pci.ids [binary] | grep -i "PMD NAME"</p>
  
  <p><a href="https://i.stack.imgur.com/bQzb2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bQzb2.png" alt="enter image description here"></a></p>