net: stmmac: Support devicetree configs for mcast and ucast filter entries
authorVince Bridgers <vbridgers2013@gmail.com>
Thu, 31 Jul 2014 20:49:17 +0000 (15:49 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Jul 2014 21:13:29 +0000 (14:13 -0700)
commit3b57de958e2aa39abe020eb31bf19000d5899389
tree518b93e036b1a4d6c345f3d72d466ffd5b92771d
parentea6856e35240c5accf0936de920f2d8c9afee444
net: stmmac: Support devicetree configs for mcast and ucast filter entries

This patch adds and modifies code to support multiple Multicast and Unicast
Synopsys MAC filter configurations. The default configuration is defined to
support legacy driver behavior, which is 64 Multicast bins. The Unicast
filter code previously assumed all controllers support 32 or 16 Unicast
addresses based on controller version number, but this has been corrected
to support a default of 1 Unicast address. The filter configuration may
be specified through the devicetree using a Synopsys specific device tree
entry. This information was verified with Synopsys through
Synopsys Support Case #8000684337 and shared with the maintainer.

Signed-off-by: Vince Bridgers <vbridgers2013@gmail.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/stmmac_main.c
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
include/linux/stmmac.h