Переглянути джерело

allow bigger packets in the marvell switch (does not fix the mtu problems yet)

SVN-Revision: 10970
Felix Fietkau 17 роки тому
батько
коміт
c3fcb26d47

+ 6 - 0
target/linux/generic-2.6/files/drivers/net/phy/mvswitch.c

@@ -288,6 +288,12 @@ mvswitch_config_init(struct phy_device *pdev)
 		);
 	}
 
+	/* init switch control */
+	w16(pdev, MV_SWITCHREG(CTRL),
+		MV_SWITCHCTL_MSIZE |
+		MV_SWITCHCTL_DROP
+	);
+
 	/* hook into the tx function */
 	priv->hardstart = dev->hard_start_xmit;
 	pdev->netif_receive_skb = mvswitch_netif_receive_skb;