Skip to content

Commit 54ddbdb

Browse files
ffainellikuba-moo
authored andcommitted
net: systemport: set dev->max_mtu to UMAC_MAX_MTU_SIZE
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: bfcb813 ("net: dsa: configure the MTU for switch ports") Signed-off-by: Florian Fainelli <[email protected]> Reviewed-by: Vladimir Oltean <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent fec6079 commit 54ddbdb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/net/ethernet/broadcom/bcmsysport.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2577,6 +2577,7 @@ static int bcm_sysport_probe(struct platform_device *pdev)
25772577
NETIF_F_HW_VLAN_CTAG_TX;
25782578
dev->hw_features |= dev->features;
25792579
dev->vlan_features |= dev->features;
2580+
dev->max_mtu = UMAC_MAX_MTU_SIZE;
25802581

25812582
/* Request the WOL interrupt and advertise suspend if available */
25822583
priv->wol_irq_disabled = 1;

0 commit comments

Comments
 (0)