Просмотр исходного кода

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

SVN-Revision: 17469
Felix Fietkau 16 лет назад
Родитель
Сommit
d0bdbdc64f
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      target/linux/generic-2.6/files-2.6.30/drivers/net/phy/mvswitch.c

+ 3 - 0
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++)