diff options
| author | Vivien Didelot <[email protected]> | 2015-06-23 14:26:04 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-06-24 08:06:34 +0000 |
| commit | 5c8079d049c8452aeacec96a260200d468afc87d (patch) | |
| tree | a344857117540e5df17bb85316f59e38013637c7 /net/switchdev/switchdev.c | |
| parent | net: Cavium: Fix MAC address setting in shutdown state (diff) | |
| download | kernel-5c8079d049c8452aeacec96a260200d468afc87d.tar.gz kernel-5c8079d049c8452aeacec96a260200d468afc87d.zip | |
net: switchdev: ignore unsupported bridge flags
switchdev_port_bridge_getlink() queries SWITCHDEV_ATTR_PORT_BRIDGE_FLAGS
attributes, but a driver doesn't need to implement this in order to get
bridge link information.
So error out only on errors different than -EOPNOTSUPP.
(This is a follow-up patch for 7d4f8d8.)
Fixes: 8793d0a664a8 ("switchdev: add new switchdev_port_bridge_getlink")
Signed-off-by: Vivien Didelot <[email protected]>
Acked-by: Jiri Pirko <[email protected]>
Acked-by: Scott Feldman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
| -rw-r--r-- | net/switchdev/switchdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/switchdev/switchdev.c b/net/switchdev/switchdev.c index f01d34075749..84f77a054025 100644 --- a/net/switchdev/switchdev.c +++ b/net/switchdev/switchdev.c @@ -532,7 +532,7 @@ int switchdev_port_bridge_getlink(struct sk_buff *skb, u32 pid, u32 seq, int err; err = switchdev_port_attr_get(dev, &attr); - if (err) + if (err && err != -EOPNOTSUPP) return err; return ndo_dflt_bridge_getlink(skb, pid, seq, dev, mode, |
