mirror of
https://github.com/a52xq-dev/kernel.git
synced 2026-10-18 21:58:11 +07:00
net: stmmac: gmac4+: Not all Unicast addresses may be available
[ Upstream commit 25683bab09a70542b9f8e3e28f79b3369e56701f ]
Some setups may not have all Unicast addresses filters available. Check
the number of available filters before trying to setup it.
Fixes: 477286b53f ("stmmac: add GMAC4 core support")
Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
46e58ffb2e
commit
77d02cb04b
1 changed files with 1 additions and 1 deletions
|
|
@ -443,7 +443,7 @@ static void dwmac4_set_filter(struct mac_device_info *hw,
|
|||
}
|
||||
|
||||
/* Handle multiple unicast addresses */
|
||||
if (netdev_uc_count(dev) > GMAC_MAX_PERFECT_ADDRESSES) {
|
||||
if (netdev_uc_count(dev) > hw->unicast_filter_entries) {
|
||||
/* Switch to promiscuous mode if more than 128 addrs
|
||||
* are required
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue