]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix for RDMA loopback over VLAN in ibcore.
authorHans Petter Selasky <hselasky@FreeBSD.org>
Tue, 17 Jul 2018 09:02:29 +0000 (09:02 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Tue, 17 Jul 2018 09:02:29 +0000 (09:02 +0000)
commitfed17c58524822b9b162df7b85bde81a581c3338
treeb4dd44f06b776d58b8abcdceda41078b8e360c62
parentf9899e456765892ed0e6cccc52564cdbf2d53ac2
Fix for RDMA loopback over VLAN in ibcore.

Implement a more generic solution for detecting loopback.
The problem was that the default netdevice was resolved
for loopback also when VLAN was used. Use real network
device instead of loopback device for bound device
interface.

How to test:
ucmatose -b 127.0.0.1 -p 20090
ucmatose -s 5.6.5.1 -p 20090

Note that RDMA treats the IPv4 and IPv6 loopback
addresses like any address.

MFC after: 1 week
Sponsored by: Mellanox Technologies
sys/ofed/drivers/infiniband/core/ib_addr.c
sys/ofed/drivers/infiniband/core/ib_cma.c
sys/ofed/drivers/infiniband/core/ib_sa_query.c