Message ID | 504757AC.90007@freescale.com |
---|---|
State | RFC, archived |
Delegated to: | David Miller |
Headers | show |
From: Claudiu Manoil <claudiu.manoil@freescale.com> Date: Wed, 5 Sep 2012 16:46:20 +0300 > I don't see how the promisc mode would be reset by changing the > mtu. Maybe more details on the issue reproduction would help (or > maybe a usecase involving multicast settings?) Agreed, I can't see how this problem is even possible either. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/ethernet/freescale/gianfar.c b/drivers/net/ethernet/freescale/gianfar.c index 4d5b58c..ede7efe 100644 --- a/drivers/net/ethernet/freescale/gianfar.c +++ b/drivers/net/ethernet/freescale/gianfar.c @@ -353,6 +353,9 @@ static void gfar_init_mac(struct net_device *ndev) /* Configure the coalescing support */ gfar_configure_coalescing(priv, 0xFF, 0xFF); + /* update multicast configs and promiscuity of the device */ + gfar_set_multi(ndev); + if (priv->rx_filer_enable) { rctrl |= RCTRL_FILREN; /* Program the RIR0 reg with the required distribution */ @@ -364,8 +367,6 @@ static void gfar_init_mac(struct net_device *ndev) if (priv->extended_hash) { rctrl |= RCTRL_EXTHASH; - - gfar_clear_exact_match(ndev); rctrl |= RCTRL_EMEN; }