From patchwork Wed Mar 14 13:37:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Madalin Bucur X-Patchwork-Id: 10282191 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B249E601E9 for ; Wed, 14 Mar 2018 13:40:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9753C28692 for ; Wed, 14 Mar 2018 13:40:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 95A0A28957; Wed, 14 Mar 2018 13:40:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 70CEA28692 for ; Wed, 14 Mar 2018 13:39:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:To:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=r1Qs/YSLbS7dEGaDowTZBTBPCuXU+gGRN0485cOK78E=; b=fOMcXbxL9fV516 7kSmWmIUX4T0ear2jyZCx0PQX/L9oaypUFgL7l61XfuUT8xjCwghdkPtVk+jzTcB4tLFzvoMbe7NO 3tw4djS9/ayQqWzZwE2Grg5nCDelHb7tpYd8F4KkBG7xS4Z1uy6Hs3VtToMxperZtSRiuPRrtyTfE CRFFsRUNoaNl46t2JYGGRU1JtIHCZInngF3EJUGuBWXttO4Vr9Hw5+4+kouR86a0lmhStnNYUKdCv n6lqdZuq6PdkW6koICKz4Vdrw/DYJwDqdboEIJttOvCZ5l2qCfFskq5amLFPZFAA9AMfBD9fVVWuu u5+f/exgNuhhhMhaQkWg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ew6d8-0006Th-NT; Wed, 14 Mar 2018 13:39:46 +0000 Received: from mail-eopbgr10084.outbound.protection.outlook.com ([40.107.1.84] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ew6c6-0005it-Dr for linux-arm-kernel@lists.infradead.org; Wed, 14 Mar 2018 13:38:46 +0000 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=QP8zHgBEkujCdX2MmRjMF+t5iCbs1fn0qmwFTl7E8IY=; b=XkmXhgjqzYuipzd0S9rKVKiXZydFXmUlKLp/QmFl5Zs+2T4dS/EgN5CJ89/goDCSmHYsz8E9a5skUAPMzUhOBd7CRJmhNKCYz2+aK5zBMkdT0Q8i1OdK7fKqoAxtI5jcuzUqBJ+sG+ojanPzKMzDplVzYytfycXYscSB+D0/pPg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=madalin.bucur@nxp.com; Received: from rhuath.am.freescale.net (192.88.168.49) by AM5PR04MB3267.eurprd04.prod.outlook.com (2603:10a6:206:d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.567.14; Wed, 14 Mar 2018 13:38:31 +0000 From: Madalin Bucur To: davem@davemloft.net Subject: [PATCH 4/5] dpaa_eth: increment the RX dropped counter when needed Date: Wed, 14 Mar 2018 08:37:31 -0500 Message-Id: <20180314133732.24068-5-madalin.bucur@nxp.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20180314133732.24068-1-madalin.bucur@nxp.com> References: <20180314133732.24068-1-madalin.bucur@nxp.com> MIME-Version: 1.0 X-Originating-IP: [192.88.168.49] X-ClientProxiedBy: SN4PR0601CA0024.namprd06.prod.outlook.com (2603:10b6:803:2f::34) To AM5PR04MB3267.eurprd04.prod.outlook.com (2603:10a6:206:d::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 8ad45f65-6e3e-47d3-9d69-08d589b0e115 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM5PR04MB3267; X-Microsoft-Exchange-Diagnostics: 1; AM5PR04MB3267; 3:HEa7S1M/mD3vtDEqPUfjLqPvtZYpKiR0HvW3XR5M4MyxyCpaFGvlqs5eei4cU3OGjCc8SWy/XrLB8pZ2uhBmh6VEeh8FRECxyJFk4fDze6+pPklZrx8a8nLQnBlzF/L/KxsbEn/q60EJH/5pIvR5F8IdYs7FyAQ64jYhQcSjK5w4zaMNZoE3xvTSc3hmGwoxtk7HLHXlo5kYa6cDS/7OwrqGzY8oIq8WHpExEIQS3mi56xUdhffuMDSldRLTzgGj; 25:CiEed0iimulTM3J2/5ZLKDgxH5eoiH8Y93NyAxfQTiOGCR+C5jlYVSs1SdrMJVX3VgI+GReUzQUkTd+5UGBL6aq/BipEOSS9y5FHTM+bUT4HhzDP3iy8Tecd2c1rfM21tqfbTTIVv5M+B4HAsT7E0fVOo41EVaqnn+8lMsT+gBlAcc6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BhoMuI3s37wWbPYgO5wQiFWVn3ViQcMmzieojaEpVud6ZBayG1C6/BjJ3AIqns9vwcU35xuqnykvg0upp6Bs+XytUZ+yLVSup3UtjqYOtJ3suw9s+6lpC74AC969T+An3E95y/ugg+tH+jK+4RwuMMjX8MqNld7+fkVV5sKdwnbSxoAihEC2j2eSfUeuYUNdgK8f3gr1E8hqQjKQqFbVpck7jX+DySLforBwrpWcsekhRYaT/ktzoHAMRG X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501244)(52105095)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123560045)(6072148)(201708071742011); SRVR:AM5PR04MB3267; BCL:0; PCL:0; RULEID:; SRVR:AM5PR04MB3267; X-Forefront-PRVS: 0611A21987 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(39860400002)(39380400002)(346002)(376002)(366004)(396003)(199004)(189003)(1076002)(68736007)(7736002)(6916009)(47776003)(4326008)(8676002)(2950100002)(316002)(50466002)(81156014)(25786009)(81166006)(66066001)(50226002)(305945005)(3846002)(8936002)(53936002)(6116002)(36756003)(48376002)(2906002)(16526019)(26005)(3450700001)(2361001)(86362001)(186003)(59450400001)(478600001)(51416003)(76176011)(106356001)(52116002)(16586007)(43066004)(6512007)(2351001)(6486002)(97736004)(5660300001)(386003)(105586002)(6506007)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR04MB3267; H:rhuath.am.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR04MB3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Z34?= =?us-ascii?Q?6wmXQ/lA5aVO4tYECSnYtrIzZ/rmhgMS/zO+03gOZ+ExhaNChhEMXRTe6cgt?= =?us-ascii?Q?mrGGyPvMdugg6pJg+rymaolqiTPX11tsyge0wdp/I6t5LdXbWTGfnT+igaOi?= =?us-ascii?Q?DxgNPRUAd9VVPec4pQQQ7llKnM60OiBTqJjEnfmo6nxeykP+xMW1YlvDmONo?= =?us-ascii?Q?p/owIKyiYUqsZZEJfL8IP3676q0xiluwoj//aeiVhb4f+p8fOPs/e3o6GnaX?= =?us-ascii?Q?X5OixQKVphHyCfe8xDpnhEunSFmlKbxY80lSFJwei09HQRRRLhM5hnCfH373?= =?us-ascii?Q?4aML1X0T6zHQs8xb17tLhTEOT8GI0sG1F5z7GXP6IFbY7Dlx+5Gk19wxx4Jr?= =?us-ascii?Q?nRrPpHmhunQHNWJmbPri1uwtClcD9oM+UAfIXIqamZb0Zz+Kcv+oReGkzBgs?= =?us-ascii?Q?8rO5LoopvmoFQ0q78Hv9iQ=3D?= X-Microsoft-Antispam-Message-Info: oH2+M5ZQFG4VcyC5xfMAtYpDwdM955vjUUYh3SlpnaoegfkGSBeBEFWAg7PZgUVqnIxBROp8iOTc4QO8lJSvhsHYiyG+4p71SSaaBjlIioB5Z/I9zJETxUtHs7XYAjGwL3/dWb4e/u3aTWNaWEjg8Goajw+s5ol33B+DMyFJgPLhqRp5dxcDoRxEjezH0OLw X-Microsoft-Exchange-Diagnostics: 1; AM5PR04MB3267; 6:rP+jbuMtzrLnq8+yGsFmWjLm/Vozu7bZDYmFETjA0phucKMcP9bC6N63O5ECj+/Eey4a1pAX/jFOcr/ULpzaoy78t3FfEDJrCbOQzNeq/RX9Nn1LcRvfJ/72lTfmFUXYS3kw1UhrW3292cMYyXhQJ7+XCKm/nNASfs7yZdUpGoKZ9+OocQf2jNmWku3/1QOF/cdzSmP3DaHlXIk16rx4l1/2pTxFYqSgqG7b+hiOC9teFERkaCBSY++nAlb7htqaLxakZGDB54mIpr5PgFHVM7TRPO+eQDe+pxYPfInCDRh2IMTdjsQQbqdHmpbpZxcUSVTBX6V7wdHql2Uc5/3G/S5rWtv1HmD8fO6OGElIDX4=; 5:3lbRA661zt2dpyDH3YNCIBcswU4LkvrAmz/IBSwvhgV4iLfVkxwlNd6uEA5+W1i6JD9egxpXM9zxwod00Zv1HY3bqVLp7qAvtqBUCyKX3WmYY4iF9Iga+tKoWTbwCsEX9rbbzBOEUDQ0ehUmXEtOGiuwrWXi/N+v/qlhRs/bq7w=; 24:chcTL0iADVJfslDeIMo2Dd7gvV2jYz7PRQYxerQMz6NDaI7kQ27QKrPxAb5heot/qn7S/3Egd0olOCIqTII5ekA1LBL1semnNiTBv8SSvOI=; 7:thM9uD3755s0nzgY1AmOtNFjvFyD9jnRcwj8zwaveJQhT0Njr5wR/igrczGP4FoOaRLWv21tdKcIILkJZz9gE33f0N3smxhr1i8EF2WYWMs9/T5Y9qgpRf/MVjF5nBxZOvtgn97UpkObXfeBAbNWUOMgA7eboqxlRX8l9l8WglcJV+AI0g2iT1o8hrG9iDdN6BbN69KSvd5EQT0sNPs4Yn50c4LVFdNOO1F0dpMOvLhZAraY+n78BWTlli2SkiMG SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2018 13:38:31.1801 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8ad45f65-6e3e-47d3-9d69-08d589b0e115 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR04MB3267 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180314_063842_956880_27F0B453 X-CRM114-Status: GOOD ( 10.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: madalin.bucur@nxp.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, leoyang.li@nxp.com, camelia.groza@nxp.com, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Camelia Groza Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c index 3e83d79..76b3c9e 100644 --- a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c +++ b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c @@ -2321,8 +2321,10 @@ static enum qman_cb_dqrr_result rx_default_dqrr(struct qman_portal *portal, skb_len = skb->len; - if (unlikely(netif_receive_skb(skb) == NET_RX_DROP)) + if (unlikely(netif_receive_skb(skb) == NET_RX_DROP)) { + percpu_stats->rx_dropped++; return qman_cb_dqrr_consume; + } percpu_stats->rx_packets++; percpu_stats->rx_bytes += skb_len;