| .. | .. |
|---|
| 7 | 7 | * the Free Software Foundation. |
|---|
| 8 | 8 | */ |
|---|
| 9 | 9 | |
|---|
| 10 | | -#include <linux/net_dim.h> |
|---|
| 10 | +#include <linux/dim.h> |
|---|
| 11 | 11 | #include "bnxt_hsi.h" |
|---|
| 12 | 12 | #include "bnxt.h" |
|---|
| 13 | 13 | |
|---|
| 14 | 14 | void bnxt_dim_work(struct work_struct *work) |
|---|
| 15 | 15 | { |
|---|
| 16 | | - struct net_dim *dim = container_of(work, struct net_dim, |
|---|
| 17 | | - work); |
|---|
| 16 | + struct dim *dim = container_of(work, struct dim, work); |
|---|
| 18 | 17 | struct bnxt_cp_ring_info *cpr = container_of(dim, |
|---|
| 19 | 18 | struct bnxt_cp_ring_info, |
|---|
| 20 | 19 | dim); |
|---|
| 21 | 20 | struct bnxt_napi *bnapi = container_of(cpr, |
|---|
| 22 | 21 | struct bnxt_napi, |
|---|
| 23 | 22 | cp_ring); |
|---|
| 24 | | - struct net_dim_cq_moder cur_moder = |
|---|
| 23 | + struct dim_cq_moder cur_moder = |
|---|
| 25 | 24 | net_dim_get_rx_moderation(dim->mode, dim->profile_ix); |
|---|
| 26 | 25 | |
|---|
| 27 | 26 | cpr->rx_ring_coal.coal_ticks = cur_moder.usec; |
|---|
| 28 | 27 | cpr->rx_ring_coal.coal_bufs = cur_moder.pkts; |
|---|
| 29 | 28 | |
|---|
| 30 | 29 | bnxt_hwrm_set_ring_coal(bnapi->bp, bnapi); |
|---|
| 31 | | - dim->state = NET_DIM_START_MEASURE; |
|---|
| 30 | + dim->state = DIM_START_MEASURE; |
|---|
| 32 | 31 | } |
|---|