1. 26 4月, 2021 1 次提交
  2. 29 7月, 2020 1 次提交
  3. 02 7月, 2020 2 次提交
  4. 31 5月, 2020 1 次提交
  5. 23 5月, 2020 1 次提交
  6. 22 5月, 2020 1 次提交
  7. 11 3月, 2020 1 次提交
  8. 16 2月, 2020 1 次提交
    • B
      ice: replace "fallthrough" comments with fallthrough reserved word · 4e83fc93
      Bruce Allan 提交于
      "fallthrough" comments are used in switch case statements to explicitly
      indicate the code is intended to fall through to the following statement.
      Different variants of "fallthough" are acceptable, e.g. "fall through",
      "fallthrough", "Fall-through".  The GCC compiler has an optional warning
      (-Wimplicit-fallthrough[=n]) to warn when such a comment is not present;
      the default version of which is enabled when compiling the Linux kernel.
      
      There have been recent discussions in kernel mailing lists regarding
      replacing non-standardized "fallthrough" comments with the pseudo-reserved
      word 'fallthrough' which will be defined as __attribute__ ((fallthrough))
      for versions of gcc that support it (i.e. gcc 7 and newer) or as a nop
      for versions that do not.  Replace "fallthrough" comments with fallthrough
      reserved word.
      Signed-off-by: NBruce Allan <bruce.w.allan@intel.com>
      Signed-off-by: NTony Nguyen <anthony.l.nguyen@intel.com>
      Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      4e83fc93
  9. 25 1月, 2020 1 次提交
  10. 23 11月, 2019 1 次提交
  11. 09 11月, 2019 1 次提交
  12. 04 9月, 2019 1 次提交
  13. 24 8月, 2019 1 次提交
  14. 31 5月, 2019 1 次提交
  15. 24 5月, 2019 1 次提交
  16. 05 5月, 2019 1 次提交
  17. 02 5月, 2019 1 次提交
  18. 18 4月, 2019 1 次提交
  19. 22 3月, 2019 6 次提交
  20. 26 2月, 2019 2 次提交
    • J
      ice: fix ice_remove_rule_internal vsi_list handling · f9264dd6
      Jacob Keller 提交于
      When adding multiple VLANs to the same VSI, the ice_add_vlan code will
      share the VSI list, so as not to create multiple unnecessary VSI lists.
      
      Consider the following flow
      
        ice_add_vlan(hw, <VSI 0 VID 7, VSI 0 VID 8, VSI 0 VID 9>)
      
      Where we add three VLAN filters for VIDs 7, 8, and 9, all for VSI 0.
      
      The ice_add_vlan will create a single vsi_list and share it among all
      the filters.
      
      Later, if we try to remove a VLAN,
      
        ice_remove_vlan(hw, <VSI 0 VID 7>)
      
      Then the removal code will update the vsi_list and remove VSI 0 from it.
      But, since the vsi_list is shared, this breaks the list for the other
      users who reference it. We actually even free the VSI list memory, and
      may result in segmentation faults.
      
      This is due to the way that VLAN rule share VSI lists with reference
      counts, and is caused because we call ice_rem_update_vsi_list even when
      the ref_cnt is greater than one.
      
      To fix this, handle the case where ref_cnt is greater than one
      separately. In this case, we need to remove the associated rule without
      modifying the vsi_list, since it is currently being referenced by
      another rule. Instead, we just need to decrement the VSI list ref_cnt.
      
      The case for handling sharing of VSI lists with multiple VSIs is not
      currently supported by this code. No such rules will be created today,
      and this code will require changes if/when such code is added.
      Signed-off-by: NJacob Keller <jacob.e.keller@intel.com>
      Reviewed-by: NBruce Allan <bruce.w.allan@intel.com>
      Signed-off-by: NAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>
      Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      f9264dd6
    • B
      ice: sizeof(<type>) should be avoided · c6dfd690
      Bruce Allan 提交于
      With sizeof(), it is preferable to use the variable of type <type> instead
      of sizeof(<type>).
      
      There are multiple places where a temporary variable is used to hold a
      'size' value which is then used for a subsequent alloc/memset. Get rid
      of the temporary variable by calculating size as part of the alloc/memset
      statement.
      
      Also remove unnecessary type-cast.
      Signed-off-by: NBruce Allan <bruce.w.allan@intel.com>
      Signed-off-by: NAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>
      Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      c6dfd690
  21. 21 11月, 2018 5 次提交
  22. 07 11月, 2018 1 次提交
  23. 03 10月, 2018 4 次提交
  24. 02 10月, 2018 3 次提交