]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r325614:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 17 Nov 2017 15:43:29 +0000 (15:43 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 17 Nov 2017 15:43:29 +0000 (15:43 +0000)
commit978929cb19d3af1ba6d082d96825b58b52f0d244
treec259e68299b77037dff67b9ce4d0bf0dc85eefe5
parentc7254ffe86cceac01f00de948748392123d8c17b
MFC r325614:
Multiple fixes for using IPv6 link-local addresses with RDMA.

1) Fail to resolve RDMA address if rtalloc1() returns the loopback
device, lo0, as the gateway interface.

2) Use ip_dev_find() and ip6_dev_find() to lookup network interfaces
with matching IPv4 and IPv6 addresses, respectivly.

3) In addr_resolve() make sure the "ifa" pointer is always set, also when
the "ifp" is NULL. Else a NULL pointer access might happen trying to
read from the "ifa" pointer later on.

Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/10@325940 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/ofed/drivers/infiniband/core/addr.c
sys/ofed/drivers/infiniband/core/cma.c
sys/ofed/drivers/infiniband/core/device.c