From: Felix Fietkau Date: Mon, 28 Apr 2008 21:59:06 +0000 (+0000) Subject: allow bigger packets in the marvell switch (does not fix the mtu problems yet) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c3fcb26d476e927350a733a445eae026906baed4;p=openwrt%2Fstaging%2Frmilecki.git allow bigger packets in the marvell switch (does not fix the mtu problems yet) SVN-Revision: 10970 --- diff --git a/target/linux/generic-2.6/files/drivers/net/phy/mvswitch.c b/target/linux/generic-2.6/files/drivers/net/phy/mvswitch.c index 834d31217d0..cb0d377d271 100644 --- a/target/linux/generic-2.6/files/drivers/net/phy/mvswitch.c +++ b/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;