bonding: export slave's partner_oper_port_state via sysfs and netlink
authorNikolay Aleksandrov <razor@blackwall.org>
Sun, 14 Jun 2015 13:36:35 +0000 (16:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Jun 2015 23:40:24 +0000 (16:40 -0700)
commit46ea297ed67cdeeb0142244873458b911037d0ba
treed7af7c0118003b89814e0320fead24fab26a85e3
parent254cb6dbfd8894743fbf814ec856ccd0874af691
bonding: export slave's partner_oper_port_state via sysfs and netlink

Export the partner_oper_port_state of each port via sysfs and netlink.
In 802.3ad mode it is valuable for the user to be able to check the
partner_oper state, it is already exported via bond's proc entry.

Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: Andy Gospodarek <gospo@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_netlink.c
drivers/net/bonding/bond_sysfs_slave.c
include/uapi/linux/if_link.h