bridge: Allow set bridge ageing time when switchdev disabled
authorHaishuang Yan <yanhaishuang@cmss.chinamobile.com>
Tue, 29 Mar 2016 10:48:08 +0000 (18:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2016 06:42:05 +0000 (15:42 +0900)
commitdf371b19630cf045e00f1b09a721bb7103266796
tree85bdac333fa073b9250444dfff9db62b94e12811
parent26dd42ebff94ff481af56704cd1b4dd32ca8579f
bridge: Allow set bridge ageing time when switchdev disabled

[ Upstream commit 5e263f712691615fb802f06c98d7638c378f5d11 ]

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: c62987bbd8a1 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/bridge/br_stp.c