Print this page
3014 Intel X540 Support

@@ -23,10 +23,11 @@
  * Copyright(c) 2007-2010 Intel Corporation. All rights reserved.
  */
 
 /*
  * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright 2012 Nexenta Systems, Inc. All rights reserved.
  */
 
 #include "ixgbe_sw.h"
 
 /*

@@ -110,10 +111,11 @@
                         ixgbe_ks->qbtc[i].value.ui64 +=
                             IXGBE_READ_REG(hw, IXGBE_QBTC(i));
                         break;
 
                 case ixgbe_mac_82599EB:
+                case ixgbe_mac_X540:
                         ixgbe_ks->qbtc[i].value.ui64 +=
                             IXGBE_READ_REG(hw, IXGBE_QBTC_L(i));
                         ixgbe_ks->qbtc[i].value.ui64 +=
                             ((uint64_t)((IXGBE_READ_REG(hw,
                             IXGBE_QBTC_H(i))) & 0xF) << 32);

@@ -163,10 +165,11 @@
                 ixgbe_ks->lxonrxc.value.ui64 += IXGBE_READ_REG(hw,
                     IXGBE_LXONRXC);
                 break;
 
         case ixgbe_mac_82599EB:
+        case ixgbe_mac_X540:
                 ixgbe_ks->lxonrxc.value.ui64 += IXGBE_READ_REG(hw,
                     IXGBE_LXONRXCNT);
                 break;
 
         default:

@@ -178,10 +181,11 @@
                 ixgbe_ks->lxoffrxc.value.ui64 += IXGBE_READ_REG(hw,
                     IXGBE_LXOFFRXC);
                 break;
 
         case ixgbe_mac_82599EB:
+        case ixgbe_mac_X540:
                 ixgbe_ks->lxoffrxc.value.ui64 += IXGBE_READ_REG(hw,
                     IXGBE_LXOFFRXCNT);
                 break;
 
         default:

@@ -554,10 +558,11 @@
                                 ixgbe_ks->qbtc[i].value.ui64 +=
                                     IXGBE_READ_REG(hw, IXGBE_QBTC(i));
                                 break;
 
                         case ixgbe_mac_82599EB:
+                        case ixgbe_mac_X540:
                                 ixgbe_ks->qbtc[i].value.ui64 +=
                                     IXGBE_READ_REG(hw, IXGBE_QBTC_L(i));
                                 ixgbe_ks->qbtc[i].value.ui64 +=
                                     ((uint64_t)((IXGBE_READ_REG(hw,
                                     IXGBE_QBTC_H(i))) & 0xF) << 32);