[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dpdk-users
Subject:    Re: [dpdk-users] Trouble locating functionality in code
From:       Stephen Hemminger <stephen () networkplumber ! org>
Date:       2020-06-12 15:01:54
Message-ID: 20200612080154.4c0a40f5 () hermes ! lan
[Download RAW message or body]

On Fri, 12 Jun 2020 17:47:47 +0300
Georgia Panoutsakopoulou <gpanoutsak@gmail.com> wrote:

> Hi all,
> I'm having trouble locating the part of code that associates a network card
> with the dpdk internally used port id.
> 
> For example, when I bind two ports with pci slots 0000:86:00.0
> and 0000:86:00.1 to dpdk driver igb_uio , how does dpdk populate this
> information and give a port id in each port? Is there a way to know this
> association without accessing dpdk structs by using functions like
> rte_eth_dev_get_name_by_port(portid,
> name)?
> 
> I'm using dpdk app l2fwd and dpdk version 19.11.
> 
> Thanks,
> Georgia

It is done by the PCI probing code that does a walk of sysfs.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic