+27
−12
+11
−7
Loading
Keep all coalescing variables inside the session struct. Interrupt coalescing is still configured with the device- pecific APIs, but those will now transparently propagate the change to all active connections. This is the last piece that held struct spdk_vhost_dev tied with the session's lcore. Now that device settings aren't actively polled by any sessions, they only need to be synchronized with the global vhost lock. This will potentially let us get rid of the vhost external events API, allowing user to lock the mutex directly, set coalescing params directly, and transparently let the internal spdk_vhost_dev_foreach_session() do the tricky synchronization. Change-Id: Ifba96d241c736d33376861fa894c738e7d9b5b40 Signed-off-by:Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/c/437777 Reviewed-by:
Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>