]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Mar 2016 19:38:13 +0000 (15:38 -0400)
commitbd91daa9f2c5f7ada311698d087317a3c0229d2b
tree75d44bf320d2552150c3f88dc2464a3e73dd4abd
parent16aa253dfb8d28df1f36b88a902982984d892c39
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: 77f5908104f3 ("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>
net/bridge/br_stp.c