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 <yuanhan.liu at linux.intel.com> > --- > lib/librte_vhost/vhost_user.c | 160 > +++++++++++++----------------------------- > 1 file changed, 47 insertions(+), 113 deletions(-)
Makes sense: Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com> Thanks, Maxime