net/virtio: keep device and frontend features separated
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Thu, 17 Jun 2021 14:17:16 +0000 (16:17 +0200)
committerChenbo Xia <chenbo.xia@intel.com>
Wed, 23 Jun 2021 07:55:45 +0000 (09:55 +0200)
commitf078c2f04d2badd432402b4e495ebee4e41cf8ef
tree23817eee471bcbb82b9071f157fafcdbee0f9b26
parent242695f6122af7bd42f1cbadf615dfece7b95089
net/virtio: keep device and frontend features separated

This patch is preliminary rework to add support for getting
and setting device's config space.

In order to get or set a device config such as its MAC address,
we need to know whether the device itself support the feature,
or if it is emulated by the frontend.

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