Skip to content
Commit bbe14f54 authored by Ido Schimmel's avatar Ido Schimmel Committed by David S. Miller
Browse files

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: default avatarSander Eikelenboom <linux@eikelenboom.it>
Tested-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
Fixes: 0bc05d58 ("switchdev: allow caller to explicitly request
attr_set as deferred")
Fixes: 6ac311ae

 ("Adding switchdev ageing notification on port
bridged")
Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d5d30981
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment