1. 25 Apr, 2024 39 commits
  2. 24 Apr, 2024 1 commit
    • David S. Miller's avatar
      Merge branch 'sparx5-port-mirroring' · 9dd15d50
      David S. Miller authored
      Daniel Machon says:
      
      ====================
      net: sparx5: add support for port mirroring
      
      This series adds support for port mirroring, and port mirroring stats,
      through tc matchall action FLOW_ACTION_MIRRED.
      
      The hardware has three independent mirroring probes. Each probe can be
      configured with a separate set of filtering conditions that must be
      fulfilled before traffic is mirrored.
      
      A mirror probe can have up to 64 source ports and a single monitor port.
      The direction of a mirror probe determines if rx or tx traffic is
      mirrored from the source port to the monitor port.
      
      To: David S. Miller <davem@davemloft.net>
      To: Eric Dumazet <edumazet@google.com>
      To: Jakub Kicinski <kuba@kernel.org>
      To: Paolo Abeni <pabeni@redhat.com>
      To: Lars Povlsen <lars.povlsen@microchip.com>
      To: Steen Hegelund <Steen.Hegelund@microchip.com>
      To: UNGLinuxDriver@microchip.com
      To: Russell King <linux@armlinux.org.uk>
      Cc: netdev@vger.kernel.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-kernel@vger.kernel.org
      Cc: Horatiu Vultur <horatiu.vultur@microchip.com>
      Cc: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
      Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Cc: Vladimir Oltean <vladimir.oltean@nxp.com>
      Cc: Yue Haibing <yuehaibing@huawei.com>
      
      ---
      Changes in v3:
      - Ditch do_div() (patch #3) to fix warning on hexagon arch, reported by intel bot
      - Link to v2: https://lore.kernel.org/r/20240418-port-mirroring-v2-0-20642868b386@microchip.com
      
      Changes in v2:
      - Fix clang build warning about uninitialized variable 'err'
      - Link to v1: https://lore.kernel.org/r/20240418-port-mirroring-v1-0-e05c35007c55@microchip.com
      ====================
      Signed-off-by: default avatarDaniel Machon <daniel.machon@microchip.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      9dd15d50