libceph: correctly decode ADDR2 addresses in incremental OSD maps
authorJeff Layton <jlayton@kernel.org>
Tue, 4 Jun 2019 19:10:44 +0000 (15:10 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 8 Jul 2019 12:01:43 +0000 (14:01 +0200)
commit8cb5f2b4fcf4b8a4043e26c232b435e83e2abe87
tree44cacb467fa11c66df717ba819f603f366c69869
parent51fc7ab44519adc6684ac6575826f8b1a16ee4b3
libceph: correctly decode ADDR2 addresses in incremental OSD maps

Given the new format, we have to decode the addresses twice. Once to
skip past the new_up_client field, and a second time to collect the
addresses.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/osdmap.c