diff options
author | Kurt Kanzenbach <[email protected]> | 2022-08-30 18:34:48 +0200 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-08-31 19:54:04 -0700 |
commit | 52267ce25f60f37ae40ccbca0b21328ebae5ae75 (patch) | |
tree | d7935c5de6596b8726e0dc1ce38f2ba772aa77d7 | |
parent | eb55dc09b5dd040232d5de32812cc83001a23da6 (diff) |
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 <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Reviewed-by: Vladimir Oltean <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
-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; } |