]> git.baikalelectronics.ru Git - kernel.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)
commit644e2a571b91453bc53e74fe8bb82d6b0e983919
tree44a29f1e0d48f41e785e72563f1379ac5d174e90
parentdc8f0c2b7401ba882e0f59d51951c908a4ce7e2e
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