]> git.itanic.dy.fi Git - linux-stable/commit
net: dsa: hellcreek: Print warning only once
authorKurt Kanzenbach <kurt@linutronix.de>
Tue, 30 Aug 2022 16:34:48 +0000 (18:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2022 10:43:48 +0000 (12:43 +0200)
commit3d513ebf8c3bc8c6a5e4b4f4d8986bebdbff8475
treece62dcd36bcbeba4957ed85b56f3950c9114670b
parentc624b5659a28b8ccbb0a7f4061984bc276b4c542
net: dsa: hellcreek: Print warning only once

[ Upstream commit 52267ce25f60f37ae40ccbca0b21328ebae5ae75 ]

In case the source port cannot be decoded, print the warning only once. This
still brings attention to the user and does not spam the logs at the same time.

Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://lore.kernel.org/r/20220830163448.8921-1-kurt@linutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/dsa/tag_hellcreek.c