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

SVN-Revision: 17469
This commit is contained in:
Felix Fietkau 2009-09-02 15:14:37 +00:00
parent d101694d97
commit d0bdbdc64f
1 changed files with 3 additions and 0 deletions

View File

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