From mboxrd@z Thu Jan 1 00:00:00 1970 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=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable 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 EAC5CC5517A for ; Tue, 27 Oct 2020 16:16:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 665B921556 for ; Tue, 27 Oct 2020 16:16:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603815394; bh=SW88eK/jiGDxVxGbT2VqM6v0JHZOAYAyIZmEZo2DG58=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=cek/4kmrBKf8/n6YYt0jp//Xsn9leJLVxlTyGoAdHoAC1jwxXo7ghlMzM848Uvblg khjh4EOFeAmmPy50rVQeGIBccpRiG+MSO+/n+1vmnWvFQO/soK2QrF/86AJJJ7FHEi fQiSEpPVmEAHbluXfEdFReF1MSl6aOA1WBjgXkCc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1806328AbgJ0QGH (ORCPT ); Tue, 27 Oct 2020 12:06:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:44424 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1802378AbgJ0PrH (ORCPT ); Tue, 27 Oct 2020 11:47:07 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F1D5C21D42; Tue, 27 Oct 2020 15:47:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603813626; bh=SW88eK/jiGDxVxGbT2VqM6v0JHZOAYAyIZmEZo2DG58=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tUnSoEiKrihpX7rL2LJMjYBTW8viNVmktO6YNtzxDKvk4QphOuPVHVw0vXByju5W0 G6za65Kh3qjXZwnGJwioapCIacCx467YbN9R8nTkoj+wTbX+FrTx/edf4nM93pA+Oh UsII8t+ikSG+TIASYjHQBdnx3QhNbz5dR2Fyj/34= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Maxim Kochetkov , Vladimir Oltean , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.9 574/757] net: dsa: seville: the packet buffer is 2 megabits, not megabytes Date: Tue, 27 Oct 2020 14:53:44 +0100 Message-Id: <20201027135517.435448109@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135450.497324313@linuxfoundation.org> References: <20201027135450.497324313@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maxim Kochetkov [ Upstream commit a15a6afb3bf9388eb83a4b876d3453f305fba909 ] The VSC9953 Seville switch has 2 megabits of buffer split into 4360 words of 60 bytes each. 2048 * 1024 is 2 megabytes instead of 2 megabits. 2 megabits is (2048 / 8) * 1024 = 256 * 1024. Signed-off-by: Maxim Kochetkov Reviewed-by: Vladimir Oltean Fixes: a63ed92d217f ("net: dsa: seville: fix buffer size of the queue system") Link: https://lore.kernel.org/r/20201019050625.21533-1-fido_max@inbox.ru Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/dsa/ocelot/seville_vsc9953.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/ocelot/seville_vsc9953.c b/drivers/net/dsa/ocelot/seville_vsc9953.c index 9e9fd19e1d00c..e2cd49eec0370 100644 --- a/drivers/net/dsa/ocelot/seville_vsc9953.c +++ b/drivers/net/dsa/ocelot/seville_vsc9953.c @@ -1010,7 +1010,7 @@ static const struct felix_info seville_info_vsc9953 = { .vcap_is2_keys = vsc9953_vcap_is2_keys, .vcap_is2_actions = vsc9953_vcap_is2_actions, .vcap = vsc9953_vcap_props, - .shared_queue_sz = 2048 * 1024, + .shared_queue_sz = 256 * 1024, .num_mact_rows = 2048, .num_ports = 10, .mdio_bus_alloc = vsc9953_mdio_bus_alloc, -- 2.25.1