1. 23 May, 2020 1 commit
    • Andre Guedes's avatar
      igc: Refactor igc_ethtool_add_nfc_rule() · 16fdc16c
      Andre Guedes authored
      Current implementation of igc_ethtool_add_nfc_rule() is quite long and a
      bit convoluted so this patch does a code refactoring to improve the
      code.
      
      Code related to NFC rule object initialization is refactored out to the
      local helper function igc_ethtool_init_nfc_rule(). Likewise, code
      related to NFC rule validation is refactored out to another local
      helper, igc_ethtool_is_nfc_rule_valid().
      
      RX_CLS_FLOW_DISC check is removed since it is redundant. The macro is
      defined as the max value fsp->ring_cookie can have, so checking if
      fsp->ring_cookie >= adapter->num_rx_queues is already sufficient.
      
      Finally, some log messages are improved or added, and obvious comments
      are removed.
      Signed-off-by: default avatarAndre Guedes <andre.guedes@intel.com>
      Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
      Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
      16fdc16c
  2. 22 May, 2020 39 commits