From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Laatz, Kevin" Subject: Re: [PATCH] telemetry: fix error when using ports of different types Date: Fri, 21 Dec 2018 13:27:49 +0000 Message-ID: <9610a05b-bac2-a964-bbd2-44492ae1da03@intel.com> References: <20181219115950.46386-1-bruce.richardson@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, stable@dpdk.org To: Bruce Richardson Return-path: In-Reply-To: <20181219115950.46386-1-bruce.richardson@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 structure pointer - and register each port type once > with the metrics lib. > > CC: stable@dpdk.org > Fixes: fdbdb3f9ce46 ("telemetry: add initial connection socket") > > Signed-off-by: Bruce Richardson Acked-by: Kevin Laatz