]> git.baikalelectronics.ru Git - kernel.git/commit
net/vdpa: Use struct for set/get vq state
authorEli Cohen <eli@mellanox.com>
Tue, 4 Aug 2020 16:20:43 +0000 (19:20 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 5 Aug 2020 22:39:19 +0000 (18:39 -0400)
commitbdb057183e72eaf741a1613ed49d7f49fcf4d91e
treefa327338edce163e18e1d9da46a0d7715c00b3a9
parente9a9c2f1cd7f66917f2d3aa8079a1c7f796d232d
net/vdpa: Use struct for set/get vq state

For now VQ state involves 16 bit available index value encoded in u64
variable. In the future it will be extended to contain more fields. Use
struct to contain the state, now containing only a single u16 for the
available index. In the future we can add fields to this struct.

Reviewed-by: Parav Pandit <parav@mellanox.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Eli Cohen <eli@mellanox.com>
Link: https://lore.kernel.org/r/20200804162048.22587-8-eli@mellanox.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/ifcvf/ifcvf_base.c
drivers/vdpa/ifcvf/ifcvf_base.h
drivers/vdpa/ifcvf/ifcvf_main.c
drivers/vdpa/vdpa_sim/vdpa_sim.c
drivers/vhost/vdpa.c
include/linux/vdpa.h