]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ibcore: Fix clearing of bound device interface.
authorslavash <slavash@FreeBSD.org>
Wed, 5 Dec 2018 13:25:13 +0000 (13:25 +0000)
committerslavash <slavash@FreeBSD.org>
Wed, 5 Dec 2018 13:25:13 +0000 (13:25 +0000)
commit2bd9dcbeba13d12063830ebf7eca967b01973c87
tree417e67e9584537e9b9b735e412bf330d589954d2
parent5413daa1a0268094815c248f4da063012224f1e4
ibcore: Fix clearing of bound device interface.

Binding to a loopback device is not allowed. Make sure the destination
device address is global by clearing the bound device interface.
Only do this conditionally, else link local addresses won't work.

Submitted by:   hselasky@
Approved by:    hselasky (mentor)
MFC after:      1 week
Sponsored by:   Mellanox Technologies
sys/ofed/drivers/infiniband/core/ib_addr.c