Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CCF36C43603 for ; Thu, 12 Dec 2019 10:32:29 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 873032067C for ; Thu, 12 Dec 2019 10:32:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 873032067C Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=ericsson.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8B5131BE8A; Thu, 12 Dec 2019 11:32:28 +0100 (CET) Received: from mail.lysator.liu.se (mail.lysator.liu.se [130.236.254.3]) by dpdk.org (Postfix) with ESMTP id 3A50C2BD3 for ; Thu, 12 Dec 2019 11:32:27 +0100 (CET) Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id BEA6040004 for ; Thu, 12 Dec 2019 11:32:26 +0100 (CET) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id A99AA4000D; Thu, 12 Dec 2019 11:32:26 +0100 (CET) Received: from [192.168.1.59] (host-95-205-12-42.mobileonline.telia.com [95.205.12.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id B7A3540004; Thu, 12 Dec 2019 11:32:24 +0100 (CET) To: "dev@dpdk.org" From: =?UTF-8?Q?Mattias_R=c3=b6nnblom?= Cc: jerinjacobk@gmail.com, "Richardson, Bruce" Message-ID: <796ea779-91d2-2aa1-b5ff-40f725f7d5f3@ericsson.com> Date: Thu, 12 Dec 2019 11:32:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] rte_event_dev_xstats_by_name_get issues 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" Hi. I'm looking at implementing rte_event_dev_xstats_by_name() for DSW, and I have some API-related questions. Shouldn't rte_event_dev_xstats_by_name_get() return mode and queue/port id? Otherwise the caller needs to know if the name refers to a device- or port-level stat, and in case of the latter also the port or queue id. That information is needed in subsequent rte_event_dev_xstats_get() call. Also, the API states that the function may return "negative value: -EINVAL if stat not found, -ENOTSUP if not supported", which is somewhat misleading, since the return value is of an unsigned type. Regards, Mattias