mirror of https://github.com/hak5/openwrt.git
allow bigger packets in the marvell switch (does not fix the mtu problems yet)
SVN-Revision: 10970lede-17.01
parent
8222e21432
commit
c3fcb26d47
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue