]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: systemport: set dev->max_mtu to UMAC_MAX_MTU_SIZE
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 18 Dec 2020 17:38:43 +0000 (09:38 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jan 2021 19:16:11 +0000 (20:16 +0100)
commitaf99cae96fdc550404cb428d2d8e6f2082e1670a
tree0d66bc99dba3441642321ab3a2b086d3c6b923aa
parent8dd98d5d2ba455b57d79c632cec05d8823e6a5fb
net: systemport: set dev->max_mtu to UMAC_MAX_MTU_SIZE

[ Upstream commit 54ddbdb024882e226055cc4c3c246592ddde2ee5 ]

The driver is already allocating receive buffers of 2KiB and the
Ethernet MAC is configured to accept frames up to UMAC_MAX_MTU_SIZE.

Fixes: bfcb813203e6 ("net: dsa: configure the MTU for switch ports")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://lore.kernel.org/r/20201218173843.141046-1-f.fainelli@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/bcmsysport.c