libceph: add ceph_decode_entity_addr
authorJeff Layton <jlayton@kernel.org>
Mon, 3 Jun 2019 18:45:16 +0000 (14:45 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 8 Jul 2019 12:01:43 +0000 (14:01 +0200)
commit6c37f0e64173571914a443f74d36e5a22dabfc05
tree2ad4506a710e7cc556bc4da80a74c8f79bb08d79
parentbc07532cc51f4c33cb6136405c9807c5961e468b
libceph: add ceph_decode_entity_addr

Add a function for decoding an entity_addr_t. Once
CEPH_FEATURE_MSG_ADDR2 is enabled, the server daemons will start
encoding entity_addr_t differently.

Add a new helper function that can handle either format.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
include/linux/ceph/decode.h
net/ceph/Makefile
net/ceph/decode.c [new file with mode: 0644]