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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10970 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Felix Fietkau 2008-04-28 21:59:06 +00:00
parent 5a90720f1f
commit 4bfaf896cb
1 changed files with 6 additions and 0 deletions

View 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 */ /* hook into the tx function */
priv->hardstart = dev->hard_start_xmit; priv->hardstart = dev->hard_start_xmit;
pdev->netif_receive_skb = mvswitch_netif_receive_skb; pdev->netif_receive_skb = mvswitch_netif_receive_skb;