common/sfc_efx/base: support getting virtq doorbell offset
authorVijay Srivastava <vijays@solarflare.com>
Tue, 16 Mar 2021 08:58:26 +0000 (11:58 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Mar 2021 11:39:41 +0000 (12:39 +0100)
commitec03ce6909d056a2cdfbdcdb0dd3bf70f215ed0a
tree00443664792a5ba7bbbe4808058cb6b1f2535902
parent4dda72dbdeab354699967ce496b9d23db6a65321
common/sfc_efx/base: support getting virtq doorbell offset

Add an API to query the virtqueue doorbell offset in the BAR for a VI.
For vDPA, the virtio net driver notifies the device directly by writing
doorbell. This API would be invoked from vDPA client driver.

Signed-off-by: Vijay Srivastava <vijays@solarflare.com>
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
drivers/common/sfc_efx/base/efx.h
drivers/common/sfc_efx/base/efx_impl.h
drivers/common/sfc_efx/base/efx_virtio.c
drivers/common/sfc_efx/base/rhead_impl.h
drivers/common/sfc_efx/base/rhead_virtio.c