]> git.karo-electronics.de Git - karo-tx-linux.git/commit
IB/ipoib: Return IPoIB devices matching connection parameters
authorGuy Shapiro <guysh@mellanox.com>
Thu, 30 Jul 2015 14:50:16 +0000 (17:50 +0300)
committerDoug Ledford <dledford@redhat.com>
Sun, 30 Aug 2015 19:48:21 +0000 (15:48 -0400)
commitddde896e561a51ae5023e531d66dc6a140a95ec3
tree44a29f1e0d48f41e785e72563f1379ac5d174e90
parent9268f72dcb24348c8b4cf9bcf8afeb24035157a5
IB/ipoib: Return IPoIB devices matching connection parameters

Implement the get_net_device_by_port_pkey_ip callback that returns network
device to ib_core according to connection parameters. Check the ipoib
device and iterate over all child devices to look for a match.

For each IPoIB device we iterate through all upper devices when searching
for a matching IP, in order to support bonding.

Signed-off-by: Guy Shapiro <guysh@mellanox.com>
Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Yotam Kenneth <yotamke@mellanox.com>
Signed-off-by: Shachar Raindel <raindel@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c