Message ID | 1524661022-21484-4-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | Accepted |
Commit | 339c1025a87c3eeb38a9ec5bf0679caf21bec7e6 |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp831947lji; Wed, 25 Apr 2018 05:59:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx49cdmjsYwv5y84Dsd3mCV9YsmqTTtugmx6iXJXKhbMNGs8htatlxDjGWylIVyHDyHEI/OZ+ X-Received: by 2002:adf:80e4:: with SMTP id 91-v6mr23860353wrl.258.1524661187986; Wed, 25 Apr 2018 05:59:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524661187; cv=none; d=google.com; s=arc-20160816; b=xyEQJ+eGTEWnm72XUd3T61lVdssgDzC32rPcqCRF1qrOO2EvqmTf3WfyL5hsLVcO+l mLREq/ZXVbtYM+w9Cs9rqlgycGlQ4rAYvX00uW0nWd9cL5oCyBq2zkGBna/D1q1JojyP ldvzBYta702N0e2g4wltEQS0g226p6gRQpJUHAbUEwT7DEr2k0jZoVgy6KBeffs2dH2V OJssxcHRkscF5egOvlcBGX7q9QvHUw5xXrqu2dGZ5uvYwP8HZNafXve30OF/mlgIxOUF 1HiXcsh2xF9xORKWW2ifOcHv7u4rnOQOd3NbKj00DUyJDK+mgqLRLW7d77yidp9BN/WF 5nqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=2yx2CzfZps9CUhIFDCiOdlosfqwcE1mqKHULGE60x+E=; b=Dj+c1HN50XN1xB79JKEub0R7wqNtJDqV5+KVUsD9HQzv54Wcxsb4L7rOvO3uFjcZ+3 qxqSLczO5XEx1K0dFBtj5+8QOoHCsmrqoxH2JB9UoW8iyxhKDQt3OvgNbVLP3h8bFE+C IYpwV42uAwRLdL/NUs4xjJGYGNNcU6LduFFyJ9AtJHZJQHAhN3VStd+7pC76yX8suGTD vVxNGPVsuFslF+dVT6NcTyi5Jtk6Fwq7gc61el6XQQM3uNm0Eodh8EsihSP/IlWgdBud SAhhkaB9toh4BxKzDFKSkfiyVXZzHyVo7ZuUqTiX7KgYgq2jjTWvw4R9az0ZcpWcU9v0 p4Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=GXPiQFkI; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: <dev-bounces@dpdk.org> Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id q16-v6si1709843wrg.228.2018.04.25.05.59.47; Wed, 25 Apr 2018 05:59:47 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=GXPiQFkI; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C1F587CB9; Wed, 25 Apr 2018 14:59:19 +0200 (CEST) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0043.outbound.protection.outlook.com [104.47.2.43]) by dpdk.org (Postfix) with ESMTP id 7E142726F; Wed, 25 Apr 2018 14:59:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=2yx2CzfZps9CUhIFDCiOdlosfqwcE1mqKHULGE60x+E=; b=GXPiQFkIFx4Y0SCeaT6qnH297CLXRaFDsEV40zvtoETMBt+ucZk7O9RvHl0uFUfICh9zZfDj9jxmN/YjzNoRZd67B0X6iwpO3SotMVrLHJQ2EE1K8pnnb+1pxYPVSIaipOkyBnzLBMRuV8PNKZF6F/kF3uhClirFd852kjG6dNI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by DB4PR04MB0765.eurprd04.prod.outlook.com (2a01:111:e400:984d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.15; Wed, 25 Apr 2018 12:59:10 +0000 From: Hemant Agrawal <hemant.agrawal@nxp.com> To: dev@dpdk.org Cc: ferruh.yigit@intel.com, shreyansh.jain@nxp.com, stable@dpdk.org Date: Wed, 25 Apr 2018 18:27:01 +0530 Message-Id: <1524661022-21484-4-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524661022-21484-1-git-send-email-hemant.agrawal@nxp.com> References: <1524661022-21484-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MAXPR0101CA0035.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:d::21) To DB4PR04MB0765.eurprd04.prod.outlook.com (2a01:111:e400:984d::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DB4PR04MB0765; X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0765; 3:sM4rBpyWlX2enWcydLsTq50i1MbxGXj+kM+OjRuy5/MNc681L1mG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R9NxW7x2aWI0qPlD92fRsC5OlvNi/Ph4f5e2FHVkMTP4q3vvILKppuB7q7gjvrmS7H6uyh8yUxDmV2CQK8/r4LW0bX9WDReso5jWyJVKZD92iYmJQmROfM4AyWkFf2FIonapYO8XtwcNNlyvEEYB9HUFSbZ+yFN4m/FpwBz+R62ZxgDKypE2ZYBFNxMe043s02T2EtocwRVHOT5zR3hGPNLqSRVZAbZm2l3qlnLIR0RlocE9e4qRfDCALP77V7WOyahJOaBhWglrIkbEZtSNibz6+VvfPiEhl7+yoS9VsTHe3msrxAADJd; 4:srrp0/T99e3kpDfk/QS0PKgigFpv5YYDIMWWn7ExjwsZ2ALlHbIVs3D1GDizY/T9B9+lQZAPXqBctsj1N5FAzjyBA/d2lUqALedhBUQ2MQtqJQoDQLiZUtVehVZ0DMQzHBYgQTUqU7qdqzPHHpKLC1m9yCV+pc3c7L8D2Vuf75OkWBmeBxhI4qu8RRRbC8j4d0HEAJIBJvSInCf3rSgCxt2ZTshmL/BzPftXxmcddxFIyrtpo1MKEwaR7FeYH/exxaujZ5xP61OljXhaHJxhUTwtxlGaNK0bhZEMAWfgd6A56ttdfWERYdHh56QYq13qgCiaC67NUmzuYQwwos6Z5Ao7QoKQ5TtIJRAhdlVWUfY= X-Microsoft-Antispam-PRVS: <DB4PR04MB0765A676E2DCE281F960C8BC898F0@DB4PR04MB0765.eurprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(278428928389397)(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231232)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123558120)(6072148)(201708071742011); SRVR:DB4PR04MB0765; BCL:0; PCL:0; RULEID:; SRVR:DB4PR04MB0765; X-Forefront-PRVS: 06530126A4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(39380400002)(346002)(376002)(39860400002)(396003)(366004)(189003)(199004)(3846002)(186003)(26005)(6506007)(956004)(76176011)(97736004)(2616005)(11346002)(105586002)(446003)(6486002)(5009440100003)(486006)(386003)(52116002)(2351001)(2361001)(51416003)(5660300001)(25786009)(478600001)(2906002)(44832011)(316002)(16586007)(50226002)(47776003)(6666003)(6916009)(36756003)(8936002)(476003)(6512007)(106356001)(6116002)(55236004)(66066001)(53936002)(16526019)(68736007)(4326008)(86362001)(7736002)(81156014)(8676002)(81166006)(50466002)(305945005)(48376002)(110426005)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB4PR04MB0765; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB4PR04MB0765; 23:/JvwxyL5YNn+1+pY7PRv/YZeIim52FN/XatJs47kB?= A1Ho/h7KwYbe94nVzewqdc1cZIqNv8w5hXbF2F3F8ea5RjOa+kl8dRs0hO191IxEGy7IOj//2ZflgOyJ4U5SwwcPT1SewrySsTELQKOKccaDEpDVjH3zyFUuZf9ghxsSjWph3t+yanbqz/LvURllwP2EXXlHiVyueSy6ctN+H6sXx3/+rmOMzZY2nXn4Z+PuB5dT7mNOykcJCwfeJMcs3/sriu/umjjsUV0txDQ/CTKT0a5WKMQWRdnoOAnjvUst8uCzNOsz+6uEvc0gRPJV+WDKs4BrWl19aPxkupkJZDs3r3rrah3CZcpEvN/sZuBiQ9KWoSzLIHcU3joWrBmHXAId0OYuoBCqnpTDR6AGbUnkl7WrWfvqmENpliNzZ2k89KYQv4M1mf5/Lg00PPcWVHDtbrW5lY6FqLVj/IGKduFZFr5LYfAATO0uoMLvglu/myocwlo2YxuMP4wodA6ENQPCjtMXP5qGvIrqRYphvDEGt5h41gRp45TIB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xaM X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0765; 6:8D9zPpzkMNpVuIZyOK+KLnsfQvzzSeShzYjoVzno6+SAUeQkjaI7NJNAe95xwzO96HxuEa2eNjPeIMg1Y6lxUwVCaLVz1Z7KPvPBpXuUhCNUxP65Xl6J5BvnyfzHQOfvj6rsPx7mnT0CRKlgaRtIb92nCYS60j09UlQW1LHBp/O9mcb1P3EsqEwgoL1m0FlR5MVhxt0mUUlvT+rkJmSiYdb1ZK5VGqsCrS6lP/DMzcHsimPDonwWyJ85pcR3TkowNOMD3YFRaVadstaDjbF2p1N80H9Stksie0Tp05608M8aoFwtkr0VrKPB0DK1tzR0jkIFKgiSMilwdXv8eVl/adyoVQRQ7LLQvPdrdtjpuIdXWEvjIkWXNKQf3lFozrQbBEGOQu0usVKxqZhAazdAxZZzj/EVqgMdEeWAZfQS4bBgp/4X4y87kNcXouFDVaBjHZfBrYPHUbSrhjKJ2Akgjg==; 5:bhHtQynrEj9RaTmB3qcqrEgLXh9nAbkEhB5wSdf6zIiSqIaiuLIKbaUdRI4nb7JolY2GZZNIgNatqjhg5vmoEUzKIgdEHx1AlIRAvM0ufKVMLvFCnWiYRpiEMgD6EnG185YWCkIue4tIaDyxwk7FpXj0EUOz54jzR2L2SiiROSk=; 24:0+QeevOzHmZK7s2gw3ZDNrbMVb+Ravtmk//xNpxhYw8L665K3TaZYY+ty4DZfvogygdc9WvVXg+cnoaPG01MAteQaJ5En/gxugRXyDtTk3k= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0765; 7:yw97fz5ut3LzsF9Iv1jkC+DPD9PPbKrpw3LZKFd/rcQfVk0SybLvM5HtQNZ6PAklynKgCzUIfIYwwbKadPtKYLrL2uVNdGaqbrYQst8CqOL/RGSrf3j98t8enk2Sz/80kjG8hEtWAN55FSliaSNUQGp4BorMU9kuSHJVtmqtQNSapSVFBZRB7lAEN7iGfF/9S+75YTayS+JP0/SIhtRMEc+V8Q6P6mqkVmRUj8XlsiJU+H3XIZG1Oi0rrlu3OLet X-MS-Office365-Filtering-Correlation-Id: 757f3986-b494-4894-c091-08d5aaac5782 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2018 12:59:10.8483 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 757f3986-b494-4894-c091-08d5aaac5782 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR04MB0765 Subject: [dpdk-dev] [PATCH 4/5] net/dpaa: fix the xstats implementation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
[1/5] bus/dpaa: support device blacklisting
|
expand
|
diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index b2740b4..136f716 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -354,12 +354,12 @@ dpaa_dev_xstats_get(struct rte_eth_dev *dev, struct rte_eth_xstat *xstats, unsigned int i = 0, num = RTE_DIM(dpaa_xstats_strings); uint64_t values[sizeof(struct dpaa_if_stats) / 8]; - if (xstats == NULL) - return 0; - if (n < num) return num; + if (xstats == NULL) + return 0; + fman_if_stats_get_all(dpaa_intf->fif, values, sizeof(struct dpaa_if_stats) / 8);
Some of the applications are expecting that if n is 0, it shall return the supported number of stats. e.g. VPP Fixes: b21ed3e2a16d ("net/dpaa: support extended statistics") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> --- drivers/net/dpaa/dpaa_ethdev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.7.4