vdpa_sim: rename vdpasim_config_ops variables
These variables store generic callbacks used by the vDPA simulator core, so we can remove the 'net' word in their names. Co-developed-by: Max Gurtovoy <mgurtovoy@nvidia.com> Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com> Acked-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Link: https://lore.kernel.org/r/20201215144256.155342-6-sgarzare@redhat.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
2fc0ebfa03
commit
36a9c30630
@ -341,8 +341,8 @@ static const struct dma_map_ops vdpasim_dma_ops = {
|
|||||||
.free = vdpasim_free_coherent,
|
.free = vdpasim_free_coherent,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct vdpa_config_ops vdpasim_net_config_ops;
|
static const struct vdpa_config_ops vdpasim_config_ops;
|
||||||
static const struct vdpa_config_ops vdpasim_net_batch_config_ops;
|
static const struct vdpa_config_ops vdpasim_batch_config_ops;
|
||||||
|
|
||||||
static struct vdpasim *vdpasim_create(void)
|
static struct vdpasim *vdpasim_create(void)
|
||||||
{
|
{
|
||||||
@ -352,9 +352,9 @@ static struct vdpasim *vdpasim_create(void)
|
|||||||
int i, ret = -ENOMEM;
|
int i, ret = -ENOMEM;
|
||||||
|
|
||||||
if (batch_mapping)
|
if (batch_mapping)
|
||||||
ops = &vdpasim_net_batch_config_ops;
|
ops = &vdpasim_batch_config_ops;
|
||||||
else
|
else
|
||||||
ops = &vdpasim_net_config_ops;
|
ops = &vdpasim_config_ops;
|
||||||
|
|
||||||
vdpasim = vdpa_alloc_device(struct vdpasim, vdpa, NULL, ops, VDPASIM_VQ_NUM);
|
vdpasim = vdpa_alloc_device(struct vdpasim, vdpa, NULL, ops, VDPASIM_VQ_NUM);
|
||||||
if (!vdpasim)
|
if (!vdpasim)
|
||||||
@ -667,7 +667,7 @@ static void vdpasim_free(struct vdpa_device *vdpa)
|
|||||||
kfree(vdpasim->vqs);
|
kfree(vdpasim->vqs);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct vdpa_config_ops vdpasim_net_config_ops = {
|
static const struct vdpa_config_ops vdpasim_config_ops = {
|
||||||
.set_vq_address = vdpasim_set_vq_address,
|
.set_vq_address = vdpasim_set_vq_address,
|
||||||
.set_vq_num = vdpasim_set_vq_num,
|
.set_vq_num = vdpasim_set_vq_num,
|
||||||
.kick_vq = vdpasim_kick_vq,
|
.kick_vq = vdpasim_kick_vq,
|
||||||
@ -694,7 +694,7 @@ static const struct vdpa_config_ops vdpasim_net_config_ops = {
|
|||||||
.free = vdpasim_free,
|
.free = vdpasim_free,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct vdpa_config_ops vdpasim_net_batch_config_ops = {
|
static const struct vdpa_config_ops vdpasim_batch_config_ops = {
|
||||||
.set_vq_address = vdpasim_set_vq_address,
|
.set_vq_address = vdpasim_set_vq_address,
|
||||||
.set_vq_num = vdpasim_set_vq_num,
|
.set_vq_num = vdpasim_set_vq_num,
|
||||||
.kick_vq = vdpasim_kick_vq,
|
.kick_vq = vdpasim_kick_vq,
|
||||||
|
Loading…
Reference in New Issue
Block a user