]> git.baikalelectronics.ru Git - kernel.git/commit
switchdev: convert parent_id_get to switchdev attr get
authorScott Feldman <sfeldma@gmail.com>
Sun, 10 May 2015 16:47:49 +0000 (09:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 May 2015 22:43:53 +0000 (18:43 -0400)
commitb9b09140d9b1c0cbc2c9104cb755604f86ef806f
tree0072db71330af1215e78c1def9033d62156a4183
parent700d1502a8a3ef9388e2ddb1f9e10b7defeac9b4
switchdev: convert parent_id_get to switchdev attr get

Switch ID is just a gettable port attribute.  Convert switchdev op
switchdev_parent_id_get to a switchdev attr.

Note: for sysfs and netlink interfaces, SWITCHDEV_ATTR_PORT_PARENT_ID is
called with SWITCHDEV_F_NO_RECUSE to limit switch ID user-visiblity to only
port netdevs.  So when a port is stacked under bond/bridge, the user can
only query switch id via the switch ports, but not via the upper devices

Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rocker/rocker.c
include/net/switchdev.h
net/core/net-sysfs.c
net/core/rtnetlink.c
net/dsa/slave.c
net/switchdev/switchdev.c