[dpdk-dev] [PATCH 6/7] vhost: get device once

2016-08-24 Thread Maxime Coquelin
On 08/18/2016 10:48 AM, Yuanhan Liu wrote: > Invoke get_device() at the beginning of vhost_user_msg_handler, so that > we could check the return value once. Which could save tons of duplicate > get-and-check device. > > Signed-off-by: Yuanhan Liu > --- > lib/librte_vhost/vhost_user.c | 160 > +

[dpdk-dev] [PATCH 6/7] vhost: get device once

2016-08-18 Thread Yuanhan Liu
Invoke get_device() at the beginning of vhost_user_msg_handler, so that we could check the return value once. Which could save tons of duplicate get-and-check device. Signed-off-by: Yuanhan Liu --- lib/librte_vhost/vhost_user.c | 160 +- 1 file changed, 47