vhost: make some vDPA callbacks mandatory
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Mon, 6 Jul 2020 11:24:47 +0000 (13:24 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Sat, 11 Jul 2020 04:18:52 +0000 (06:18 +0200)
commitb46a99c6006ab8edf098e4ac351d366336f6ac71
treec07362b588744045b3baac76df220282e9d0b409
parent2ab58f20db51259ee2f95223f912b04e5c16802a
vhost: make some vDPA callbacks mandatory

Some of the vDPA callbacks have to be implemented
for vDPA to work properly.

This patch marks them as mandatory in the API doc and
simplify code calling these ops with removing
unnecessary checks that are now done at registration
time.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
lib/librte_vhost/rte_vdpa_dev.h
lib/librte_vhost/socket.c
lib/librte_vhost/vdpa.c
lib/librte_vhost/vhost.c
lib/librte_vhost/vhost_user.c