From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [dpdk-stable] [PATCH] telemetry: fix error when using ports of different types Date: Fri, 21 Dec 2018 16:33:34 +0100 Message-ID: <4468033.Rs7KMS8u4G@xps> References: <20181219115950.46386-1-bruce.richardson@intel.com> <9610a05b-bac2-a964-bbd2-44492ae1da03@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: stable@dpdk.org, "Laatz, Kevin" , dev@dpdk.org To: Bruce Richardson Return-path: In-Reply-To: <9610a05b-bac2-a964-bbd2-44492ae1da03@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 21/12/2018 14:27, 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 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 Applied, thanks