Re: [PATCH v4] net: dsa: seville: the packet buffer is 2 megabits, not megabytes

2020-10-19 Thread Jakub Kicinski
On Mon, 19 Oct 2020 08:06:25 +0300 Maxim Kochetkov wrote: > 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

[PATCH v4] net: dsa: seville: the packet buffer is 2 megabits, not megabytes

2020-10-18 Thread Maxim Kochetkov
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 buf