migration/rdma: zore out head.repeat to make the error more clear
commit2ada4b63f1764d13a2b9ca9cbeb5feda46ab6851
authorLi Zhijian <lizhijian@fujitsu.com>
Tue, 26 Sep 2023 10:01:03 +0000 (26 18:01 +0800)
committerJuan Quintela <quintela@redhat.com>
Wed, 4 Oct 2023 08:54:41 +0000 (4 10:54 +0200)
tree0626db058aaf20c4195ae7e131bbaea55fe4a66f
parent2bace555b3bd7bb38a58b9862016c4528b331fdb
migration/rdma: zore out head.repeat to make the error more clear

Previously, we got a confusion error that complains
the RDMAControlHeader.repeat:
qemu-system-x86_64: rdma: Too many requests in this message (3638950032).Bailing.

Actually, it's caused by an unexpected RDMAControlHeader.type.
After this patch, error will become:
qemu-system-x86_64: Unknown control message QEMU FILE

Reviewed-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20230926100103.201564-2-lizhijian@fujitsu.com>
migration/rdma.c