linux/dim: Rename externally exposed macros
[muen/linux.git] / drivers / net / ethernet / broadcom / genet / bcmgenet.c
index 374b9ff..5286a46 100644 (file)
@@ -1928,7 +1928,7 @@ static void bcmgenet_dim_work(struct work_struct *work)
                        net_dim_get_rx_moderation(dim->mode, dim->profile_ix);
 
        bcmgenet_set_rx_coalesce(ring, cur_profile.usec, cur_profile.pkts);
-       dim->state = NET_DIM_START_MEASURE;
+       dim->state = DIM_START_MEASURE;
 }
 
 /* Assign skb to RX DMA descriptor. */
@@ -2085,7 +2085,7 @@ static void bcmgenet_init_dim(struct bcmgenet_rx_ring *ring,
        struct bcmgenet_net_dim *dim = &ring->dim;
 
        INIT_WORK(&dim->dim.work, cb);
-       dim->dim.mode = NET_DIM_CQ_PERIOD_MODE_START_FROM_EQE;
+       dim->dim.mode = DIM_CQ_PERIOD_MODE_START_FROM_EQE;
        dim->event_ctr = 0;
        dim->packets = 0;
        dim->bytes = 0;