diff options
author | Zhu Yanjun <yanjun.zhu@oracle.com> | 2018-08-25 15:19:05 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-27 15:26:01 -0700 |
commit | 53ae914d898e5dd5984d352d5fa0b23410f966a0 (patch) | |
tree | f2d12b347e85beb8831f8e5a56ba4c2bdbdf1389 /tools/nfsd | |
parent | ad8619864f0c9bd89e14d957afa3fd8aaf0720da (diff) | |
download | linux-53ae914d898e5dd5984d352d5fa0b23410f966a0.tar.bz2 |
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>
Diffstat (limited to 'tools/nfsd')
0 files changed, 0 insertions, 0 deletions