mbox series

[net-next,0/9] dpaa2-switch: add mirroring support

Message ID 20210729171901.3211729-1-ciorneiioana@gmail.com (mailing list archive)
Headers show
Series dpaa2-switch: add mirroring support | expand

Message

Ioana Ciornei July 29, 2021, 5:18 p.m. UTC
From: Ioana Ciornei <ioana.ciornei@nxp.com>

This patch set adds per port and per VLAN mirroring in dpaa2-switch.

The first 4 patches are just cosmetic changes. We renamed the
dpaa2_switch_acl_tbl structure into dpaa2_switch_filter_block so that we
can reuse it for filters that do not use the ACL table and reorganized
the addition of trap, redirect and drop filters into a separate
function. All this just to make for a more streamlined addition of the
support for mirroring.

The next 4 patches are actually adding the advertised support. Mirroring
rules can be added in shared blocks, the driver will replicate the same
configuration on all the switch ports part of the same block.

The last patch documents the feature, presents its behavior and
limitations and gives a couple of examples.

Ioana Ciornei (9):
  dpaa2-switch: rename dpaa2_switch_tc_parse_action to specify the ACL
  dpaa2-switch: rename dpaa2_switch_acl_tbl into filter_block
  dpaa2-switch: reorganize dpaa2_switch_cls_flower_replace
  dpaa2-switch: reorganize dpaa2_switch_cls_matchall_replace
  dpaa2-switch: add API for setting up mirroring
  dpaa2-switch: add support for port mirroring
  dpaa2-switch: add VLAN based mirroring
  dpaa2-switch: offload shared block mirror filters when binding to a
    port
  docs: networking: dpaa2: document mirroring support on the switch

 .../freescale/dpaa2/switch-driver.rst         |  43 ++
 .../freescale/dpaa2/dpaa2-switch-flower.c     | 530 +++++++++++++++---
 .../ethernet/freescale/dpaa2/dpaa2-switch.c   | 149 ++---
 .../ethernet/freescale/dpaa2/dpaa2-switch.h   |  44 +-
 .../net/ethernet/freescale/dpaa2/dpsw-cmd.h   |  19 +
 drivers/net/ethernet/freescale/dpaa2/dpsw.c   |  80 +++
 drivers/net/ethernet/freescale/dpaa2/dpsw.h   |  31 +
 7 files changed, 747 insertions(+), 149 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org July 29, 2021, 8:40 p.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (refs/heads/master):

On Thu, 29 Jul 2021 20:18:52 +0300 you wrote:
> From: Ioana Ciornei <ioana.ciornei@nxp.com>
> 
> This patch set adds per port and per VLAN mirroring in dpaa2-switch.
> 
> The first 4 patches are just cosmetic changes. We renamed the
> dpaa2_switch_acl_tbl structure into dpaa2_switch_filter_block so that we
> can reuse it for filters that do not use the ACL table and reorganized
> the addition of trap, redirect and drop filters into a separate
> function. All this just to make for a more streamlined addition of the
> support for mirroring.
> 
> [...]

Here is the summary with links:
  - [net-next,1/9] dpaa2-switch: rename dpaa2_switch_tc_parse_action to specify the ACL
    https://git.kernel.org/netdev/net-next/c/3b5d8b448602
  - [net-next,2/9] dpaa2-switch: rename dpaa2_switch_acl_tbl into filter_block
    https://git.kernel.org/netdev/net-next/c/adcb7aa335af
  - [net-next,3/9] dpaa2-switch: reorganize dpaa2_switch_cls_flower_replace
    https://git.kernel.org/netdev/net-next/c/c5f6d490c578
  - [net-next,4/9] dpaa2-switch: reorganize dpaa2_switch_cls_matchall_replace
    https://git.kernel.org/netdev/net-next/c/3fa5514a2966
  - [net-next,5/9] dpaa2-switch: add API for setting up mirroring
    https://git.kernel.org/netdev/net-next/c/cbc2a8893b59
  - [net-next,6/9] dpaa2-switch: add support for port mirroring
    https://git.kernel.org/netdev/net-next/c/e0ead825a1f1
  - [net-next,7/9] dpaa2-switch: add VLAN based mirroring
    https://git.kernel.org/netdev/net-next/c/0f3faece5808
  - [net-next,8/9] dpaa2-switch: offload shared block mirror filters when binding to a port
    https://git.kernel.org/netdev/net-next/c/7a91f9078d4f
  - [net-next,9/9] docs: networking: dpaa2: document mirroring support on the switch
    https://git.kernel.org/netdev/net-next/c/d1626a1c273d

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html