Re: [dpdk-dev] [PATCH] examples/ip_pipeline: add link show to the cli

2018-06-15 Thread Dumitrescu, Cristian
Hi Kevin, If you only need access to this linked list for iterating through it, you can add a new function: struct link *link_next(struct link *) that gets you the next element in the list (for first element, invoke with link = NULL; at and of list, it returns NULL). Makes sense? Are there oth

Re: [dpdk-dev] [PATCH] examples/ip_pipeline: add link show to the cli

2018-06-15 Thread Laatz, Kevin
Hi Cristian, > > + > > + link_list = links_get(); > > We don't need this function, the lined list of links is a global public > object, > please access it directly. link_list is declared as a static struct in link.c so it is not accessible from cli.c I can either leave this function in to p

Re: [dpdk-dev] [PATCH] examples/ip_pipeline: add link show to the cli

2018-06-08 Thread Dumitrescu, Cristian
> -Original Message- > From: Laatz, Kevin > Sent: Friday, June 8, 2018 5:31 PM > To: dev@dpdk.org > Cc: Dumitrescu, Cristian ; Singh, Jasvinder > ; Laatz, Kevin > Subject: [PATCH] examples/ip_pipeline: add link show to the cli > > Add the functionality to track links in the application

[dpdk-dev] [PATCH] examples/ip_pipeline: add link show to the cli

2018-06-08 Thread Kevin Laatz
Add the functionality to track links in the application. This enables the user to print the name, mac address and per-port statistics for each link in the application. Signed-off-by: Kevin Laatz --- examples/ip_pipeline/cli.c | 103 examples/ip_pipel