Print this page
6064 ixgbe needs X550 support

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/ixgbe/ixgbe_stat.c
          +++ new/usr/src/uts/common/io/ixgbe/ixgbe_stat.c
↓ open down ↓ 18 lines elided ↑ open up ↑
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright(c) 2007-2010 Intel Corporation. All rights reserved.
  24   24   */
  25   25  
  26   26  /*
  27   27   * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
  28   28   * Copyright 2012 Nexenta Systems, Inc. All rights reserved.
       29 + * Copyright 2016 OmniTI Computer Consulting, Inc. All rights reserved.
  29   30   */
  30   31  
  31   32  #include "ixgbe_sw.h"
  32   33  
  33   34  /*
  34   35   * Update driver private statistics.
  35   36   */
  36   37  static int
  37   38  ixgbe_update_stats(kstat_t *ks, int rw)
  38   39  {
↓ open down ↓ 68 lines elided ↑ open up ↑
 107  108                      IXGBE_READ_REG(hw, IXGBE_QBRC(i));
 108  109                  ixgbe_ks->tor.value.ui64 += ixgbe_ks->qbrc[i].value.ui64;
 109  110                  switch (hw->mac.type) {
 110  111                  case ixgbe_mac_82598EB:
 111  112                          ixgbe_ks->qbtc[i].value.ui64 +=
 112  113                              IXGBE_READ_REG(hw, IXGBE_QBTC(i));
 113  114                          break;
 114  115  
 115  116                  case ixgbe_mac_82599EB:
 116  117                  case ixgbe_mac_X540:
      118 +                case ixgbe_mac_X550:
      119 +                case ixgbe_mac_X550EM_x:
 117  120                          ixgbe_ks->qbtc[i].value.ui64 +=
 118  121                              IXGBE_READ_REG(hw, IXGBE_QBTC_L(i));
 119  122                          ixgbe_ks->qbtc[i].value.ui64 +=
 120  123                              ((uint64_t)((IXGBE_READ_REG(hw,
 121  124                              IXGBE_QBTC_H(i))) & 0xF) << 32);
 122  125                          break;
 123  126  
 124  127                  default:
 125  128                          break;
 126  129                  }
↓ open down ↓ 34 lines elided ↑ open up ↑
 161  164          ixgbe_ks->rlec.value.ui64 += IXGBE_READ_REG(hw, IXGBE_RLEC);
 162  165          ixgbe_ks->lxontxc.value.ui64 += IXGBE_READ_REG(hw, IXGBE_LXONTXC);
 163  166          switch (hw->mac.type) {
 164  167          case ixgbe_mac_82598EB:
 165  168                  ixgbe_ks->lxonrxc.value.ui64 += IXGBE_READ_REG(hw,
 166  169                      IXGBE_LXONRXC);
 167  170                  break;
 168  171  
 169  172          case ixgbe_mac_82599EB:
 170  173          case ixgbe_mac_X540:
      174 +        case ixgbe_mac_X550:
      175 +        case ixgbe_mac_X550EM_x:
 171  176                  ixgbe_ks->lxonrxc.value.ui64 += IXGBE_READ_REG(hw,
 172  177                      IXGBE_LXONRXCNT);
 173  178                  break;
 174  179  
 175  180          default:
 176  181                  break;
 177  182          }
 178  183          ixgbe_ks->lxofftxc.value.ui64 += IXGBE_READ_REG(hw, IXGBE_LXOFFTXC);
 179  184          switch (hw->mac.type) {
 180  185          case ixgbe_mac_82598EB:
 181  186                  ixgbe_ks->lxoffrxc.value.ui64 += IXGBE_READ_REG(hw,
 182  187                      IXGBE_LXOFFRXC);
 183  188                  break;
 184  189  
 185  190          case ixgbe_mac_82599EB:
 186  191          case ixgbe_mac_X540:
      192 +        case ixgbe_mac_X550:
      193 +        case ixgbe_mac_X550EM_x:
 187  194                  ixgbe_ks->lxoffrxc.value.ui64 += IXGBE_READ_REG(hw,
 188  195                      IXGBE_LXOFFRXCNT);
 189  196                  break;
 190  197  
 191  198          default:
 192  199                  break;
 193  200          }
 194  201          ixgbe_ks->ruc.value.ui64 += IXGBE_READ_REG(hw, IXGBE_RUC);
 195  202          ixgbe_ks->rfc.value.ui64 += IXGBE_READ_REG(hw, IXGBE_RFC);
 196  203          ixgbe_ks->roc.value.ui64 += IXGBE_READ_REG(hw, IXGBE_ROC);
↓ open down ↓ 357 lines elided ↑ open up ↑
 554  561                  ixgbe_ks->tot.value.ui64 = 0;
 555  562                  for (i = 0; i < 16; i++) {
 556  563                          switch (hw->mac.type) {
 557  564                          case ixgbe_mac_82598EB:
 558  565                                  ixgbe_ks->qbtc[i].value.ui64 +=
 559  566                                      IXGBE_READ_REG(hw, IXGBE_QBTC(i));
 560  567                                  break;
 561  568  
 562  569                          case ixgbe_mac_82599EB:
 563  570                          case ixgbe_mac_X540:
      571 +                        case ixgbe_mac_X550:
      572 +                        case ixgbe_mac_X550EM_x:
 564  573                                  ixgbe_ks->qbtc[i].value.ui64 +=
 565  574                                      IXGBE_READ_REG(hw, IXGBE_QBTC_L(i));
 566  575                                  ixgbe_ks->qbtc[i].value.ui64 +=
 567  576                                      ((uint64_t)((IXGBE_READ_REG(hw,
 568  577                                      IXGBE_QBTC_H(i))) & 0xF) << 32);
 569  578                                  break;
 570  579  
 571  580                          default:
 572  581                                  break;
 573  582                          }
↓ open down ↓ 259 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX