]> xenbits.xensource.com Git - qemu-xen.git/commit
migration/rdma: set the REUSEADDR option for destination
authorJack Wang <jinpu.wang@ionos.com>
Tue, 8 Feb 2022 08:56:40 +0000 (09:56 +0100)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 2 Mar 2022 18:17:50 +0000 (18:17 +0000)
commitf736e414ee16d7a515e755bf7f4a022b5851844e
tree0b8ed127fcf000ed1cbc657b45089c0337981447
parent675fd3c96b93abd50a3856089d832c0666dfab52
migration/rdma: set the REUSEADDR option for destination

We hit following error during testing RDMA transport:
in case of migration error, mgmt daemon pick one migration port,
incoming rdma:[::]:8089: RDMA ERROR: Error: could not rdma_bind_addr

Then try another -incoming rdma:[::]:8103, sometime it worked,
sometimes need another try with other ports number.

Set the REUSEADDR option for destination, This allow address could
be reused to avoid rdma_bind_addr error out.

Signed-off-by: Jack Wang <jinpu.wang@ionos.com>
Message-Id: <20220208085640.19702-1-jinpu.wang@ionos.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@ionos.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
  dgilbert: Fixed up some tabs
migration/rdma.c