aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic-2.6/files-2.6.30
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-09-02 15:14:37 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-09-02 15:14:37 +0000
commit9b93d8e311e6b72a88607aa8a51ea8c0219b6f6a (patch)
treefa40b9fee3c82aab441913f22af170db1159948c /target/linux/generic-2.6/files-2.6.30
parent6dc6202a6fddb9e08ac390932911355cd875d969 (diff)
downloadupstream-9b93d8e311e6b72a88607aa8a51ea8c0219b6f6a.tar.gz
upstream-9b93d8e311e6b72a88607aa8a51ea8c0219b6f6a.tar.bz2
upstream-9b93d8e311e6b72a88607aa8a51ea8c0219b6f6a.zip
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
Diffstat (limited to 'target/linux/generic-2.6/files-2.6.30')
-rw-r--r--target/linux/generic-2.6/files-2.6.30/drivers/net/phy/mvswitch.c3
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 7aed70d47f..77899e0827 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++)