1. 09 May, 2022 36 commits
  2. 08 May, 2022 4 commits
    • David S. Miller's avatar
      Merge tag 'batadv-next-pullrequest-20220508' of git://git.open-mesh.org/linux-merge · c908565e
      David S. Miller authored
      This cleanup patchset includes the following patches:
      
       - bump version strings, by Simon Wunderlich
      
       - remove unnecessary type castings, by Yu Zhe
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c908565e
    • David S. Miller's avatar
      Merge branch 'mlxsw-dedicated-router-notification-block' · eb600204
      David S. Miller authored
      Ido Schimmel says:
      
      ====================
      mlxsw: A dedicated notifier block for router code
      
      Petr says:
      
      Currently all netdevice events are handled in the centralized notifier
      handler maintained by spectrum.c. Since a number of events are involving
      router code, spectrum.c needs to dispatch them to spectrum_router.c. The
      spectrum module therefore needs to know more about the router code than it
      should have, and there is are several API points through which the two
      modules communicate.
      
      In this patchset, move bulk of the router-related event handling to the
      router code. Some of the knowledge has to stay: spectrum.c cannot veto
      events that the router supports, and vice versa. But beyond that, the two
      can ignore each other's details, which leads to more focused and simpler
      code.
      
      As a side effect, this fixes L3 HW stats support on tunnel netdevices.
      
      The patch set progresses as follows:
      
      - In patch #1, change spectrum code to not bounce L3 enslavement, which the
        router code supports.
      
      - In patch #2, add a new do-nothing notifier block to the router code.
      
      - In patches #3-#6, move router-specific event handling to the router
        module. In patch #7, clean up a comment.
      
      - In patch #8, use the advantage that all router event handling is in the
        router code and clean up taking router lock.
      
      - mlxsw supports L3 HW stats on tunnels as of this patchset. Patches #9 and
        #10 therefore add a selftest for L3 HW stats support on tunnels.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      eb600204
    • Petr Machata's avatar
      selftests: forwarding: Add a tunnel-based test for L3 HW stats · 813f97a2
      Petr Machata authored
      Add a selftest that uses an IPIP topology and tests that L3 HW stats
      reflect the traffic in the tunnel.
      Signed-off-by: default avatarPetr Machata <petrm@nvidia.com>
      Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      813f97a2
    • Petr Machata's avatar
      selftests: lib: Add a generic helper for obtaining HW stats · 32fb67a3
      Petr Machata authored
      The function get_l3_stats() from the test hw_stats_l3.sh will be useful for
      any test that wishes to work with L3 stats. Furthermore, it is easy to
      generalize to other HW stats suites (for when such are added). Therefore,
      move the code to lib.sh, rewrite it to have the same interface as the other
      stats-collecting functions, and generalize to take the name of the HW stats
      suite to collect as an argument.
      Signed-off-by: default avatarPetr Machata <petrm@nvidia.com>
      Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      32fb67a3