From: Felix Fietkau Date: Wed, 2 Sep 2009 15:14:37 +0000 (+0000) Subject: mvswitch: set the netdevice into promiscuous mode when header mode is enabled, otherw... X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d0bdbdc64f9b75f533da60e664b1855c6b606cb7;p=librecmc%2Flibrecmc.git mvswitch: set the netdevice into promiscuous mode when header mode is enabled, otherwise packets may get dropped SVN-Revision: 17469 --- 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++)