1. 31 8月, 2019 5 次提交
  2. 30 8月, 2019 31 次提交
  3. 29 8月, 2019 4 次提交
    • D
      Merge branch 'mlxsw-Various-updates' · 198836fd
      David S. Miller 提交于
      Ido Schimmel says:
      
      ====================
      mlxsw: Various updates
      
      Patch #1 from Amit removes 56G speed support. The reasons for this are
      detailed in the commit message.
      
      Patch #2 from Shalom ensures that the hardware does not auto negotiate
      the number of used lanes. For example, if a four lane port supports 100G
      over both two and four lanes, it will not advertise the two lane link
      mode.
      
      Patch #3 bumps the firmware version supported by the driver.
      
      Patch #4 from Petr adds ethtool counters to help debug the internal PTP
      implementation in mlxsw. I copied Richard on this patch in case he has
      comments.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      198836fd
    • P
      mlxsw: spectrum_ptp: Add counters for GC events · dc4f3eb0
      Petr Machata 提交于
      On Spectrum-1, timestamped PTP packets and the corresponding timestamps need to
      be kept in caches until both are available, at which point they are matched up
      and packets forwarded as appropriate. However, not all packets will ever see
      their timestamp, and not all timestamps will ever see their packet. It is
      necessary to dispose of such abandoned entries, so a garbage collector was
      introduced in commit 5d23e415 ("mlxsw: spectrum: PTP: Garbage-collect
      unmatched entries").
      
      If these GC events happen often, it is a sign of a problem. However because this
      whole mechanism is taking place behind the scenes, there is no direct way to
      determine whether garbage collection took place.
      
      Therefore to fix this, on Spectrum-1 only, expose four artificial ethtool
      counters for the GC events: GCd timestamps and packets, in TX and RX directions.
      
      Cc: Richard Cochran <richardcochran@gmail.com>
      Signed-off-by: NPetr Machata <petrm@mellanox.com>
      Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      dc4f3eb0
    • I
      mlxsw: Bump firmware version to 13.2000.1886 · 45bd6341
      Ido Schimmel 提交于
      The new version supports extended error reporting from firmware via a
      new TLV in the EMAD packet. Similar to netlink extended ack.
      
      It also fixes an issue in the PCI code that can result in false AER
      errors under high Tx rate.
      Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      45bd6341
    • S
      mlxsw: spectrum: Prevent auto negotiation on number of lanes · 3f61967f
      Shalom Toledo 提交于
      After 50G-1-lane and 100G-2-lanes link modes were introduced, the driver
      is facing situations in which the hardware auto negotiates not only on
      speed and type, but also on number of lanes.
      
      Prevent auto negotiation on number of lanes by allowing only port speeds
      that can be supported on a given port according to its width.
      Signed-off-by: NShalom Toledo <shalomt@mellanox.com>
      Acked-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3f61967f