>+Having structure like suggested not only help-s simple data handling but also 
>would help for the cases like below , where you need to maintain different 
>event ids in the code. 
>+With the current patch version the below scenario is not possible as you have 
>only one global variable for the eventdev id which always holds the latest 
>evet id in the command , from below example evetdev id 2.


>+Ex 1: Where you want to show queue 0 xstats of eventdev 2 and port0 xstats of 
>eventdev 1 ./proc --show-evendev-port-xtstas=0:1 --show-evendev-queue-xsats=0:2

>+Thanks.
>+Reshma

Thanks Reshma, now I understood the point. The intent is only display one event 
dev data with the same eventdev id being passed. Therefore I can change the 
patch
Passing another command line parameter --eventid and instead of taking two 
parameters from --show-evendev-port-xtstas=0:1 just take the port number (same 
for other command types). If no eventid is passed
Eventid defaults to 0.

If you want your approach of maintaining and displaying mix of more eventdevs 
with different ids, your suggestion is the way to go. Let me know.



Reply via email to