hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/net/ethernet/broadcom/bnxt/bnxt_dim.c
....@@ -7,26 +7,25 @@
77 * the Free Software Foundation.
88 */
99
10
-#include <linux/net_dim.h>
10
+#include <linux/dim.h>
1111 #include "bnxt_hsi.h"
1212 #include "bnxt.h"
1313
1414 void bnxt_dim_work(struct work_struct *work)
1515 {
16
- struct net_dim *dim = container_of(work, struct net_dim,
17
- work);
16
+ struct dim *dim = container_of(work, struct dim, work);
1817 struct bnxt_cp_ring_info *cpr = container_of(dim,
1918 struct bnxt_cp_ring_info,
2019 dim);
2120 struct bnxt_napi *bnapi = container_of(cpr,
2221 struct bnxt_napi,
2322 cp_ring);
24
- struct net_dim_cq_moder cur_moder =
23
+ struct dim_cq_moder cur_moder =
2524 net_dim_get_rx_moderation(dim->mode, dim->profile_ix);
2625
2726 cpr->rx_ring_coal.coal_ticks = cur_moder.usec;
2827 cpr->rx_ring_coal.coal_bufs = cur_moder.pkts;
2928
3029 bnxt_hwrm_set_ring_coal(bnapi->bp, bnapi);
31
- dim->state = NET_DIM_START_MEASURE;
30
+ dim->state = DIM_START_MEASURE;
3231 }