diff options
author | Jiri Pirko <jiri@mellanox.com> | 2015-11-03 17:40:53 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-03 13:39:21 -0500 |
commit | 0c63d80c3fac4e6eb0f01dff756e47bc7cd50092 (patch) | |
tree | d9fc65ba40a8d6e3c444a29dab3ef37ad6c99c4a /drivers | |
parent | 2a4f4176217d3a29176dff83f2647c48ebaa30a4 (diff) |
switchdev: respect SKIP_EOPNOTSUPP flag in case there is no recursion
Caller passing down the SKIP_EOPNOTSUPP switchdev flag expects that
-EOPNOTSUPP cannot be returned. But in case of direct op call without
recurtion, this may happen. So fix this by checking it always on the
end of __switchdev_port_attr_set function.
Fixes: 464314ea6c11 ("switchdev: skip over ports returning -EOPNOTSUPP when recursing ports")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions