1. 26 May, 2017 38 commits
  2. 25 May, 2017 2 commits
    • David S. Miller's avatar
      Merge branch 'mlxsw-Support-firmware-flash' · c067598a
      David S. Miller authored
      Jiri Pirko says:
      
      ====================
      mlxsw: Support firmware flash
      
      Add support for device firmware flash on mlxsw spectrum. The firmware files
      are expected to be in the Mellanox Firmware Archive version 2 (MFA2)
      format.
      
      The firmware flash is triggered on driver initialization time if the device
      firmware version does not meet the minimum firmware version supported by
      the driver.
      
      Currently, to activate the newly flashed firmware, the user needs to
      reboot his system.
      
      The first patch introduces the mlxfw module, which implements common logic
      needed for the firmware flash process on Mellanox products, such as the
      MFA2 format parsing and the firmware flash state machine logic. As the
      module implements common logic which will be needed by various different
      Mellanox drivers, it defines a set of callbacks needed to interact with the
      specific device.
      
      Patches 1-5 implement the needed mlxfw callbacks in the mlxsw spectrum
      driver.
      
      Patches 6 and 7 add boot-time firmware upgrade on the mlxsw spectrum
      driver.
      
      Patch 8 adds a fix needed for new firmware versions.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c067598a
    • Ido Schimmel's avatar
      mlxsw: spectrum_router: Adjust RIF configuration for new firmware versions · 03ea01e9
      Ido Schimmel authored
      In new firmware versions, when configuring a {Port, VID} as a router
      interface, the driver is responsible for enabling the STP filter and
      disabling learning.  Otherwise, packets are discarded.
      
      This change doesn't break existing firmware versions, but is required
      for newer firmware versions.
      Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      03ea01e9