vhost-user: use an enum helper for features mask
authorThibaut Collet <thibaut.collet@6wind.com>
Fri, 9 Oct 2015 15:17:33 +0000 (17:17 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 22 Oct 2015 11:34:49 +0000 (14:34 +0300)
commitde1372d466fb4a7bed13f64f50bff14aaa4a5931
treee957bb3efdf5db99d8204f6808c195303155ebdb
parent3e866365e1eb6bcfa2d01c21debb05b9e47a47f7
vhost-user: use an enum helper for features mask

The VHOST_USER_PROTOCOL_FEATURE_MASK will be automatically updated when
adding new features to the enum.

Signed-off-by: Thibaut Collet <thibaut.collet@6wind.com>
[Adapted from mailing list discussion - Marc-AndrĂ©]
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Thibaut Collet <thibaut.collet@6wind.com>
hw/virtio/vhost-user.c