Re: [dpdk-dev] [PATCH] telemetry: fix error when using ports of different types

2018-12-21 Thread Laatz, Kevin
On 19/12/2018 11:59, Bruce Richardson wrote: Different NIC ports can have different numbers of xstats on them, which means that we can't just use the xstats list from the first port registered in the telemetry library. Instead, we need to check the type of each port - by checking its ops structur

Re: [dpdk-dev] [PATCH] telemetry: fix error when using ports of different types

2018-12-20 Thread Thomas Monjalon
19/12/2018 12:59, Bruce Richardson: > Different NIC ports can have different numbers of xstats on them, which > means that we can't just use the xstats list from the first port registered > in the telemetry library. Instead, we need to check the type of each port - > by checking its ops structure p

[dpdk-dev] [PATCH] telemetry: fix error when using ports of different types

2018-12-19 Thread Bruce Richardson
Different NIC ports can have different numbers of xstats on them, which means that we can't just use the xstats list from the first port registered in the telemetry library. Instead, we need to check the type of each port - by checking its ops structure pointer - and register each port type once wi