Message ID | 1522679881-25643-9-git-send-email-m-karicheri2@ti.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 7610360467 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 2 Apr 2018 14:58:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6535028112 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 2 Apr 2018 14:58:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5834628AF8; Mon, 2 Apr 2018 14:58:42 +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=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 D55CD28112 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 2 Apr 2018 14:58:41 +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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/ILHrVIM68u8l87KznzSBQyy7fjRzW1bu2WX11z1usI=; b=gJOlN3aYztP3Kk FGMPvh4uX0K79baYAHRBOv29FxJpsXfok4YPaMJYnnsXXWypQYx/xF4lrZgC29qfAWOrSRcGCjMqK 37wbtb7ys5zxAnB2Ecv8OXHONxOR3h171moWBRBW8gD3TJS+3haBNaThPEQRZYGEM/0O2++qNxwNm ObzxuwblODCOjzMDDNZAz5GBlzPdGRdH/3xX/n3LBffBtL7Hfq8/N0lbT0SaFL/Z6AJyseKk2uGFf lz5hqQlXUa8lGEMvH6diJa9f2UKRSuQrL7ul6SBuhNCC3dTCJk/SLVA//u7oOJ3HO9Yeq01fsHQe1 pxtqhWQWyk+e8BH4ADrQ==; 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 1f30uq-0004bh-5L; Mon, 02 Apr 2018 14:58:36 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f30iI-0001a1-FK for linux-arm-kernel@bombadil.infradead.org; Mon, 02 Apr 2018 14:45:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=i15d9BVTNGbC5rUSKF++CB+7jh4HeDo7J+g5hoMRvGQ=; b=dpFVKnqZkzvARV6YsINumEp3p DfdhQYgAHyCTivu+DNDIDSJIXCj5eTxxKEuX0FUAb3UJueNl0njsdpfT3oxnAUC02oRH7+hIzd8qa cvmtTbBzVOv+oaw9YevRNup3I7U2PgXJ1LlnP6G0btqYBt9a2tyKJQg6BfnNBTwZgzJI1qN7jbjau TlN0GKNPhm6HWVniW4UEpLEtSQuK56AFdPvR6pSVcDfHGfU2ucX7prr/zV1tT869urzgaCjIt9K38 IeLwqiKlXPlNzmr654qTU86NjIa0Lb8j5K5gcahw0GjHRfoDdBhN6z8dG3Fm/K2u7u++azBf8teBi 8W52FPkpA==; Received: from lelnx194.ext.ti.com ([198.47.27.80]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f30Yj-0005FT-3q for linux-arm-kernel@lists.infradead.org; Mon, 02 Apr 2018 14:35:47 +0000 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w32EZP4O032023; Mon, 2 Apr 2018 09:35:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1522679726; bh=H5JXvqz+5nfQutQR7ne48JDopyjTFSmmnma92BmbVzo=; h=From:To:Subject:Date:In-Reply-To:References; b=bp2oR1cz82A2kKwHt+DQWKa/SYIAMJ8i0n4c8N6zhvw02av2hajIsPmd8BMa0XalQ OUUP+gXWoESlw3gQOhgXPa+Vas6eNUMhcfJH1JiSdlBeMbNCA53Huz1P+17c2IIueY lVBmzUY9rDqo+BfA8KP4PMi/YAe7KdGE1og+NPro= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w32EZPeu016344; Mon, 2 Apr 2018 09:35:25 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Mon, 2 Apr 2018 09:35:25 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Mon, 2 Apr 2018 09:35:25 -0500 Received: from ula0868495.am.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w32EZKc5025486; Mon, 2 Apr 2018 09:35:25 -0500 From: Murali Karicheri <m-karicheri2@ti.com> To: <robh+dt@kernel.org>, <mark.rutland@arm.com>, <ssantosh@kernel.org>, <malat@debian.org>, <w-kwok2@ti.com>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <davem@davemloft.net>, <netdev@vger.kernel.org> Subject: [net-next PATCH v3 08/11] net: netcp: ethss: re-use stats handling code for 2u hardware Date: Mon, 2 Apr 2018 10:37:58 -0400 Message-ID: <1522679881-25643-9-git-send-email-m-karicheri2@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1522679881-25643-1-git-send-email-m-karicheri2@ti.com> References: <1522679881-25643-1-git-send-email-m-karicheri2@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180402_153545_509375_5FBF80CE X-CRM114-Status: GOOD ( 11.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/net/ethernet/ti/netcp_ethss.c b/drivers/net/ethernet/ti/netcp_ethss.c index 33d70d4..7b3b373 100644 --- a/drivers/net/ethernet/ti/netcp_ethss.c +++ b/drivers/net/ethernet/ti/netcp_ethss.c @@ -3394,7 +3394,7 @@ static int set_gbenu_ethss_priv(struct gbe_priv *gbe_dev, gbe_dev->num_stats_mods = gbe_dev->max_num_ports; gbe_dev->et_stats = gbenu_et_stats; - if (IS_SS_ID_NU(gbe_dev)) + if (IS_SS_ID_MU(gbe_dev)) gbe_dev->num_et_stats = GBENU_ET_STATS_HOST_SIZE + (gbe_dev->max_num_slaves * GBENU_ET_STATS_PORT_SIZE); else
The stats block in 2u cpsw hardware is similar to the one on nu and hence handle it in a similar way by using a macro that includes 2u hardware as well. Signed-off-by: Murali Karicheri <m-karicheri2@ti.com> --- drivers/net/ethernet/ti/netcp_ethss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)