vhost: refactor messages handlers declaration
authorDavid Marchand <david.marchand@redhat.com>
Mon, 25 Apr 2022 12:54:29 +0000 (14:54 +0200)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Mon, 9 May 2022 19:39:42 +0000 (21:39 +0200)
commite4b12ba5d51840ded98f01a0a973380f6e4cce58
treef385005029791b9db767aedf51efd3d8a4d03858
parent6d7046215a3da334bac77d2b06e5ae1c208f3ca4
vhost: refactor messages handlers declaration

Move message handler description and callbacks into a single array and
remove unneeded VHOST_USER_MAX and VHOST_SLAVE_MAX enums.

Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_user/vhost_user.c
examples/vhost_blk/blk_spec.h
lib/vhost/vhost_user.c
lib/vhost/vhost_user.h