> [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 structure will be all-zeros.
> As for distinguishing two different ring ethdevs from each other, I'm not 
> aware of any way to do this, they will just have different eth_dev indexes.

Thanks, I understand there is no way to distinguish rings.
It will be a problem in following case.

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 implemented using PMD)

At present, to implement Process_B might be difficult or tricky because
ring can't be distinguished.

I guess all virtual eth device like ring and pcap should have MAC
address. And It should be possible to specify MAC address from command line.
If so, DPDK application can distinguish all ports using MAC address even
if port corresponds virtual eth device.

Thanks,
Tetsuya Mukawa



Reply via email to