netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] stmmac: re-add IFF_UNICAST_FLT for dwmac1000
@ 2012-04-04  8:13 Marc Kleine-Budde
  2012-04-04 22:38 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Marc Kleine-Budde @ 2012-04-04  8:13 UTC (permalink / raw)
  To: peppe.cavallaro; +Cc: rayagond, netdev, eric.dumazet, Marc Kleine-Budde

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>
---

Changes v1->v2: Fix codingstyle (thanks Eric)

 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index e85ffbd..48d56da 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -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;
 
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] stmmac: re-add IFF_UNICAST_FLT for dwmac1000
  2012-04-04  8:13 [PATCH v2] stmmac: re-add IFF_UNICAST_FLT for dwmac1000 Marc Kleine-Budde
@ 2012-04-04 22:38 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2012-04-04 22:38 UTC (permalink / raw)
  To: mkl; +Cc: peppe.cavallaro, rayagond, netdev, eric.dumazet

From: Marc Kleine-Budde <mkl@pengutronix.de>
Date: Wed,  4 Apr 2012 10:13:01 +0200

> 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>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-04 22:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-04  8:13 [PATCH v2] stmmac: re-add IFF_UNICAST_FLT for dwmac1000 Marc Kleine-Budde
2012-04-04 22:38 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).