diff options
author | Tal Gilboa <talgi@mellanox.com> | 2018-04-24 13:36:01 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-24 17:15:07 +0300 |
commit | 026a807c2de37aa826748c2ffa1969fc778406b2 (patch) | |
tree | d1bc795d909a4857ec49892c1b539f45d71dd54f /drivers/net/ethernet/mellanox/mlx5/core/en_dim.c | |
parent | db688c24eada63b1efe6d0d7d835e5c3bdd71fd3 (diff) | |
download | linux-026a807c2de37aa826748c2ffa1969fc778406b2.tar.xz |
net/dim: Rename *_get_profile() functions to *_get_rx_moderation()
Preparation for introducing adaptive TX to net DIM.
Signed-off-by: Tal Gilboa <talgi@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en_dim.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_dim.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_dim.c b/drivers/net/ethernet/mellanox/mlx5/core/en_dim.c index 602851ab5b14..1b286e1985d2 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_dim.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_dim.c @@ -38,11 +38,11 @@ void mlx5e_rx_dim_work(struct work_struct *work) struct net_dim *dim = container_of(work, struct net_dim, work); struct mlx5e_rq *rq = container_of(dim, struct mlx5e_rq, dim); - struct net_dim_cq_moder cur_profile = net_dim_get_profile(dim->mode, - dim->profile_ix); + struct net_dim_cq_moder cur_moder = + net_dim_get_rx_moderation(dim->mode, dim->profile_ix); mlx5_core_modify_cq_moderation(rq->mdev, &rq->cq.mcq, - cur_profile.usec, cur_profile.pkts); + cur_moder.usec, cur_moder.pkts); dim->state = NET_DIM_START_MEASURE; } |