Skip to content

Commit a15a6af

Browse files
fidomaxkuba-moo
authored andcommitted
net: dsa: seville: the packet buffer is 2 megabits, not megabytes
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 <[email protected]> Reviewed-by: Vladimir Oltean <[email protected]> Fixes: a63ed92 ("net: dsa: seville: fix buffer size of the queue system") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 26ebd6f commit a15a6af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/dsa/ocelot/seville_vsc9953.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,7 @@ static const struct felix_info seville_info_vsc9953 = {
11811181
.stats_layout = vsc9953_stats_layout,
11821182
.num_stats = ARRAY_SIZE(vsc9953_stats_layout),
11831183
.vcap = vsc9953_vcap_props,
1184-
.shared_queue_sz = 2048 * 1024,
1184+
.shared_queue_sz = 256 * 1024,
11851185
.num_mact_rows = 2048,
11861186
.num_ports = 10,
11871187
.mdio_bus_alloc = vsc9953_mdio_bus_alloc,

0 commit comments

Comments
 (0)