1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-01 00:49:42 +02:00

mvswitch: set the netdevice into promiscuous mode when header mode is enabled, otherwise packets may get dropped

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17469 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2009-09-02 15:14:37 +00:00
parent e31fe7691a
commit f8e09ed6d7

View File

@ -248,6 +248,9 @@ mvswitch_config_init(struct phy_device *pdev)
pdev->advertising = ADVERTISED_100baseT_Full; pdev->advertising = ADVERTISED_100baseT_Full;
dev->phy_ptr = priv; dev->phy_ptr = priv;
dev->irq = PHY_POLL; dev->irq = PHY_POLL;
#ifdef HEADER_MODE
dev->flags |= IFF_PROMISC;
#endif
/* initialize default vlans */ /* initialize default vlans */
for (i = 0; i < MV_PORTS; i++) for (i = 0; i < MV_PORTS; i++)