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:
parent
d101694d97
commit
d0bdbdc64f
1 changed files with 3 additions and 0 deletions
|
@ -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++)
|
||||||
|
|
Loading…
Reference in a new issue