]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: hellcreek: Print warning only once
authorKurt Kanzenbach <kurt@linutronix.de>
Tue, 30 Aug 2022 16:34:48 +0000 (18:34 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 1 Sep 2022 02:54:04 +0000 (19:54 -0700)
commit33f4b0f7438148ff0daf80f8e3152e67e4a4403b
treed7935c5de6596b8726e0dc1ce38f2ba772aa77d7
parent8b4392c4929ece4c5657a0fab5fce6ea28d15432
net: dsa: hellcreek: Print warning only once

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>
net/dsa/tag_hellcreek.c