aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000e/lib.c
diff options
context:
space:
mode:
authorBruce Allan <bruce.w.allan@intel.com>2009-11-20 18:27:21 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-21 14:34:21 -0500
commit99673d9b5d48c81f2e9fe094c0d9e42815c60b3f (patch)
treee21e8f5149bb8a08497d97c3f0691dc81dbf2ac3 /drivers/net/e1000e/lib.c
parent3d5e33c9783d3e911e9aef0339663e887044f0df (diff)
e1000e: cleanup functions that clear hardware statistics
The e1000_clear_hw_cntrs_*() functions read the registers to clear them. There is no reason to save the register contents so the temp variable can be removed. Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/e1000e/lib.c')
-rw-r--r--drivers/net/e1000e/lib.c76
1 files changed, 37 insertions, 39 deletions
diff --git a/drivers/net/e1000e/lib.c b/drivers/net/e1000e/lib.c
index d173bf88cc94..f690a1055b41 100644
--- a/drivers/net/e1000e/lib.c
+++ b/drivers/net/e1000e/lib.c
@@ -295,45 +295,43 @@ void e1000e_update_mc_addr_list_generic(struct e1000_hw *hw,
295 **/ 295 **/
296void e1000e_clear_hw_cntrs_base(struct e1000_hw *hw) 296void e1000e_clear_hw_cntrs_base(struct e1000_hw *hw)
297{ 297{
298 u32 temp; 298 er32(CRCERRS);
299 299 er32(SYMERRS);
300 temp = er32(CRCERRS); 300 er32(MPC);
301 temp = er32(SYMERRS); 301 er32(SCC);
302 temp = er32(MPC); 302 er32(ECOL);
303 temp = er32(SCC); 303 er32(MCC);
304 temp = er32(ECOL); 304 er32(LATECOL);
305 temp = er32(MCC); 305 er32(COLC);
306 temp = er32(LATECOL); 306 er32(DC);
307 temp = er32(COLC); 307 er32(SEC);
308 temp = er32(DC); 308 er32(RLEC);
309 temp = er32(SEC); 309 er32(XONRXC);
310 temp = er32(RLEC); 310 er32(XONTXC);
311 temp = er32(XONRXC); 311 er32(XOFFRXC);
312 temp = er32(XONTXC); 312 er32(XOFFTXC);
313 temp = er32(XOFFRXC); 313 er32(FCRUC);
314 temp = er32(XOFFTXC); 314 er32(GPRC);
315 temp = er32(FCRUC); 315 er32(BPRC);
316 temp = er32(GPRC); 316 er32(MPRC);
317 temp = er32(BPRC); 317 er32(GPTC);
318 temp = er32(MPRC); 318 er32(GORCL);
319 temp = er32(GPTC); 319 er32(GORCH);
320 temp = er32(GORCL); 320 er32(GOTCL);
321 temp = er32(GORCH); 321 er32(GOTCH);
322 temp = er32(GOTCL); 322 er32(RNBC);
323 temp = er32(GOTCH); 323 er32(RUC);
324 temp = er32(RNBC); 324 er32(RFC);
325 temp = er32(RUC); 325 er32(ROC);
326 temp = er32(RFC); 326 er32(RJC);
327 temp = er32(ROC); 327 er32(TORL);
328 temp = er32(RJC); 328 er32(TORH);
329 temp = er32(TORL); 329 er32(TOTL);
330 temp = er32(TORH); 330 er32(TOTH);
331 temp = er32(TOTL); 331 er32(TPR);
332 temp = er32(TOTH); 332 er32(TPT);
333 temp = er32(TPR); 333 er32(MPTC);
334 temp = er32(TPT); 334 er32(BPTC);
335 temp = er32(MPTC);
336 temp = er32(BPTC);
337} 335}
338 336
339/** 337/**