From patchwork Wed Oct 14 05:14:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Kochetkov X-Patchwork-Id: 11836783 X-Patchwork-Delegate: kuba@kernel.org 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.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 3C3A9C433DF for ; Wed, 14 Oct 2020 05:13:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3CCC720B1F for ; Wed, 14 Oct 2020 05:13:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=inbox.ru header.i=@inbox.ru header.b="WOciWWdr"; dkim=pass (1024-bit key) header.d=inbox.ru header.i=@inbox.ru header.b="fCrx5JnC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730170AbgJNFNm (ORCPT ); Wed, 14 Oct 2020 01:13:42 -0400 Received: from fallback23.m.smailru.net ([94.100.187.222]:34806 "EHLO fallback23.mail.ru" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726037AbgJNFNm (ORCPT ); Wed, 14 Oct 2020 01:13:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=inbox.ru; s=mail; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:Cc:To:From; bh=FvE4Wp1/kNY4p6zROGkWOcQX/gdhOS4+tJ7ouSp04Yc=; b=WOciWWdrz8rlBeA+PsxAOmqZWx+kYxTegZ1WCfb20eoB+iKXisccX77PV7r0+ZHiK5xeYaZQNKcCVvUE7sa2r1nn4rJYepHvTi9omh2lX4zqbJX8jorrhd4CktUGjmXLy1zysskw1ZD1hIlaV5P2TBMG6v5csN7IrY7P6wdhgHI=; Received: from [10.161.64.60] (port=34582 helo=smtp52.i.mail.ru) by fallback23.m.smailru.net with esmtp (envelope-from ) id 1kSZ6Z-0000ey-14 for netdev@vger.kernel.org; Wed, 14 Oct 2020 08:13:39 +0300 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=inbox.ru; s=mail3; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:Cc:To:From:From:Subject:Content-Type:Content-Transfer-Encoding:To:Cc; bh=FvE4Wp1/kNY4p6zROGkWOcQX/gdhOS4+tJ7ouSp04Yc=; b=fCrx5JnCoIKWDUUf3qlPKP+yefTwxJ7AGvHshM60nA7ptV8uShTmwPbxkE4nAvhobZzTsWfg8HJOwCX0Pa51Ij9JxgBxLAP+q12ZMb8oYLhpyQU0Y6MS72eDiRM2HLwJWBkWzedI6B65yZxS28tDE/jqbwKDhgwMayguDDfstmA=; Received: by smtp52.i.mail.ru with esmtpa (envelope-from ) id 1kSZ6U-0003Zi-Oa; Wed, 14 Oct 2020 08:13:35 +0300 From: Maxim Kochetkov To: netdev@vger.kernel.org Cc: Vladimir Oltean , Horatiu Vultur , Florian Fainelli , Alexandre Belloni , "David S . Miller" , Maxim Kochetkov Subject: [PATCH 1/1] net: dsa: seville: fix buffer size of the queue system Date: Wed, 14 Oct 2020 08:14:04 +0300 Message-Id: <20201014051404.13682-1-fido_max@inbox.ru> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD9E98D729206725230EC4711DECE1C9CA05A4415BA10E9EF16182A05F538085040811F65267938B92C9A30B7DB8A4E398789E48A62ACD588DCDE9275158327C653 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7C2204D4F9A221771EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637BFD6B3F1638522B88638F802B75D45FF5571747095F342E8C7A0BC55FA0FE5FC2087ACAB37DAB0D2CAB0E13B9D68A988CB1759BB24508E68389733CBF5DBD5E913377AFFFEAFD269176DF2183F8FC7C0998E19D2343267C68941B15DA834481FCF19DD082D7633A0E7DDDDC251EA7DABA471835C12D1D977725E5C173C3A84C3E478A468B35FE767117882F4460429728AD0CFFFB425014E592AE0A758652A3D76E601842F6C81A19E625A9149C048EEC24E1E72F37C03A045B9AC499A3C791CD8FC6C240DEA76429449624AB7ADAF37B2D370F7B14D4BC40A6AB1C7CE11FEE3A2475C18617057EEC0837EA9F3D19764C4224003CC8364767A15B7713DBEF166A7F4EDE966BC389F9E8FC8737B5C22499D4858787C9230AF089D37D7C0E48F6CCF19DD082D7633A0E7DDDDC251EA7DABAAAE862A0553A39223F8577A6DFFEA7C9B0A0C6A10C20F7843847C11F186F3C5E7DDDDC251EA7DABCC89B49CDF41148FA8EF81845B15A4842623479134186CDE6BA297DBC24807EABDAD6C7F3747799A X-C8649E89: 4A0499F02C53FFFBC8C105306EB89D6563807AC32179C7EE1B5C02BBA05BFC995E41AAE8B1B653A6 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojwfNTBk2YwQGM3JyaSK1R0g== X-Mailru-Sender: 11C2EC085EDE56FA9C10FA2967F5AB241621DC53371021360058C89663E70EEF94D938EB43ACFE1EEE9242D420CFEBFD3DDE9B364B0DF2891A624F84B2C74EDA4239CF2AF0A6D4F80DA7A0AF5A3A8387 X-Mras: Ok X-7564579A: 646B95376F6C166E X-77F55803: 6242723A09DB00B4033B2E76A2A2E7F3D7C40938B5608F3039AD8672D1456623049FFFDB7839CE9E1E474B3F1C45560A5B9D6639531B2DE067F16DC87AC06DEDA6F10619B8C24295 X-7FA49CB5: 0D63561A33F958A529DFC01B6E46FDA1617621F7D06E9EE145A75973B56231AD8941B15DA834481FA18204E546F3947C540F9B2D9BA47D56F6B57BC7E64490618DEB871D839B7333395957E7521B51C2545D4CF71C94A83E9FA2833FD35BB23D27C277FBC8AE2E8B2EE5AD8F952D28FBA471835C12D1D977C4224003CC8364765529D5D60078C743D81D268191BDAD3DC09775C1D3CA48CF26163BE27A4E3063BA3038C0950A5D36C8A9BA7A39EFB7668729DE7A884B61D135872C767BF85DA29E625A9149C048EE1B544F03EFBC4D5789424AA0EF8DE9BA4AD6D5ED66289B524E70A05D1297E1BB35872C767BF85DA227C277FBC8AE2E8B6435C1528B3C0E0675ECD9A6C639B01B4E70A05D1297E1BBC6867C52282FAC85D9B7C4F32B44FF57285124B2A10EEC6C00306258E7E6ABB4E4A6367B16DE6309 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojwfNTBk2YwQEPM+BNKsMRqA== X-Mailru-MI: 800 X-Mailru-Sender: A5480F10D64C90051B732BAF0E936B4216FA1D8B945B97B86C93F2C7EEC250A7199531D441672C9AC099ADC76E806A99D50E20E2BC48EF5A30D242760C51EA9CEAB4BC95F72C04283CDA0F3B3F5B9367 X-Mras: Ok Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org 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 megabytes. 2 megabytes is (2048 / 8) * 1024 = 256 * 1024. Signed-off-by: Maxim Kochetkov Fixes: a63ed92d217f ("net: dsa: seville: fix buffer size of the queue system") --- drivers/net/dsa/ocelot/seville_vsc9953.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.27.0 diff --git a/drivers/net/dsa/ocelot/seville_vsc9953.c b/drivers/net/dsa/ocelot/seville_vsc9953.c index 9e9fd19e1d00..e2cd49eec037 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,