rtnl: expose physical switch id for particular device
authorJiri Pirko <jiri@resnulli.us>
Fri, 28 Nov 2014 13:34:18 +0000 (14:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Dec 2014 04:01:21 +0000 (20:01 -0800)
commit82f2841291cfaf4d225aa1766424280254d3e3b2
tree6bdcee06f5a927defb97d4c58f482e857717f730
parent007f790c8276271de26416f90d55561bcc96588a
rtnl: expose physical switch id for particular device

The netdevice represents a port in a switch, it will expose
IFLA_PHYS_SWITCH_ID value via rtnl. Two netdevices with the same value
belong to one physical switch.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Reviewed-by: Thomas Graf <tgraf@suug.ch>
Acked-by: John Fastabend <john.r.fastabend@intel.com>
Acked-by: Andy Gospodarek <gospo@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/if_link.h
net/core/rtnetlink.c