]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Set FIFO sizes for ipq806x
authorJonathan McDowell <noodles@earth.li>
Sat, 13 Mar 2021 13:18:26 +0000 (13:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Mar 2021 02:08:05 +0000 (18:08 -0800)
commit08e070a227ef3a671bf7945d08e5116de9c19519
treea5873730785f970c8c41fd575d7ff80fe14f2898
parentc1f0b06db1fab4e63e53ff9656044fee892873b9
net: stmmac: Set FIFO sizes for ipq806x

Commit cd0801e3d55f ("net: stmmac: Do not accept invalid MTU values")
started using the TX FIFO size to verify what counts as a valid MTU
request for the stmmac driver.  This is unset for the ipq806x variant.
Looking at older patches for this it seems the RX + TXs buffers can be
up to 8k, so set appropriately.

(I sent this as an RFC patch in June last year, but received no replies.
I've been running with this on my hardware (a MikroTik RB3011) since
then with larger MTUs to support both the internal qca8k switch and
VLANs with no problems. Without the patch it's impossible to set the
larger MTU required to support this.)

Signed-off-by: Jonathan McDowell <noodles@earth.li>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c