Re: [dpdk-dev] [PATCH v1 5/5] vhost: message handling implemented as a callback array

2018-07-09 Thread Tiwei Bie
On Tue, Jun 26, 2018 at 07:19:38PM +0300, Nikolay Nikolaev wrote: > Introduce vhost_message_handlers, which maps the message request > type to the message handler. Then replace the switch construct > with a map and call. > > Signed-off-by: Nikolay Nikolaev > --- > lib/librte_vhost/vhost_user.c |

[dpdk-dev] [PATCH v1 5/5] vhost: message handling implemented as a callback array

2018-06-26 Thread Nikolay Nikolaev
Introduce vhost_message_handlers, which maps the message request type to the message handler. Then replace the switch construct with a map and call. Signed-off-by: Nikolay Nikolaev --- lib/librte_vhost/vhost_user.c | 144 - 1 file changed, 55 insertions(+