Patch "net: dsa: seville: the packet buffer is 2 megabits, not megabytes" has been added to the 5.9-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    net: dsa: seville: the packet buffer is 2 megabits, not megabytes

to the 5.9-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     net-dsa-seville-the-packet-buffer-is-2-megabits-not-.patch
and it can be found in the queue-5.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 9f17700e7b6d46ce50abbed1f83043de0b4653f1
Author: Maxim Kochetkov <fido_max@xxxxxxxx>
Date:   Mon Oct 19 08:06:25 2020 +0300

    net: dsa: seville: the packet buffer is 2 megabits, not megabytes
    
    [ 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 <fido_max@xxxxxxxx>
    Reviewed-by: Vladimir Oltean <vladimir.oltean@xxxxxxx>
    Fixes: a63ed92d217f ("net: dsa: seville: fix buffer size of the queue system")
    Link: https://lore.kernel.org/r/20201019050625.21533-1-fido_max@xxxxxxxx
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

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,



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux