Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 05908d72 authored by Mans Rullgard's avatar Mans Rullgard Committed by David S. Miller
Browse files

net: ethernet: dwmac-sun8i: show message only when switching to promisc



Printing the info message every time more than the max number of mac
addresses are requested generates unnecessary log spam.  Showing it only
when the hw is not already in promiscous mode is equally informative
without being annoying.

Signed-off-by: default avatarMans Rullgard <mans@mansr.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3d00cf2f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -651,6 +651,7 @@ static void sun8i_dwmac_set_filter(struct mac_device_info *hw,
			}
		}
	} else {
		if (!(readl(ioaddr + EMAC_RX_FRM_FLT) & EMAC_FRM_FLT_RXALL))
			netdev_info(dev, "Too many address, switching to promiscuous\n");
		v = EMAC_FRM_FLT_RXALL;
	}