stmmac: extend mac addr reg and fix perfect filering
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Sun, 13 May 2012 22:18:41 +0000 (22:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 May 2012 22:53:19 +0000 (18:53 -0400)
commitcffb13f4d6fb5976f907c37e7fc7f6e6acb10d5f
tree2778dd1ed389a91e78af991cad051ff5d64821e6
parent20fb18dae04194486c61666dc1d9317f6f6dbf75
stmmac: extend mac addr reg and fix perfect filering

This patch is to extend the number of MAC address registers
for 16 to 32. In fact, other new 16 registers are available in new
chips and this can help on perfect filter mode for unicast.

This patch also fixes the perfect filtering mode by setting the
bit 31 in the MAC address registers.

v2: fixed Coding Style.

Signed-off-by: Gianni Antoniazzi <gianni.antoniazzi-ext@st.com>
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/common.h
drivers/net/ethernet/stmicro/stmmac/dwmac1000.h
drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c
drivers/net/ethernet/stmicro/stmmac/dwmac100_core.c
drivers/net/ethernet/stmicro/stmmac/dwmac_lib.c
drivers/net/ethernet/stmicro/stmmac/stmmac.h
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c