]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4ed69720168ee80f7e5aa433d79e25883b163413
tree6126e2ac9400db959b1a9c075092565401d91db5
parent18b22a656337ee55c422d72a83b01f0b8de4c0a5
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