allow bigger packets in the marvell switch (does not fix the mtu problems yet)
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 28 Apr 2008 21:59:06 +0000 (21:59 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 28 Apr 2008 21:59:06 +0000 (21:59 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10970 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index 834d31217d0533dabd5f662aab197cf695b42d69..cb0d377d2712db44e48644b8efbfbd2b47ebff75 100644 (file)
@@ -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;
        /* hook into the tx function */
        priv->hardstart = dev->hard_start_xmit;
        pdev->netif_receive_skb = mvswitch_netif_receive_skb;