stmmac: correct mc_filter local variable in set_filter and set_mac_addr call
authorVince Bridgers <vbridger@opensource.altera.com>
Thu, 9 Oct 2014 15:10:36 +0000 (10:10 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Oct 2014 18:48:02 +0000 (14:48 -0400)
commit3dab99e0b37e16525949757f46e33fb9612c73ec
tree369edfe005f7ac2da8888d3a600f59a206e20582
parent3b3d136cf7e5e8e5ec80850e25bfea3e70d1bbe8
stmmac: correct mc_filter local variable in set_filter and set_mac_addr call

Testing revealed that the local variable mc_filter was dimensioned
incorrectly for all possible configurations and get_mac_addr should
have been set_mac_addr (a typo). Make sure mc_filter is dimensioned
to 8 32-bit unsigned longs - the largest size of the Synopsys
multicast filter register set.

Signed-off-by: Vince Bridgers <vbridger@opensource.altera.com>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c