From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] telemetry: fix error when using ports of different types Date: Fri, 21 Dec 2018 00:51:26 +0100 Message-ID: <35952782.MrcKBpYm8b@xps> References: <20181219115950.46386-1-bruce.richardson@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Bruce Richardson , stable@dpdk.org To: Kevin Laatz Return-path: In-Reply-To: <20181219115950.46386-1-bruce.richardson@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" 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 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 Kevin, any comment please?