diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-09-02 15:14:37 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-09-02 15:14:37 +0000 |
commit | d0bdbdc64f9b75f533da60e664b1855c6b606cb7 (patch) | |
tree | 3c3ab0364130aae9e63a00b03cb9067b3aa3404e /target/linux | |
parent | d101694d97ecb47b75992af2f88b21ae9d34e405 (diff) | |
download | mtk-20170518-d0bdbdc64f9b75f533da60e664b1855c6b606cb7.zip mtk-20170518-d0bdbdc64f9b75f533da60e664b1855c6b606cb7.tar.gz mtk-20170518-d0bdbdc64f9b75f533da60e664b1855c6b606cb7.tar.bz2 |
mvswitch: set the netdevice into promiscuous mode when header mode is enabled, otherwise packets may get dropped
SVN-Revision: 17469
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/generic-2.6/files-2.6.30/drivers/net/phy/mvswitch.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/generic-2.6/files-2.6.30/drivers/net/phy/mvswitch.c b/target/linux/generic-2.6/files-2.6.30/drivers/net/phy/mvswitch.c index 7aed70d..77899e0 100644 --- a/target/linux/generic-2.6/files-2.6.30/drivers/net/phy/mvswitch.c +++ b/target/linux/generic-2.6/files-2.6.30/drivers/net/phy/mvswitch.c @@ -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++) |