switchdev: skip over ports returning -EOPNOTSUPP when recursing ports
authorScott Feldman <sfeldma@gmail.com>
Fri, 9 Oct 2015 02:23:18 +0000 (19:23 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Oct 2015 12:20:20 +0000 (05:20 -0700)
commit464314ea6c119ebc22ee78453e63814453c31611
tree1b9a19c0d09caebaaf372e194ab36be84f10a84d
parentf55ac58ae64cbb0315382e738681fe31837dcac0
switchdev: skip over ports returning -EOPNOTSUPP when recursing ports

This allows us to recurse over all the ports, skipping over unsupporting
ports.  Without the change, the recursion would stop at first unsupported
port.

Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/switchdev.h
net/switchdev/switchdev.c