Print this page
6064 ixgbe needs X550 support

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/ixgbe/ixgbe_gld.c
          +++ new/usr/src/uts/common/io/ixgbe/ixgbe_gld.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   * Bring the device out of the reset/quiesced state that it
  35   36   * was in when the interface was registered.
  36   37   */
  37   38  int
  38   39  ixgbe_m_start(void *arg)
↓ open down ↓ 665 lines elided ↑ open up ↑
 704  705                  }
 705  706                  (void) ddi_strtol(pr_val, (char **)NULL, 0, &result);
 706  707  
 707  708                  if (result < ixgbe->capab->min_intr_throttle ||
 708  709                      result > ixgbe->capab->max_intr_throttle)
 709  710                          err = EINVAL;
 710  711                  else {
 711  712                          ixgbe->intr_throttling[0] = (uint32_t)result;
 712  713  
 713  714                          /*
 714      -                         * 82599 and X540 require the interrupt throttling
 715      -                         * rate is a multiple of 8. This is enforced by the
 716      -                         * register definiton.
      715 +                         * 82599, X540 and X550 require the interrupt
      716 +                         * throttling rate is a multiple of 8. This is
      717 +                         * enforced by the register definiton.
 717  718                           */
 718  719                          if (hw->mac.type == ixgbe_mac_82599EB ||
 719      -                            hw->mac.type == ixgbe_mac_X540) {
      720 +                            hw->mac.type == ixgbe_mac_X540 ||
      721 +                            hw->mac.type == ixgbe_mac_X550 ||
      722 +                            hw->mac.type == ixgbe_mac_X550EM_x) {
 720  723                                  ixgbe->intr_throttling[0] =
 721  724                                      ixgbe->intr_throttling[0] & 0xFF8;
 722  725                          }
 723  726  
 724  727                          for (i = 0; i < MAX_INTR_VECTOR; i++)
 725  728                                  ixgbe->intr_throttling[i] =
 726  729                                      ixgbe->intr_throttling[0];
 727  730  
 728  731                          /* Set interrupt throttling rate */
 729  732                          for (i = 0; i < ixgbe->intr_cnt; i++)
↓ open down ↓ 66 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX