[BACK]Return to ixgbe.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev / pci / ixgbe

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/dev/pci/ixgbe/ixgbe.c between version 1.174 and 1.175

version 1.174, 2019/02/22 06:49:15 version 1.175, 2019/03/05 09:42:36
Line 1592  ixgbe_update_stats_counters(struct adapt
Line 1592  ixgbe_update_stats_counters(struct adapt
                 }                  }
         }          }
   
         /* 8 registers */          /* 8 registers exist */
         for (i = 0; i < IXGBE_DCB_MAX_TRAFFIC_CLASS; i++) {          for (i = 0; i < IXGBE_TC_COUNTER_NUM; i++) {
                 uint32_t mp;                  uint32_t mp;
   
                 /* MPC */                  /* MPC */
Line 1773  ixgbe_add_hw_stats(struct adapter *adapt
Line 1773  ixgbe_add_hw_stats(struct adapter *adapt
   
         /* Max number of traffic class is 8 */          /* Max number of traffic class is 8 */
         KASSERT(IXGBE_DCB_MAX_TRAFFIC_CLASS == 8);          KASSERT(IXGBE_DCB_MAX_TRAFFIC_CLASS == 8);
         for (i = 0; i < IXGBE_DCB_MAX_TRAFFIC_CLASS; i++) {          for (i = 0; i < IXGBE_TC_COUNTER_NUM; i++) {
                 snprintf(adapter->tcs[i].evnamebuf,                  snprintf(adapter->tcs[i].evnamebuf,
                     sizeof(adapter->tcs[i].evnamebuf), "%s tc%d",                      sizeof(adapter->tcs[i].evnamebuf), "%s tc%d",
                     xname, i);                      xname, i);
Line 2072  ixgbe_clear_evcnt(struct adapter *adapte
Line 2072  ixgbe_clear_evcnt(struct adapter *adapte
         adapter->msf_sicount.ev_count = 0;          adapter->msf_sicount.ev_count = 0;
         adapter->phy_sicount.ev_count = 0;          adapter->phy_sicount.ev_count = 0;
   
         for (i = 0; i < IXGBE_DCB_MAX_TRAFFIC_CLASS; i++) {          for (i = 0; i < IXGBE_TC_COUNTER_NUM; i++) {
                 if (i < __arraycount(stats->mpc)) {                  if (i < __arraycount(stats->mpc)) {
                         stats->mpc[i].ev_count = 0;                          stats->mpc[i].ev_count = 0;
                         if (hw->mac.type == ixgbe_mac_82598EB)                          if (hw->mac.type == ixgbe_mac_82598EB)
Line 3605  ixgbe_detach(device_t dev, int flags)
Line 3605  ixgbe_detach(device_t dev, int flags)
         evcnt_detach(&adapter->msf_sicount);          evcnt_detach(&adapter->msf_sicount);
         evcnt_detach(&adapter->phy_sicount);          evcnt_detach(&adapter->phy_sicount);
   
         for (i = 0; i < IXGBE_DCB_MAX_TRAFFIC_CLASS; i++) {          for (i = 0; i < IXGBE_TC_COUNTER_NUM; i++) {
                 if (i < __arraycount(stats->mpc)) {                  if (i < __arraycount(stats->mpc)) {
                         evcnt_detach(&stats->mpc[i]);                          evcnt_detach(&stats->mpc[i]);
                         if (hw->mac.type == ixgbe_mac_82598EB)                          if (hw->mac.type == ixgbe_mac_82598EB)

Legend:
Removed from v.1.174  
changed lines
  Added in v.1.175

CVSweb <webmaster@jp.NetBSD.org>