diff options
author | Kurt Kanzenbach <kurt@linutronix.de> | 2022-08-30 18:34:48 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-09-20 12:39:45 +0200 |
commit | 55032fb14d4a3db6ba6e4a0725c985becc2a5456 (patch) | |
tree | b31d969913e8ec2d49ea3f9049394605854266a1 /net/dsa | |
parent | 985a5d3d491d558f785b77cc5b86837bfa408587 (diff) | |
download | linux-stable-55032fb14d4a3db6ba6e4a0725c985becc2a5456.tar.gz linux-stable-55032fb14d4a3db6ba6e4a0725c985becc2a5456.tar.bz2 linux-stable-55032fb14d4a3db6ba6e4a0725c985becc2a5456.zip |
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>
Diffstat (limited to 'net/dsa')
-rw-r--r-- | net/dsa/tag_hellcreek.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/tag_hellcreek.c b/net/dsa/tag_hellcreek.c index eb204ad36eee..846588c0070a 100644 --- a/net/dsa/tag_hellcreek.c +++ b/net/dsa/tag_hellcreek.c @@ -45,7 +45,7 @@ static struct sk_buff *hellcreek_rcv(struct sk_buff *skb, skb->dev = dsa_master_find_slave(dev, 0, port); if (!skb->dev) { - netdev_warn(dev, "Failed to get source port: %d\n", port); + netdev_warn_once(dev, "Failed to get source port: %d\n", port); return NULL; } |