From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C2CF2A04DD; Tue, 26 Nov 2019 17:28:08 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 21FB64C9D; Tue, 26 Nov 2019 17:28:04 +0100 (CET) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by dpdk.org (Postfix) with ESMTP id 541B13195 for ; Tue, 26 Nov 2019 17:28:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574785680; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sD7q4eozMFZ4jaOn+jDFP+pFdD4SjGqXRcWXn51xotk=; b=hZVeNDf59PUqGeE3FXhkJBtERhRbpb+KMNbvjoU3u49ZChN8Nj0cjSmtVff4tiuXstfLb3 OQ1Uilq5dXt/N0SV4phKyZppE+Uw1/T253f6j+TchjoAO7ZT+1HlplKI8BlF+twOljk8N0 FMSrKAyvfcVngSRZwgr8L/ubLSELUxE= Received: from mail-vk1-f200.google.com (mail-vk1-f200.google.com [209.85.221.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-396-JFRKMpq8PmmbBjVErqrTPA-1; Tue, 26 Nov 2019 11:27:59 -0500 Received: by mail-vk1-f200.google.com with SMTP id o144so9180634vko.13 for ; Tue, 26 Nov 2019 08:27:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pgVuK1X2ANJisBHiUoft8k9uB+5jgcm1CPvGgdU7Cn0=; b=OP+i7xhnrM0qJfmycpbU4BgvPaJ0rYmcqWXKOy4yV7cPpx68AOvcketoIv4KhKInmj OZg9KyJPrL9FC0tzgLgtw2Y/5BaokLwz4XY+5p9FB/+zuRzHB7lRF4BQDj3SCFN0Wbed kHuDOxHdVAS1dtTln3Mms8g3AgQjro2hI5H5lFmUjFDA09suwlVhR8H3cEhiG6QF1YvD xu4+RfUCplOH4P9PG8GAFOZMXWaSBqnd96mQea5dzwKlw6c2ban0Qn6ksLTqbXE47yk8 BHa4H3ZBM7yChJpie4py5CuH0A4KcdiH8rO0rBELnvas+fzKSHZhIRg4aIPnhJFb5Z67 2tBQ== X-Gm-Message-State: APjAAAViH4v4f533RBUXm0tNQNbXN4gSR0FECvrYIinOvqzOG0Uzwipt qNhdaSlLOPyjbnCORObNKC/cU9/eDQNxKJkcvy51FUpMNzAia2ZOWvTtkQEluE2tcvvK6TFMQGh NRJgLaVjQxjMNg8aITBY= X-Received: by 2002:a67:ee49:: with SMTP id g9mr23539762vsp.105.1574785678313; Tue, 26 Nov 2019 08:27:58 -0800 (PST) X-Google-Smtp-Source: APXvYqzKF1MLClub5CxQlO9s2kA2C4zCSZmo8ZCVRm+DNexlx9DryPxqCQTEjvl+0vQ1loYspEIkRj3wCnxmOTx3SmI= X-Received: by 2002:a67:ee49:: with SMTP id g9mr23539741vsp.105.1574785677950; Tue, 26 Nov 2019 08:27:57 -0800 (PST) MIME-Version: 1.0 References: <20191125153620.69358-1-bruce.richardson@intel.com> In-Reply-To: <20191125153620.69358-1-bruce.richardson@intel.com> From: David Marchand Date: Tue, 26 Nov 2019 17:27:47 +0100 Message-ID: To: Bruce Richardson Cc: dev X-MC-Unique: JFRKMpq8PmmbBjVErqrTPA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH] examples/ioat: handle error when querying number of stats X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list 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 Mon, Nov 25, 2019 at 4:36 PM Bruce Richardson wrote: > > To get the amount of memory needed for stats, we call the xstats_get_name= s > function with a NULL parameter, which can return -1 on error. This negati= ve > value was not previously handled correctly, so we adjust things to quit t= he > stats printing routine if this basic call fails. > > Coverity issue: 350346 > Fixes: 632bcd9b5d4f ("examples/ioat: print statistics") > > Signed-off-by: Bruce Richardson Applied, thanks. -- David Marchand