net/virtio: add device config support to vDPA
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Thu, 17 Jun 2021 14:17:17 +0000 (16:17 +0200)
committerChenbo Xia <chenbo.xia@intel.com>
Wed, 23 Jun 2021 07:55:45 +0000 (09:55 +0200)
commit9b7466f6ce5bb43200f082fea1e8eb1c22ecd5d3
tree3dcab3bb8d632e22737381061e16bedb7555a83c
parentf078c2f04d2badd432402b4e495ebee4e41cf8ef
net/virtio: add device config support to vDPA

This patch introduces two virtio-user callbacks to get
and set device's config, and implements it for vDPA
backends.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
drivers/net/virtio/virtio_user/vhost.h
drivers/net/virtio/virtio_user/vhost_vdpa.c