]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: dwmac-sun8i: show message only when switching to promisc
authorMans Rullgard <mans@mansr.com>
Fri, 18 Oct 2019 16:56:58 +0000 (17:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Oct 2019 19:18:10 +0000 (12:18 -0700)
commit3315550debad65394504d9fe5e7f5425c1d9b9ed
tree1843f841bacab8758b1d3bf836810cf53521609b
parentb2e1e3d03573faa7c992044d0a220f3d6ca43740
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: Mans Rullgard <mans@mansr.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c