mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-22 09:22:37 +00:00
bridge: Allow set bridge ageing time when switchdev disabled
When NET_SWITCHDEV=n, switchdev_port_attr_set will return -EOPNOTSUPP,
we should ignore this error code and continue to set the ageing time.
Fixes: c62987bbd8
("bridge: push bridge setting ageing_time down to switchdev")
Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Acked-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e84810c7b8
commit
5e263f7126
@ -582,7 +582,7 @@ int br_set_ageing_time(struct net_bridge *br, u32 ageing_time)
|
||||
int err;
|
||||
|
||||
err = switchdev_port_attr_set(br->dev, &attr);
|
||||
if (err)
|
||||
if (err && err != -EOPNOTSUPP)
|
||||
return err;
|
||||
|
||||
br->ageing_time = t;
|
||||
|
Loading…
Reference in New Issue
Block a user