.. | .. |
---|
30 | 30 | * SOFTWARE. |
---|
31 | 31 | */ |
---|
32 | 32 | |
---|
33 | | -#include <linux/net_dim.h> |
---|
| 33 | +#include <linux/dim.h> |
---|
34 | 34 | #include "en.h" |
---|
35 | 35 | |
---|
36 | 36 | static void |
---|
37 | | -mlx5e_complete_dim_work(struct net_dim *dim, struct net_dim_cq_moder moder, |
---|
| 37 | +mlx5e_complete_dim_work(struct dim *dim, struct dim_cq_moder moder, |
---|
38 | 38 | struct mlx5_core_dev *mdev, struct mlx5_core_cq *mcq) |
---|
39 | 39 | { |
---|
40 | 40 | mlx5_core_modify_cq_moderation(mdev, mcq, moder.usec, moder.pkts); |
---|
41 | | - dim->state = NET_DIM_START_MEASURE; |
---|
| 41 | + dim->state = DIM_START_MEASURE; |
---|
42 | 42 | } |
---|
43 | 43 | |
---|
44 | 44 | void mlx5e_rx_dim_work(struct work_struct *work) |
---|
45 | 45 | { |
---|
46 | | - struct net_dim *dim = container_of(work, struct net_dim, work); |
---|
| 46 | + struct dim *dim = container_of(work, struct dim, work); |
---|
47 | 47 | struct mlx5e_rq *rq = container_of(dim, struct mlx5e_rq, dim); |
---|
48 | | - struct net_dim_cq_moder cur_moder = |
---|
| 48 | + struct dim_cq_moder cur_moder = |
---|
49 | 49 | net_dim_get_rx_moderation(dim->mode, dim->profile_ix); |
---|
50 | 50 | |
---|
51 | 51 | mlx5e_complete_dim_work(dim, cur_moder, rq->mdev, &rq->cq.mcq); |
---|
.. | .. |
---|
53 | 53 | |
---|
54 | 54 | void mlx5e_tx_dim_work(struct work_struct *work) |
---|
55 | 55 | { |
---|
56 | | - struct net_dim *dim = container_of(work, struct net_dim, work); |
---|
| 56 | + struct dim *dim = container_of(work, struct dim, work); |
---|
57 | 57 | struct mlx5e_txqsq *sq = container_of(dim, struct mlx5e_txqsq, dim); |
---|
58 | | - struct net_dim_cq_moder cur_moder = |
---|
| 58 | + struct dim_cq_moder cur_moder = |
---|
59 | 59 | net_dim_get_tx_moderation(dim->mode, dim->profile_ix); |
---|
60 | 60 | |
---|
61 | 61 | mlx5e_complete_dim_work(dim, cur_moder, sq->cq.mdev, &sq->cq.mcq); |
---|