Skip to content

Commit

Permalink
net: dsa: lantiq_gswip: Improve error message in gswip_port_fdb()
Browse files Browse the repository at this point in the history
Print that no FID is found for bridge %s instead of the incorrect
message that the port is not part of a bridge.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Link: https://lore.kernel.org/r/20240611135434.3180973-13-ms@dev.tdt.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Martin Blumenstingl authored and Jakub Kicinski committed Jun 14, 2024
1 parent e19fbe3 commit 3b0a95e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/dsa/lantiq_gswip.c
Original file line number Diff line number Diff line change
Expand Up @@ -1370,7 +1370,8 @@ static int gswip_port_fdb(struct dsa_switch *ds, int port,
}

if (fid == -1) {
dev_err(priv->dev, "Port not part of a bridge\n");
dev_err(priv->dev, "no FID found for bridge %s\n",
bridge->name);
return -EINVAL;
}

Expand Down

0 comments on commit 3b0a95e

Please sign in to comment.