Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Stefano Garzarella and committed by
Michael S. Tsirkin
36a9c306 2fc0ebfa

+6 -6
+6 -6
drivers/vdpa/vdpa_sim/vdpa_sim.c
··· 341 341 .free = vdpasim_free_coherent, 342 342 }; 343 343 344 - static const struct vdpa_config_ops vdpasim_net_config_ops; 345 - static const struct vdpa_config_ops vdpasim_net_batch_config_ops; 344 + static const struct vdpa_config_ops vdpasim_config_ops; 345 + static const struct vdpa_config_ops vdpasim_batch_config_ops; 346 346 347 347 static struct vdpasim *vdpasim_create(void) 348 348 { ··· 352 352 int i, ret = -ENOMEM; 353 353 354 354 if (batch_mapping) 355 - ops = &vdpasim_net_batch_config_ops; 355 + ops = &vdpasim_batch_config_ops; 356 356 else 357 - ops = &vdpasim_net_config_ops; 357 + ops = &vdpasim_config_ops; 358 358 359 359 vdpasim = vdpa_alloc_device(struct vdpasim, vdpa, NULL, ops, VDPASIM_VQ_NUM); 360 360 if (!vdpasim) ··· 667 667 kfree(vdpasim->vqs); 668 668 } 669 669 670 - static const struct vdpa_config_ops vdpasim_net_config_ops = { 670 + static const struct vdpa_config_ops vdpasim_config_ops = { 671 671 .set_vq_address = vdpasim_set_vq_address, 672 672 .set_vq_num = vdpasim_set_vq_num, 673 673 .kick_vq = vdpasim_kick_vq, ··· 694 694 .free = vdpasim_free, 695 695 }; 696 696 697 - static const struct vdpa_config_ops vdpasim_net_batch_config_ops = { 697 + static const struct vdpa_config_ops vdpasim_batch_config_ops = { 698 698 .set_vq_address = vdpasim_set_vq_address, 699 699 .set_vq_num = vdpasim_set_vq_num, 700 700 .kick_vq = vdpasim_kick_vq,