chelsio: tabulate the update of the statistic counters
Let's try to avoid some code duplication.
- cxgb2
The data are contiguous. Use plain memcpy.
- ixf1010/pm3393/vsc7326
The cast of &mac->stats to (u64 *) is not wonderful but it is not clear
if it is worth to add an ad-hoc union under the struct cmac_statistics.
vsc7326_reg.h suggests that more statistics could be available.
Signed-off-by:
Francois Romieu <romieu@fr.zoreil.com>
Showing
- drivers/net/chelsio/cxgb2.c 10 additions, 40 deletionsdrivers/net/chelsio/cxgb2.c
- drivers/net/chelsio/ixf1010.c 52 additions, 35 deletionsdrivers/net/chelsio/ixf1010.c
- drivers/net/chelsio/pm3393.c 48 additions, 35 deletionsdrivers/net/chelsio/pm3393.c
- drivers/net/chelsio/vsc7326.c 37 additions, 31 deletionsdrivers/net/chelsio/vsc7326.c
- drivers/net/chelsio/vsc7326_reg.h 75 additions, 64 deletionsdrivers/net/chelsio/vsc7326_reg.h
Loading
Please register or sign in to comment