HomeFreeBSD

ibcore: Fix loopback with rdma-cm.

Description

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().

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies

Details

Provenance
slavashAuthored on
Parents
rS341529: ibcore: Make sure all VNETs are scanned for VLAN interfaces.
Branches
Unknown
Tags
Unknown