Loading
vhost: fix the no fd SET_VRING_CALL/SET_VRING_KICK issue
According vHost-user SPEC, for SET_VRING_KICK and SET_VRING_CALL message, bits (0-7) of the payload contain the vring index and bit 8 is the invalid FD flag. We should use VHOST_USER_VRING_IDX_MASK to get the correct qid. Otherwise, if ancillary data doesn't have fd, we will get error from post_msg_handler functions cuz bit 8 is set. Signed-off-by:Haoqian He <haoqian.he@smartx.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23265 (master) (cherry picked from commit 71c1bbee) Change-Id: I714a048c1d2f82abc98d66ed77e10a93ad271b58 Signed-off-by:
Marek Chomnicki <marek.chomnicki@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23315 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by:
Jim Harris <jim.harris@samsung.com>