]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r341530:
authorhselasky <hselasky@FreeBSD.org>
Wed, 12 Dec 2018 10:56:53 +0000 (10:56 +0000)
committerhselasky <hselasky@FreeBSD.org>
Wed, 12 Dec 2018 10:56:53 +0000 (10:56 +0000)
commite1f6a8843cf9908919111c34225a04c435a988b2
treeda11c690f664b5ae61679d4442ece42e9cd153ca
parentce85c351be980e9f8e7f3de7d286aee9954edecf
MFC r341530:
ibcore: Fix loopback with rdma-cm.

Trying to validate loopback fails because rtalloc1() resolves system
local addresses to the loopback network interface, lo0. Fix this by
explicitly checking for loopback during validation of the source
and destination network address. If the source address belongs to
a local network interface and is equal to the destination address,
there is no need to run the destination address through rtalloc1().

Sponsored by:   Mellanox Technologies
sys/ofed/drivers/infiniband/core/ib_cma.c