Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Ido Schimmel and committed by
David S. Miller
5c326ab4 2a313cdf

-2
-2
net/switchdev/switchdev.c
··· 1292 1292 struct switchdev_attr a_attr = { 1293 1293 .orig_dev = a, 1294 1294 .id = SWITCHDEV_ATTR_ID_PORT_PARENT_ID, 1295 - .flags = SWITCHDEV_F_NO_RECURSE, 1296 1295 }; 1297 1296 struct switchdev_attr b_attr = { 1298 1297 .orig_dev = b, 1299 1298 .id = SWITCHDEV_ATTR_ID_PORT_PARENT_ID, 1300 - .flags = SWITCHDEV_F_NO_RECURSE, 1301 1299 }; 1302 1300 1303 1301 if (switchdev_port_attr_get(a, &a_attr) ||