Re: [dpdk-dev] [PATCH 2/8] vhost: avoid enum fields in VhostUserMsg

2018-02-06 Thread Maxime Coquelin
On 02/05/2018 01:16 PM, Stefan Hajnoczi wrote: The VhostUserMsg struct binary representation must match the vhost-user protocol specification since this struct is read from and written to the socket. The VhostUserMsg.request union contains enum fields. Enum binary representation is implementa

[dpdk-dev] [PATCH 2/8] vhost: avoid enum fields in VhostUserMsg

2018-02-05 Thread Stefan Hajnoczi
The VhostUserMsg struct binary representation must match the vhost-user protocol specification since this struct is read from and written to the socket. The VhostUserMsg.request union contains enum fields. Enum binary representation is implementation-defined according to the C standard and it is