Print this page
4431 igb support for I354
4616 igb has uninitialized kstats

@@ -22,10 +22,13 @@
 
 /*
  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
+/*
+ * Copyright 2014 Pluribus Networks Inc.
+ */
 
 #include "igb_sw.h"
 
 /*
  * Update driver private statistics.

@@ -51,11 +54,10 @@
         mutex_enter(&igb->gen_lock);
 
         /*
          * Basic information.
          */
-        igb_ks->link_speed.value.ui64 = igb->link_speed;
         igb_ks->reset_count.value.ui64 = igb->reset_count;
         igb_ks->dout_sync.value.ui64 = igb->dout_sync;
 
 #ifdef IGB_DEBUG
         igb_ks->rx_frame_error.value.ui64 = 0;

@@ -117,11 +119,10 @@
 
         val_low = E1000_READ_REG(hw, E1000_GOTCL);
         val_high = E1000_READ_REG(hw, E1000_GOTCH);
         igb_ks->got.value.ui64 += (uint64_t)val_high << 32 | (uint64_t)val_low;
 #endif
-
         igb_ks->symerrs.value.ui64 += E1000_READ_REG(hw, E1000_SYMERRS);
         igb_ks->mpc.value.ui64 += E1000_READ_REG(hw, E1000_MPC);
         igb_ks->rlec.value.ui64 += E1000_READ_REG(hw, E1000_RLEC);
         igb_ks->fcruc.value.ui64 += E1000_READ_REG(hw, E1000_FCRUC);
         igb_ks->rfc.value.ul += E1000_READ_REG(hw, E1000_RFC);

@@ -170,12 +171,10 @@
         igb_ks = (igb_stat_t *)ks->ks_data;
 
         /*
          * Initialize all the statistics.
          */
-        kstat_named_init(&igb_ks->link_speed, "link_speed",
-            KSTAT_DATA_UINT64);
         kstat_named_init(&igb_ks->reset_count, "reset_count",
             KSTAT_DATA_UINT64);
         kstat_named_init(&igb_ks->dout_sync, "DMA_out_sync",
             KSTAT_DATA_UINT64);