]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit05ae43db944a3ec406ffab56f2fb3bfd89b561b6
tree1b9a19c0d09caebaaf372e194ab36be84f10a84d
parentdbfa2d3c4523ca31e6166102a7de3b7896569911
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