1. 09 2月, 2021 1 次提交
    • D
      ice: implement new LLDP filter command · 34295a36
      Dave Ertman 提交于
      There is an issue with some NVMs where an already existent LLDP
      filter is blocking the creation of a filter to allow LLDP packets
      to be redirected to the default VSI for the interface.  This is
      blocking all LLDP functionality based in the kernel when the FW
      LLDP agent is disabled (e.g. software based DCBx).
      
      Implement the new AQ command to allow adding VSI destinations to
      existent filters on NVM versions that support the new command.
      
      The new lldp_fltr_ctrl AQ command supports Rx filters only, so the
      code flow for adding filters to disable Tx of control frames will
      remain intact.
      Signed-off-by: NDave Ertman <david.m.ertman@intel.com>
      Tested-by: NTony Brelinski <tonyx.brelinski@intel.com>
      Signed-off-by: NTony Nguyen <anthony.l.nguyen@intel.com>
      34295a36
  2. 06 2月, 2021 1 次提交
    • J
      ice: display stored netlist versions via devlink info · e120a9ab
      Jacob Keller 提交于
      Add a function to read the inactive netlist bank for version
      information. To support this, refactor how we read the netlist version
      data. Instead of using the firmware AQ interface with a module ID, read
      from the flash as a flat NVM, using ice_read_flash_module.
      
      This change requires a slight adjustment to the offset values used, as
      reading from the flat NVM includes the type field (which was stripped by
      firmware previously). Cleanup the macro names and move them to
      ice_type.h. For clarity in how we calculate the offsets and so that
      programmers can easily map the offset value to the data sheet, use
      a wrapper macro to account for the offset adjustments.
      
      Use the newly added ice_get_inactive_netlist_ver function to extract the
      version data from the pending netlist module update. Add the stored
      variants of "fw.netlist", and "fw.netlist.build" to the info version map
      array.
      
      With this change, we now report the "fw.netlist" and "fw.netlist.build"
      versions into the stored section of the devlink info report. As with the
      main NVM module versions, if there is no pending update, we report the
      currently active values as stored.
      Signed-off-by: NJacob Keller <jacob.e.keller@intel.com>
      Tested-by: NTony Brelinski <tonyx.brelinski@intel.com>
      Signed-off-by: NTony Nguyen <anthony.l.nguyen@intel.com>
      e120a9ab
  3. 26 9月, 2020 1 次提交
    • J
      intel-ethernet: clean up W=1 warnings in kdoc · b50f7bca
      Jesse Brandeburg 提交于
      This takes care of all of the trivial W=1 fixes in the Intel
      Ethernet drivers, which allows developers and maintainers to
      build more of the networking tree with more complete warning
      checks.
      
      There are three classes of kdoc warnings fixed:
       - cannot understand function prototype: 'x'
       - Excess function parameter 'x' description in 'y'
       - Function parameter or member 'x' not described in 'y'
      
      All of the changes were trivial comment updates on
      function headers.
      
      Inspired by Lee Jones' series of wireless work to do the same.
      Compile tested only, and passes simple test of
      $ git ls-files *.[ch] | egrep drivers/net/ethernet/intel | \
        xargs scripts/kernel-doc -none
      Signed-off-by: NJesse Brandeburg <jesse.brandeburg@intel.com>
      Tested-by: NAaron Brown <aaron.f.brown@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b50f7bca
  4. 01 8月, 2020 1 次提交
  5. 29 7月, 2020 3 次提交
  6. 24 7月, 2020 6 次提交
  7. 02 7月, 2020 2 次提交
  8. 31 5月, 2020 2 次提交
  9. 28 5月, 2020 1 次提交
  10. 23 5月, 2020 3 次提交
  11. 22 5月, 2020 2 次提交
  12. 21 3月, 2020 2 次提交
    • J
      ice: discover and store size of available flash · 81f07491
      Jacob Keller 提交于
      When reading from the NVM using a flat address, it is useful to know the
      upper bound on the size of the flash contents. This value is not stored
      within the NVM.
      
      We can determine the size by performing a bisection between upper and
      lower bounds. It is known that the size cannot exceed 16 MB (offset of
      0xFFFFFF).
      
      Use a while loop to bisect the upper and lower bounds by reading one
      byte at a time. On a failed read, lower the maximum bound. On
      a successful read, increase the lower bound.
      
      Save this as the flash_size in the ice_nvm_info structure that contains
      data related to the NVM.
      
      The size will be used in a future patch for implementing full NVM read
      via ethtool's GEEPROM command.
      
      The maximum possible size for the flash is bounded by the size limit for
      the NVM AdminQ commands. Add a new macro, ICE_AQC_NVM_MAX_OFFSET, which
      can be used to represent this upper bound.
      Signed-off-by: NJacob Keller <jacob.e.keller@intel.com>
      Reviewed-by: NJesse Brandeburg <jesse.brandeburg@intel.com>
      Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      81f07491
    • J
      ice: create function to read a section of the NVM and Shadow RAM · e9450990
      Jacob Keller 提交于
      The NVM contents are read via firmware by using the ice_aq_read_nvm
      function. This function has a couple of limits:
      
      1) The AdminQ commands can only take buffers sized up to 4Kb. Thus, any
         larger read must be split into multiple reads.
      2) when reading from the Shadow RAM, reads must not cross sector
         boundaries. The sectors are also 4Kb in size.
      
      Implement the ice_read_flat_nvm function to read portions of the NVM by
      flat offset. That is, to read using offsets from the start of the NVM
      rather than from a specific module.
      
      This function will be able to read both from the NVM and from the Shadow
      RAM. For simplicity NVM reads will always be broken up to not cross 4Kb
      page boundaries, even though this is not required unless reading from
      the Shadow RAM.
      
      Use this new function as the implementation of ice_read_sr_word_aq.
      
      The ice_read_sr_buf_aq function is not modified here. This is because
      a following change will remove the only caller of that function in favor
      of directly using ice_read_flat_nvm. Thus, there is little benefit to
      changing it now only to remove it momentarily. At the same time, the
      ice_read_sr_aq function will also be removed.
      Signed-off-by: NJacob Keller <jacob.e.keller@intel.com>
      Reviewed-by: NJesse Brandeburg <jesse.brandeburg@intel.com>
      Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      e9450990
  13. 16 2月, 2020 1 次提交
  14. 13 2月, 2020 1 次提交
  15. 26 1月, 2020 2 次提交
  16. 25 1月, 2020 1 次提交
  17. 09 11月, 2019 1 次提交
  18. 07 11月, 2019 2 次提交
  19. 13 9月, 2019 2 次提交
  20. 04 9月, 2019 2 次提交
  21. 24 8月, 2019 1 次提交
  22. 31 5月, 2019 2 次提交