From f12ac17189ac5c272c0cc936ec6a38bd8bfe10b7 Mon Sep 17 00:00:00 2001 From: Darek Stojaczyk Date: Sat, 20 Jul 2019 11:47:33 +0200 Subject: [PATCH] vhost: change vsession->id to uint64_t This id is assigned from a global increment-only counter whose type is uint64_t. I believe the original intent was to use uint64_t for vsession->id as well, let's fix it now to avoid wrapping errors. Change-Id: I9cae87e6c74400590a1dc1b1f91d51e4a4c13499 Signed-off-by: Darek Stojaczyk Acked-by: Vitaliy Mysak Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/466038 Reviewed-by: Vitaliy Mysak Reviewed-by: Changpeng Liu Reviewed-by: Jim Harris Reviewed-by: Ben Walker Tested-by: SPDK CI Jenkins --- lib/vhost/vhost_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vhost/vhost_internal.h b/lib/vhost/vhost_internal.h index be29e9d8b..61106f860 100644 --- a/lib/vhost/vhost_internal.h +++ b/lib/vhost/vhost_internal.h @@ -126,7 +126,7 @@ struct spdk_vhost_session { int vid; /* Unique session ID. */ - unsigned id; + uint64_t id; struct vhost_poll_group *poll_group;