IB/ipoib: add get_link_ksettings in ethtool
authorZhu Yanjun <yanjun.zhu@oracle.com>
Thu, 4 May 2017 05:24:51 +0000 (01:24 -0400)
committerDoug Ledford <dledford@redhat.com>
Thu, 4 May 2017 23:31:46 +0000 (19:31 -0400)
commit0d7e2d2166f6b0b7d1959ca858052a15feb574cc
tree65bc75a84e0c268467bd06545bb297f8ccc6d042
parent24b43c99647bf9be4995e6a6c9c3a923c147770a
IB/ipoib: add get_link_ksettings in ethtool

In order to let the bonding driver report the correct speed
of the underlaying interfaces, when they are IPoIB, the ethtool
function get_link_ksettings() in the IPoIB driver is implemented.

Cc: Joe Jin <joe.jin@oracle.com>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Suggested-by: HÃ¥kon Bugge <Haakon.Bugge@oracle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/ipoib/ipoib_ethtool.c
include/uapi/linux/ethtool.h