Re: [PATCH v3 net-next] net: dsa: microchip: Add MIB counter reading support

2017-12-06 Thread Andrew Lunn
> + for (i = 0; i < dev->mib_port_cnt; i++) { > + p = >ports[i]; > + if (!p->on) > + continue; > + mib = >mib; > + mutex_lock(>cnt_mutex); > + > + /* read only dropped counters when link is not up */ > +

[PATCH v3 net-next] net: dsa: microchip: Add MIB counter reading support

2017-12-05 Thread Tristram.Ha
From: Tristram Ha Add MIB counter reading support. Signed-off-by: Tristram Ha Reviewed-by: Woojung Huh --- v3 - Use new timer_setup API v2 - Only MIB counter related code in patch v1 - Simplify MIB counter