common/sfc_efx/base: add base virtio support for vDPA
authorVijay Srivastava <vijays@solarflare.com>
Tue, 16 Mar 2021 08:58:25 +0000 (11:58 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Mar 2021 11:39:41 +0000 (12:39 +0100)
commit4dda72dbdeab354699967ce496b9d23db6a65321
tree793cfdf252956470673079e83579217a49566105
parent2382a607599ec1e44594bd74175fc8ffcc260a47
common/sfc_efx/base: add base virtio support for vDPA

In the vDPA mode, only data path is offloaded in the hardware and
control path still goes through the hypervisor and it configures
virtqueues via vDPA driver so new virtqueue APIs are required.

Implement virtio init/fini and virtqueue create/destroy APIs.

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_check.h
drivers/common/sfc_efx/base/efx_impl.h
drivers/common/sfc_efx/base/efx_virtio.c [new file with mode: 0644]
drivers/common/sfc_efx/base/meson.build
drivers/common/sfc_efx/base/rhead_impl.h
drivers/common/sfc_efx/base/rhead_virtio.c [new file with mode: 0644]
drivers/common/sfc_efx/efsys.h