Zhu Yanjun 53ae914d89 net/rds: Use rdma_read_gids to get connection SGID/DGID in IPv6
In IPv4, the newly introduced rdma_read_gids is used to read the SGID/DGID
for the connection which returns GID correctly for RoCE transport as well.

In IPv6, rdma_read_gids is also used. The following are why rdma_read_gids
is introduced.

rdma_addr_get_dgid() for RoCE for client side connections returns MAC
address, instead of DGID.
rdma_addr_get_sgid() for RoCE doesn't return correct SGID for IPv6 and
when more than one IP address is assigned to the netdevice.

So the transport agnostic rdma_read_gids() API is provided by rdma_cm
module.

Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-08-27 15:26:01 -07:00
..
2018-08-01 09:32:35 -07:00
2018-08-01 09:32:35 -07:00
2018-08-01 09:32:35 -07:00
2018-08-01 09:32:35 -07:00
2018-06-12 16:19:22 -07:00
2018-08-14 10:06:37 -07:00
2016-12-26 21:35:39 -05:00
2018-08-01 09:32:35 -07:00
2018-07-23 21:17:44 -07:00
2018-08-01 09:32:35 -07:00
2013-03-08 00:35:44 -05:00
2016-06-18 21:34:09 -07:00
2018-07-23 21:17:44 -07:00
2018-08-01 09:32:35 -07:00
2011-07-01 16:16:19 -07:00
2018-07-23 21:17:44 -07:00