vduse: enable Virtio-net device type
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 9 Jan 2024 11:10:25 +0000 (12:10 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 19 Mar 2024 12:19:15 +0000 (08:19 -0400)
commit894452180d732413fd29fa95a4820560fa44ca4a
treee3363026623f490191cbd3bf5b5518b560da82c4
parent56e71885b0349241c07631a7b979b61e81afab6a
vduse: enable Virtio-net device type

This patch adds Virtio-net device type to the supported
devices types.

Initialization fails if the device does not support
VIRTIO_F_VERSION_1 feature, in order to guarantee the
configuration space is read-only. It also fails with
-EPERM if the CAP_NET_ADMIN is missing.

Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Eugenio PĂ©rez <eperezma@redhat.com>
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Message-Id: <20240109111025.1320976-4-maxime.coquelin@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Xie Yongji <xieyongji@bytedance.com>
drivers/vdpa/vdpa_user/vduse_dev.c