Print this page
XXXX Intel X540 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 ↓ 702 lines elided ↑ open up ↑
 703  703                  }
 704  704                  (void) ddi_strtol(pr_val, (char **)NULL, 0, &result);
 705  705  
 706  706                  if (result < ixgbe->capab->min_intr_throttle ||
 707  707                      result > ixgbe->capab->max_intr_throttle)
 708  708                          err = EINVAL;
 709  709                  else {
 710  710                          ixgbe->intr_throttling[0] = (uint32_t)result;
 711  711  
 712  712                          /*
 713      -                         * 82599 requires the interupt throttling rate is
 714      -                         * a multiple of 8. This is enforced by the register
 715      -                         * definiton.
      713 +                         * 82599 and X540 require the interupt throttling
      714 +                         * rate is a multiple of 8. This is enforced by the
      715 +                         * register definiton.
 716  716                           */
 717      -                        if (hw->mac.type == ixgbe_mac_82599EB)
      717 +                        if (hw->mac.type >= ixgbe_mac_82599EB)
 718  718                                  ixgbe->intr_throttling[0] =
 719  719                                      ixgbe->intr_throttling[0] & 0xFF8;
 720  720  
 721  721                          for (i = 0; i < MAX_INTR_VECTOR; i++)
 722  722                                  ixgbe->intr_throttling[i] =
 723  723                                      ixgbe->intr_throttling[0];
 724  724  
 725  725                          /* Set interrupt throttling rate */
 726  726                          for (i = 0; i < ixgbe->intr_cnt; i++)
 727  727                                  IXGBE_WRITE_REG(hw, IXGBE_EITR(i),
↓ open down ↓ 65 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX