]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix for using IPv6 addresses with RDMA:
authorHans Petter Selasky <hselasky@FreeBSD.org>
Thu, 21 Apr 2016 16:33:42 +0000 (16:33 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Thu, 21 Apr 2016 16:33:42 +0000 (16:33 +0000)
commit150c88d4714299fb81ef5f747207db656517d0f3
tree72a57052ef60a9be59f8ccf86717e3261db918c7
parent892bfb4bb24097f9dc1918b723991b9c4a590761
Fix for using IPv6 addresses with RDMA:

IPv6 addresses has a scope ID which sometimes is stored in the
"sin6_scope_id" field of "struct sockaddr_in6" and sometimes as part
of the IPv6 address itself depending on the context. If the scope ID
is not in the expected location, the IPv6 address lookups in the
so-called GID table will fail. Some code factoring has been made to
achieve a clean exit of the "addr_resolve" function via a common
"done" label.

Sponsored by: Mellanox Technologies
Submitted by: Shani Michaeli <shanim@mellanox.com>
MFC after: 1 week
sys/ofed/drivers/infiniband/core/addr.c