[dpdk-dev] How to know corresponding device from port number

2013-12-06 Thread Tetsuya.Mukawa
(2013/11/28 19:46), Richardson, Bruce wrote: >> If someone wants to implement forwarding application that receives >> packets from ETH_A and send those to ETH_B. >> Also above application is split to 3 processes like following. >> [ETH_A]-->Process_A --> [Ring_A] --> Process_B --> [Ring_B] --> Proc

[dpdk-dev] How to know corresponding device from port number

2013-11-28 Thread Richardson, Bruce
> If someone wants to implement forwarding application that receives > packets from ETH_A and send those to ETH_B. > Also above application is split to 3 processes like following. > [ETH_A]-->Process_A --> [Ring_A] --> Process_B --> [Ring_B] --> Process_C -- > > [ETH_B] (All 3 processes are impleme

[dpdk-dev] How to know corresponding device from port number

2013-11-27 Thread Tetsuya.Mukawa
> [BR] Firstly, to identify the ring PMD's vs the ethernet device PMDs you can > use the information in the rte_eth_dev structure. For each device x, (0 <= x > <=5), if you check rte_eth_devices[x], the ring pmd's will have a NULL driver > pointer and the pci address given in the pci_dev structu

[dpdk-dev] How to know corresponding device from port number

2013-11-26 Thread Tetsuya.Mukawa
Hi, I have a question about how to know corresponding device from port number. For example, if I have 4 Ethernet devices and 2 Ring PMDs, I will get 6 ports during initialization. In the case, how can I know which port corresponds last Ring PMD? Regards, Tetsuya Mukawa

[dpdk-dev] How to know corresponding device from port number

2013-11-26 Thread Richardson, Bruce
> > Hi, > > I have a question about how to know corresponding device from port > number. > For example, if I have 4 Ethernet devices and 2 Ring PMDs, I will get 6 ports > during initialization. > In the case, how can I know which port corresponds last Ring PMD? [BR] Firstly, to identify the ring