1. 22 Sep, 2018 16 commits
  2. 21 Sep, 2018 20 commits
  3. 20 Sep, 2018 4 commits
    • Corentin Labbe's avatar
      net-next: mscc: remove unused ocelot_dev_gmii.h · 5678cb3c
      Corentin Labbe authored
      The header ocelot_dev_gmii.h is unused since the inclusion of the driver.
      It is unused, lets just remove it.
      Signed-off-by: default avatarCorentin Labbe <clabbe@baylibre.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5678cb3c
    • David S. Miller's avatar
      Merge branch 'mlxsw-Further-MC-awareness-configuration' · cab9572a
      David S. Miller authored
      Ido Schimmel says:
      
      ====================
      mlxsw: Further MC-awareness configuration
      
      Petr says:
      
      Due to an issue in Spectrum chips, when unicast traffic shares the same
      queue as BUM traffic, and there is congestion, the BUM traffic is
      admitted to the queue anyway, thus pushing out all UC traffic. In order
      to give unicast traffic precedence over BUM traffic, multicast-aware
      mode is now configured on all ports. Under MC-aware mode, egress TCs
      8..15 are used for BUM traffic, which has its own dedicated pool.
      
      This patch set improves the way that the MC pool and the higher-order
      TCs are integrated into the system.
      
      In patch #1, shaper at the higher TCs is configured to the same value
      that it has by default. It's better to have the corresponding artifact
      in the code explicitly.
      
      The 8 following patches gradually extend the devlink handling in mlxsw
      to support the extra TCs and the new MC pool.
      
      Patch #2 changes the way that pools are indexed in mlxsw. Instead of
      using (FW index, direction) tuple to identify the pool and the
      associated cache, mlxsw now uses devlink index. This change is necessary
      because the new pool 15 is not contiguously adjacent to the
      currently-used pools 0..3, and because it's only relevant on egress.
      Using devlink index relaxes the requirement for symmetry and adjacency
      imposed by using FW indexing.
      
      In patch #3, the assumption that number of ingress TCs matches that of
      egress TCs is relaxed to allow exposition of egress TCs 8..15.
      
      In patches #4, #5 and #6, support for infinite quotas is introduced.
      Infinite quotas are reported as taking all the memory in the system, but
      actually use a mechanism where the infinity is configured explicitly.
      
      In patches #7 and #8, support for configuring static pool sizes in
      introduced. Statically-sized pools have been supported for a while now,
      but during initialization, all pools have dynamic size. The patches
      allow there to be a mix of by-default static and dynamic pools.
      
      In patches #9 and #10, pool 15 resp. per-priority MC quotas are
      explicitly configured to be in sync with the current recommendation for
      handling BUM traffic in Spectrum chips.
      
      In the following 3 patches, an mlxsw-specific selftest is added to test
      the MC-awareness configuration.
      
      First in patches #11 and #12, lib.sh is extended with functions to
      collect ethtool stats, and to manage port MTU.
      
      Then in patch #13 the selftest itself is added.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      cab9572a
    • Petr Machata's avatar
      selftests: mlxsw: Add a test for UC behavior under MC flood · b5638d46
      Petr Machata authored
      A so-called "MC-aware" mode has recently been enabled in mlxsw. In
      MC-aware mode, BUM traffic is handled in a special way so that when a
      switch is flooded with BUM, UC performance isn't unduly impacted.
      Without enablement of this mode, a stream of BUM traffic can cause
      sustained UC throughput drop in excess of 99 %.
      
      Add a test for this behavior. Compare how much UC throughput degrades as
      a stream of broadcast frames floods the switch. A minimal degradation is
      tolerated to cover for glitches in traffic injection performance.
      Signed-off-by: default avatarPetr Machata <petrm@mellanox.com>
      Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
      Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      b5638d46
    • Petr Machata's avatar
      selftests: forwarding: lib: Add mtu_set(), mtu_restore() · a381ed12
      Petr Machata authored
      Some selftests need to tweak MTU of an interface, and naturally should
      at teardown restore the MTU back to the original value. Add two
      functions to facilitate this MTU handling: mtu_set() to change MTU
      value, and mtu_reset() to change it back to what it was before.
      Signed-off-by: default avatarPetr Machata <petrm@mellanox.com>
      Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
      Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a381ed12