+16
−0
+2
−20
Loading
Using contructor/destructor to handle g_dpdk_sem will help later in the series when splitting vhost fini between vhost.c and virtio abstraction. Otherwise multiple callbacks would be needed during vhost fini. Ex. spdk_vhost_fini -> vhost_user_fini to stop the sessions -> -> back to spdk_vhost_fini to remove vhost devices -> -> vhost_user_fini to destroy the g_dpdk_sem g_dpdk_sem will only be used from rte_vhost_user.c. Until all references are moved, it is placed in vhost_internal. Signed-off-by:Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I0505b906621f0eb0cb1226f96a3b6cf49f66778f Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11055 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com>