bcm47xx: revert bgmac back to the old limited max frame size
authorRafał Miłecki <rafal@milecki.pl>
Tue, 7 Feb 2023 17:09:40 +0000 (18:09 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Tue, 7 Feb 2023 17:29:34 +0000 (18:29 +0100)
commit4970dd027bced78f8a72aa2baed22c962d3b587b
tree5f2d849c9e7dea532bafc340fc6da149f18e51e9
parent047fb7c76d1827e22bef96031192159e738208fb
bcm47xx: revert bgmac back to the old limited max frame size

Bumping max frame size has significantly affected network performance
and memory usage. It was done by upstream commit that first appeared in
the 5.7 release.

Allocating 512 (BGMAC_RX_RING_SLOTS) buffers, 10 k each, is clearly a
bad idea on 32 MiB devices. This commit fixes support for Linksys E1000
V2.1 which gives up after allocating ~346 such buffers running 5.15
kernel.

Ref: 230c9da963aa ("bcm53xx: revert bgmac back to the old limited max frame size")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
target/linux/bcm47xx/patches-5.10/701-net-bgmac-connect-to-PHY-even-if-it-is-BGMAC_PHY_NOR.patch [new file with mode: 0644]
target/linux/bcm47xx/patches-5.15/701-net-bgmac-connect-to-PHY-even-if-it-is-BGMAC_PHY_NOR.patch [new file with mode: 0644]