stmmac: re-add IFF_UNICAST_FLT for dwmac1000
authorMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 3 Apr 2012 22:13:01 +0000 (22:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Apr 2012 22:38:31 +0000 (18:38 -0400)
In commit (bfab27a stmmac: add the experimental PCI support) the
IFF_UNICAST_FLT flag has been removed from the stmmac_mac_device_setup()
function. This patch re-adds the flag.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

index e85ffbd548302994514ec1e46e8faa48be9cd78a..48d56da62f08e94a6b4b26bf594aa8ae022a36bc 100644 (file)
@@ -1737,10 +1737,12 @@ static int stmmac_hw_init(struct stmmac_priv *priv)
        struct mac_device_info *mac;
 
        /* Identify the MAC HW device */
-       if (priv->plat->has_gmac)
+       if (priv->plat->has_gmac) {
+               priv->dev->priv_flags |= IFF_UNICAST_FLT;
                mac = dwmac1000_setup(priv->ioaddr);
-       else
+       } else {
                mac = dwmac100_setup(priv->ioaddr);
+       }
        if (!mac)
                return -ENOMEM;