summaryrefslogtreecommitdiffstats
path: root/include/net/switchdev.h
diff options
context:
space:
mode:
authorScott Feldman <sfeldma@gmail.com>2015-10-08 19:23:18 -0700
committerDavid S. Miller <davem@davemloft.net>2015-10-12 05:20:20 -0700
commit464314ea6c119ebc22ee78453e63814453c31611 (patch)
tree1b9a19c0d09caebaaf372e194ab36be84f10a84d /include/net/switchdev.h
parentf55ac58ae64cbb0315382e738681fe31837dcac0 (diff)
downloadlinux-stable-464314ea6c119ebc22ee78453e63814453c31611.tar.gz
linux-stable-464314ea6c119ebc22ee78453e63814453c31611.tar.bz2
linux-stable-464314ea6c119ebc22ee78453e63814453c31611.zip
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>
Diffstat (limited to 'include/net/switchdev.h')
-rw-r--r--include/net/switchdev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/switchdev.h b/include/net/switchdev.h
index 61f129bd74b2..1ce70830357d 100644
--- a/include/net/switchdev.h
+++ b/include/net/switchdev.h
@@ -16,6 +16,7 @@
#include <linux/list.h>
#define SWITCHDEV_F_NO_RECURSE BIT(0)
+#define SWITCHDEV_F_SKIP_EOPNOTSUPP BIT(1)
struct switchdev_trans_item {
struct list_head list;