lkml.org 
[lkml]   [2020]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v3 06/19] vdpa_sim: rename vdpasim_config_ops variables
    Date
    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>
    ---
    drivers/vdpa/vdpa_sim/vdpa_sim.c | 12 ++++++------
    1 file changed, 6 insertions(+), 6 deletions(-)

    diff --git a/drivers/vdpa/vdpa_sim/vdpa_sim.c b/drivers/vdpa/vdpa_sim/vdpa_sim.c
    index 688aceaa6543..625e0f46b672 100644
    --- a/drivers/vdpa/vdpa_sim/vdpa_sim.c
    +++ b/drivers/vdpa/vdpa_sim/vdpa_sim.c
    @@ -333,8 +333,8 @@ static const struct dma_map_ops vdpasim_dma_ops = {
    .free = vdpasim_free_coherent,
    };

    -static const struct vdpa_config_ops vdpasim_net_config_ops;
    -static const struct vdpa_config_ops vdpasim_net_batch_config_ops;
    +static const struct vdpa_config_ops vdpasim_config_ops;
    +static const struct vdpa_config_ops vdpasim_batch_config_ops;

    static struct vdpasim *vdpasim_create(void)
    {
    @@ -344,9 +344,9 @@ static struct vdpasim *vdpasim_create(void)
    int i, ret = -ENOMEM;

    if (batch_mapping)
    - ops = &vdpasim_net_batch_config_ops;
    + ops = &vdpasim_batch_config_ops;
    else
    - ops = &vdpasim_net_config_ops;
    + ops = &vdpasim_config_ops;

    vdpasim = vdpa_alloc_device(struct vdpasim, vdpa, NULL, ops, VDPASIM_VQ_NUM);
    if (!vdpasim)
    @@ -659,7 +659,7 @@ static void vdpasim_free(struct vdpa_device *vdpa)
    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_num = vdpasim_set_vq_num,
    .kick_vq = vdpasim_kick_vq,
    @@ -686,7 +686,7 @@ static const struct vdpa_config_ops vdpasim_net_config_ops = {
    .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_num = vdpasim_set_vq_num,
    .kick_vq = vdpasim_kick_vq,
    --
    2.26.2
    \
     
     \ /
      Last update: 2020-12-03 18:08    [W:4.239 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site