IB/ipoib: Add more rtnl_link_ops callbacks
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 27 Sep 2012 12:06:02 +0000 (12:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Oct 2012 21:12:22 +0000 (17:12 -0400)
commit862096a8bbf8f992f6d0a1a8786ffd3fc7437e48
tree6126e2ac9400db959b1a9c075092565401d91db5
parentd7559982701ac500662b2e8e150ff34f7faf0281
IB/ipoib: Add more rtnl_link_ops callbacks

Add the rtnl_link_ops changelink and fill_info callbacks, through
which the admin can now set/get the driver mode, etc policies.
Maintain the proprietary sysfs entries only for legacy childs.

For child devices, set dev->iflink to point to the parent
device ifindex, such that user space tools can now correctly
show the uplink relation as done for vlan, macvlan, etc
devices. Pointed out by Patrick McHardy <kaber@trash.net>

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/infiniband/ulp/ipoib/ipoib.h
drivers/infiniband/ulp/ipoib/ipoib_cm.c
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/infiniband/ulp/ipoib/ipoib_netlink.c
drivers/infiniband/ulp/ipoib/ipoib_vlan.c
include/linux/if_link.h