Skip to content

Commit 52267ce

Browse files
shifty91kuba-moo
authored andcommitted
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]>
1 parent eb55dc0 commit 52267ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/dsa/tag_hellcreek.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static struct sk_buff *hellcreek_rcv(struct sk_buff *skb,
4545

4646
skb->dev = dsa_master_find_slave(dev, 0, port);
4747
if (!skb->dev) {
48-
netdev_warn(dev, "Failed to get source port: %d\n", port);
48+
netdev_warn_once(dev, "Failed to get source port: %d\n", port);
4949
return NULL;
5050
}
5151

0 commit comments

Comments
 (0)