]> www.infradead.org Git - users/jedix/linux-maple.git/commit
stmmac: fix valid numbers of unicast filter entries
authorJongsung Kim <neidhard.kim@lge.com>
Thu, 13 Sep 2018 09:32:21 +0000 (18:32 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Oct 2018 07:16:22 +0000 (09:16 +0200)
commit3265bda5bd9f1891f29c741a5fae3db73a882fc7
treef2ff2e051c87da01d453c8bd6f293e711a0ba9bc
parent1826e55625164ab51a21e46eacac18b43899b65f
stmmac: fix valid numbers of unicast filter entries

[ Upstream commit edf2ef7242805e53ec2e0841db26e06d8bc7da70 ]

Synopsys DWC Ethernet MAC can be configured to have 1..32, 64, or
128 unicast filter entries. (Table 7-8 MAC Address Registers from
databook) Fix dwmac1000_validate_ucast_entries() to accept values
between 1 and 32 in addition.

Signed-off-by: Jongsung Kim <neidhard.kim@lge.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c