From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 516E5A034F; Fri, 8 Oct 2021 12:58:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9D268411EA; Fri, 8 Oct 2021 12:56:32 +0200 (CEST) Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) by mails.dpdk.org (Postfix) with ESMTP id B2D8A41217 for ; Thu, 7 Oct 2021 20:45:38 +0200 (CEST) Received: by mail-pg1-f171.google.com with SMTP id q201so636172pgq.12 for ; Thu, 07 Oct 2021 11:45:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oneconvergence.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=x90SdLxYQtHPWd4hpSHNntvcTTEsVtntk4EIpYA0mvo=; b=iJMkjmar+WIhyw0rxFYYXSls0AsIkq/iEocLAjjkLS9ZJt6vilYBImEawlHomUL0Dy Lxtd2vpyi22l0xBIOzBUJ1ys0GSGQLsnIu+Ns6JGEj77nrE4DzwtsWPZlLl+qpCuwcf0 dHqEImIQYFm2IEiDoL/F5n6pI6Bv1QUhCZCD4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=x90SdLxYQtHPWd4hpSHNntvcTTEsVtntk4EIpYA0mvo=; b=cZxa+zfH3fqftmgYnhRPKl/ODVTG3X9PV8aCZQjhiDiHSIx5pOOLReim3buJfIrr2I kYfFpdPDNej+wM5kTdg5/2SdyD7DG+RQBKAYSDcCzuV4jh2gkOdKCoiDi3GQB37X18pa jtR3kFwvHmX12XrRZ38kzN07hhEbGlLfB8JWc9Mk4huRCP18R5j03HsE0w+Vix7ngklQ uTIqW7cImuQp8sUUsyM9gXfdiwxXX7UOpwkzPJ4swgbe7gr3wsDyvPPFzBh1OdR0SyBm QIbLjCSgOzPlzFI8RB8hVPf1eTb/9ioA4+rFijohmsY2uzaLsRSShrq/PeA/f+KGLTwp CqzQ== X-Gm-Message-State: AOAM531oh8jG+DwYOQCh4ApywRGV9MkGWIEuN51ggn79woQJV199Hdfr 7cW56/F8q4VlELx3UfDwWkRoPA== X-Google-Smtp-Source: ABdhPJzbn1iAgn3++Qp29c98BX1BXx863mqo0fyzu5Zm0TIYm2Ybr1KFDoeiQebOC3dYoWpz9Ouuhg== X-Received: by 2002:a05:6a00:2355:b0:44c:86c:49f4 with SMTP id j21-20020a056a00235500b0044c086c49f4mr5636872pfj.58.1633632338000; Thu, 07 Oct 2021 11:45:38 -0700 (PDT) Received: from srikanth-ThinkPad-T450.domain.name ([136.185.113.102]) by smtp.gmail.com with ESMTPSA id c11sm3311586pji.38.2021.10.07.11.45.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Oct 2021 11:45:37 -0700 (PDT) From: Srikanth Kaka To: Matan Azrad , Viacheslav Ovsiienko Cc: dev@dpdk.org, Vag Singh , Anand Thulasiram , Srikanth Kaka Date: Fri, 8 Oct 2021 00:13:40 +0530 Message-Id: <20211007184350.73858-32-srikanth.k@oneconvergence.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211007184350.73858-1-srikanth.k@oneconvergence.com> References: <20211007184350.73858-1-srikanth.k@oneconvergence.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Fri, 08 Oct 2021 12:55:54 +0200 Subject: [dpdk-dev] [PATCH v2 31/41] net/mlx5: add stub to read hw counters X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" retrieving hw counter stats is not supported at the moment. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_os.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/drivers/net/mlx5/freebsd/mlx5_os.c b/drivers/net/mlx5/freebsd/mlx5_os.c index 0c7e43646e..9a7c7e4b95 100644 --- a/drivers/net/mlx5/freebsd/mlx5_os.c +++ b/drivers/net/mlx5/freebsd/mlx5_os.c @@ -327,6 +327,30 @@ mlx5_os_dev_shared_handler_uninstall(struct mlx5_dev_ctx_shared *sh) #endif } +/** + * Read statistics by a named counter. + * + * @param[in] priv + * Pointer to the private device data structure. + * @param[in] ctr_name + * Pointer to the name of the statistic counter to read + * @param[out] stat + * Pointer to read statistic value. + * @return + * 0 on success and stat is valud, 1 if failed to read the value + * rte_errno is set. + * + */ +int +mlx5_os_read_dev_stat(struct mlx5_priv *priv, const char *ctr_name, + uint64_t *stat) +{ + RTE_SET_USED(priv); + RTE_SET_USED(ctr_name); + RTE_SET_USED(stat); + return -ENOTSUP; +} + /** * Set the reg_mr and dereg_mr call backs * -- 2.30.2