|
@@ -652,7 +652,7 @@ static void bcmgenet_set_ring_rx_coalesce(struct bcmgenet_rx_ring *ring,
|
|
pkts = ring->rx_max_coalesced_frames;
|
|
pkts = ring->rx_max_coalesced_frames;
|
|
|
|
|
|
if (ec->use_adaptive_rx_coalesce && !ring->dim.use_dim) {
|
|
if (ec->use_adaptive_rx_coalesce && !ring->dim.use_dim) {
|
|
- moder = net_dim_get_def_profile(ring->dim.dim.mode);
|
|
|
|
|
|
+ moder = net_dim_get_def_rx_moderation(ring->dim.dim.mode);
|
|
usecs = moder.usec;
|
|
usecs = moder.usec;
|
|
pkts = moder.pkts;
|
|
pkts = moder.pkts;
|
|
}
|
|
}
|
|
@@ -1925,7 +1925,7 @@ static void bcmgenet_dim_work(struct work_struct *work)
|
|
struct bcmgenet_rx_ring *ring =
|
|
struct bcmgenet_rx_ring *ring =
|
|
container_of(ndim, struct bcmgenet_rx_ring, dim);
|
|
container_of(ndim, struct bcmgenet_rx_ring, dim);
|
|
struct net_dim_cq_moder cur_profile =
|
|
struct net_dim_cq_moder cur_profile =
|
|
- net_dim_get_profile(dim->mode, dim->profile_ix);
|
|
|
|
|
|
+ net_dim_get_rx_moderation(dim->mode, dim->profile_ix);
|
|
|
|
|
|
bcmgenet_set_rx_coalesce(ring, cur_profile.usec, cur_profile.pkts);
|
|
bcmgenet_set_rx_coalesce(ring, cur_profile.usec, cur_profile.pkts);
|
|
dim->state = NET_DIM_START_MEASURE;
|
|
dim->state = NET_DIM_START_MEASURE;
|
|
@@ -2102,7 +2102,7 @@ static void bcmgenet_init_rx_coalesce(struct bcmgenet_rx_ring *ring)
|
|
|
|
|
|
/* If DIM was enabled, re-apply default parameters */
|
|
/* If DIM was enabled, re-apply default parameters */
|
|
if (dim->use_dim) {
|
|
if (dim->use_dim) {
|
|
- moder = net_dim_get_def_profile(dim->dim.mode);
|
|
|
|
|
|
+ moder = net_dim_get_def_rx_moderation(dim->dim.mode);
|
|
usecs = moder.usec;
|
|
usecs = moder.usec;
|
|
pkts = moder.pkts;
|
|
pkts = moder.pkts;
|
|
}
|
|
}
|