aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorIdo Schimmel <[email protected]>2016-08-25 16:42:36 +0000
committerDavid S. Miller <[email protected]>2016-08-26 20:13:36 +0000
commit5c326ab49e5ee014ba5314c076fe9b93fd8b0406 (patch)
tree3962549215a66de837b0e1e8d0ec519b3e7f262a /net/switchdev/switchdev.c
parentdevlink: remove unused priv_size (diff)
downloadkernel-5c326ab49e5ee014ba5314c076fe9b93fd8b0406.tar.gz
kernel-5c326ab49e5ee014ba5314c076fe9b93fd8b0406.zip
switchdev: Support parent ID comparison for stacked devices
switchdev_port_same_parent_id() currently expects port netdevs, but we need it to support stacked devices in the next patch, so drop the NO_RECURSE flag. Signed-off-by: Ido Schimmel <[email protected]> Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
-rw-r--r--net/switchdev/switchdev.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/switchdev/switchdev.c b/net/switchdev/switchdev.c
index 9e9012956993..2c683f24d557 100644
--- a/net/switchdev/switchdev.c
+++ b/net/switchdev/switchdev.c
@@ -1292,12 +1292,10 @@ bool switchdev_port_same_parent_id(struct net_device *a,
struct switchdev_attr a_attr = {
.orig_dev = a,
.id = SWITCHDEV_ATTR_ID_PORT_PARENT_ID,
- .flags = SWITCHDEV_F_NO_RECURSE,
};
struct switchdev_attr b_attr = {
.orig_dev = b,
.id = SWITCHDEV_ATTR_ID_PORT_PARENT_ID,
- .flags = SWITCHDEV_F_NO_RECURSE,
};
if (switchdev_port_attr_get(a, &a_attr) ||