switchdev: bridge: Check return code is not EOPNOTSUPP
authorIdo Schimmel <idosch@mellanox.com>
Fri, 13 Nov 2015 11:06:12 +0000 (13:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Nov 2015 19:56:03 +0000 (14:56 -0500)
commitbbe14f54297467ddb23b7d1db564a2468c6ae151
treeb18422fab1ab8d41e3d7325d338d55b1a98be03c
parentd5d309815bc377ec8235df380fda6d1befbc57cc
switchdev: bridge: Check return code is not EOPNOTSUPP

When NET_SWITCHDEV=n, switchdev_port_attr_set simply returns EOPNOTSUPP.
In this case we should not emit errors and warnings to the kernel log.

Reported-by: Sander Eikelenboom <linux@eikelenboom.it>
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
Fixes: 0bc05d585d38 ("switchdev: allow caller to explicitly request
attr_set as deferred")
Fixes: 6ac311ae8bfb ("Adding switchdev ageing notification on port
bridged")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_stp.c
net/bridge/br_stp_if.c