]> git.ipfire.org Git - thirdparty/openwrt.git/blob
56d882c9f9a3e61f89dbdc2d30cfb81c660a22f1
[thirdparty/openwrt.git] /
1 From 3b0a95ed7782dce88a5ef4860dcaab962cec9527 Mon Sep 17 00:00:00 2001
2 From: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
3 Date: Tue, 11 Jun 2024 15:54:34 +0200
4 Subject: net: dsa: lantiq_gswip: Improve error message in gswip_port_fdb()
5
6 Print that no FID is found for bridge %s instead of the incorrect
7 message that the port is not part of a bridge.
8
9 Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
10 Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
11 Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
12 Signed-off-by: Martin Schiller <ms@dev.tdt.de>
13 Link: https://lore.kernel.org/r/20240611135434.3180973-13-ms@dev.tdt.de
14 Signed-off-by: Jakub Kicinski <kuba@kernel.org>
15 ---
16 drivers/net/dsa/lantiq_gswip.c | 3 ++-
17 1 file changed, 2 insertions(+), 1 deletion(-)
18
19 --- a/drivers/net/dsa/lantiq_gswip.c
20 +++ b/drivers/net/dsa/lantiq_gswip.c
21 @@ -1363,7 +1363,8 @@ static int gswip_port_fdb(struct dsa_swi
22 }
23
24 if (fid == -1) {
25 - dev_err(priv->dev, "Port not part of a bridge\n");
26 + dev_err(priv->dev, "no FID found for bridge %s\n",
27 + bridge->name);
28 return -EINVAL;
29 }
30