]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix false positive on failure
authorslavash <slavash@FreeBSD.org>
Sun, 17 Jun 2018 07:08:47 +0000 (07:08 +0000)
committerslavash <slavash@FreeBSD.org>
Sun, 17 Jun 2018 07:08:47 +0000 (07:08 +0000)
commit3e700502e6abd7ee502d6e91fe7de184e238a6bb
tree5e8f3e7ef16502ddfb91a5008352e4a5bd5c0caf
parentfef5f2f83bf114d96e1e6f30cc4bddf59ae6850d
Fix false positive on failure

When running mckey, errors may happen in the init/connect stage.
When leaving multicast groups, we override this value.

Fix that by saving the return value from rdma_leave_multicast to different
parameter, and only in case of failure in rdma_leave_multicast override it.

MFC after:      1 week
Approved by:    hselasky (mentor), kib (mentor)
Sponsored by:   Mellanox Technologies
contrib/ofed/librdmacm/examples/mckey.c