]> git.droids-corp.org - dpdk.git/commit
vhost: fix external message handlers
authorDavid Marchand <david.marchand@redhat.com>
Tue, 8 Mar 2022 09:44:22 +0000 (10:44 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 8 Mar 2022 14:48:30 +0000 (15:48 +0100)
commit762cdb7b68b788ec6e49d0334d11f2d6e4d19450
treea1f47e2904c0494c11770c905f36cdc8f510bcc6
parentb403498e14229ee903c8fff9baefcb72894062f3
vhost: fix external message handlers

Following a rework, external message handlers were receiving a pointer
to a vhost_user message (as stated in the API), but lost the ability to
interact with fds attached to the message.
Restore the original layout and put a build check and reminders.

Bugzilla ID: 953
Fixes: 5e0099dc709e ("vhost: remove payload size limitation")
Reported-by: Fan Zhang <roy.fan.zhang@intel.com>
Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Tested-by: Jakub Poczatek <jakub.poczatek@intel.com>
Acked-by: Jakub Poczatek <jakub.poczatek@intel.com>
Reviewed-by: Christophe Fontaine <cfontain@redhat.com>
lib/vhost/vhost_user.c
lib/vhost/vhost_user.h