mlxsw: Introduce TC Flower offload using TCAM
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest19 patches 1 replyIn review
- v119 patches 13 repliesSuperseded
Changes in v2 from the cover letter
- patch11:
- use __set_bit and __test_and_clear_bit as suggested by DaveM
- patch16:
- Added documentation to the API functions as suggested by Tom Herbert
- patch17:
- use __set_bit and __clear_bit as suggested by DaveM
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/19 | mlxsw: item: Add 8bit item helpersdrivers/ | +77 | 0 replies | |
| 2/19 | mlxsw: item: Add helpers for getting pointer into payload for char buffer itemdrivers/ | +19 | 0 replies | |
| 3/19 | mlxsw: reg: Add Policy-Engine ACL Registerdrivers/ | +45 | 0 replies | |
| 4/19 | mlxsw: reg: Add Policy-Engine ACL Group Table registerdrivers/ | +54 | 0 replies | |
| 5/19 | mlxsw: reg: Add Policy-Engine TCAM Allocation Registerdrivers/ | +106 | 0 replies | |
| 6/19 | mlxsw: reg: Add Policy-Engine TCAM Entry Register Version 2drivers/ | +100 | 0 replies | |
| 7/19 | mlxsw: reg: Add Policy-Engine Port Binding Tabledrivers/ | +63 | 0 replies | |
| 8/19 | mlxsw: reg: Add Policy-Engine Rules Copy Registerdrivers/ | +77 | 0 replies | |
| 9/19 | mlxsw: reg: Add Policy-Engine Policy Based Switching Registerdrivers/ | +31 | 0 replies | |
| 10/19 | mlxsw: reg: Add Policy-Engine Extended Flexible Action Registerdrivers/ | +36 | 0 replies | |
| 11/19 | mlxsw: core: Introduce flexible keys supportdrivers/ drivers/ drivers/ | +714 | 0 replies | |
| 12/19 | mlxsw: core: Introduce flexible actions supportdrivers/ drivers/ drivers/ | +753 | 0 replies | |
| 13/19 | mlxsw: spectrum: Introduce basic set of flexible key blocksdrivers/ | +109 | 0 replies | |
| 14/19 | mlxsw: resources: Add ACL related resourcesdrivers/ | +18 | 0 replies | |
| 15/19 | list: introduce list_for_each_entry_from_reverse helperinclude/ | +13 | 0 replies | |
| 16/19 | lib: Introduce priority array area managerMAINTAINERS include/ lib/ +4 more | +871 | 0 replies | |
| 17/19 | mlxsw: spectrum: Introduce ACL core with simple TCAM implementationdrivers/ drivers/ drivers/ +3 more | +1769 | 0 replies | |
| 18/19 | sched: cls_flower: expose priority to offloading netdeviceinclude/ net/ | +4 | 0 replies | |
| 19/19 | mlxsw: spectrum: Implement TC flower offloaddrivers/ drivers/ drivers/ +1 more | +331 | 0 replies |
Reviews trailers per patch
18 of 19 patches have a Reviewed-by or Acked-by.
| Patch | Ido Schimmel |
|---|---|
| 1/19 | R-b |
| 2/19 | R-b |
| 3/19 | R-b |
| 4/19 | R-b |
| 5/19 | R-b |
| 6/19 | R-b |
| 7/19 | R-b |
| 8/19 | R-b |
| 9/19 | R-b |
| 10/19 | R-b |
| 11/19 | R-b |
| 12/19 | R-b |
| 13/19 | R-b |
| 14/19 | R-b |
| 15/19 | A-b |
| 16/19 | |
| 17/19 | R-b |
| 18/19 | A-b |
| 19/19 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [patch net-next v2 00/19] mlxsw: Introduce TC Flower offload using TCAM
From: Jiri Pirko <[email protected]>
This patchset introduces support for offloading TC cls_flower and actions to Spectrum TCAM-base policy engine.
The patchset contains patches to allow work with flexible keys and actions which are used in Spectrum TCAM.
It also contains in-driver infrastructure for offloading TC rules to TCAM HW. The TCAM management code is simple and limited for now. It is going to be extended as a follow-up work.
The last patch uses the previously introduced infra to allow to implement cls_flower offloading. Initially, only limited set of match-keys and only a drop and forward actions are supported.
As a dependency, this patchset introduces parman - priority array area manager - as a library.
---v1->v2:
- patch11:
- use __set_bit and __test_and_clear_bit as suggested by DaveM
- patch16:
- Added documentation to the API functions as suggested by Tom Herbert
- patch17:
- use __set_bit and __clear_bit as suggested by DaveM
Jiri Pirko (19):
mlxsw: item: Add 8bit item helpers
mlxsw: item: Add helpers for getting pointer into payload for char
buffer item
mlxsw: reg: Add Policy-Engine ACL Register
mlxsw: reg: Add Policy-Engine ACL Group Table register
mlxsw: reg: Add Policy-Engine TCAM Allocation Register
mlxsw: reg: Add Policy-Engine TCAM Entry Register Version 2
mlxsw: reg: Add Policy-Engine Port Binding Table
mlxsw: reg: Add Policy-Engine Rules Copy Register
mlxsw: reg: Add Policy-Engine Policy Based Switching Register
mlxsw: reg: Add Policy-Engine Extended Flexible Action Register
mlxsw: core: Introduce flexible keys support
mlxsw: core: Introduce flexible actions support
mlxsw: spectrum: Introduce basic set of flexible key blocks
mlxsw: resources: Add ACL related resources
list: introduce list_for_each_entry_from_reverse helper
lib: Introduce priority array area manager
mlxsw: spectrum: Introduce ACL core with simple TCAM implementation
sched: cls_flower: expose priority to offloading netdevice
mlxsw: spectrum: Implement TC flower offload
MAINTAINERS | 8 + drivers/net/ethernet/mellanox/mlxsw/Kconfig | 1 + drivers/net/ethernet/mellanox/mlxsw/Makefile | 6 +- .../mellanox/mlxsw/core_acl_flex_actions.c | 685 +++++++++++++ .../mellanox/mlxsw/core_acl_flex_actions.h | 66 ++ .../ethernet/mellanox/mlxsw/core_acl_flex_keys.c | 475 +++++++++ .../ethernet/mellanox/mlxsw/core_acl_flex_keys.h | 238 +++++ drivers/net/ethernet/mellanox/mlxsw/item.h | 98 +- drivers/net/ethernet/mellanox/mlxsw/reg.h | 511 ++++++++- drivers/net/ethernet/mellanox/mlxsw/resources.h | 20 +- drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 32 +- drivers/net/ethernet/mellanox/mlxsw/spectrum.h | 106 +- drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c | 572 +++++++++++ .../mellanox/mlxsw/spectrum_acl_flex_keys.h | 109 ++ .../ethernet/mellanox/mlxsw/spectrum_acl_tcam.c | 1084 ++++++++++++++++++++ .../net/ethernet/mellanox/mlxsw/spectrum_flower.c | 309 ++++++ include/linux/list.h | 13 + include/linux/parman.h | 76 ++ include/net/pkt_cls.h | 1 + lib/Kconfig | 3 + lib/Kconfig.debug | 10 + lib/Makefile | 3 + lib/parman.c | 376 +++++++ lib/test_parman.c | 395 +++++++ net/sched/cls_flower.c | 3 + 25 files changed, 5184 insertions(+), 16 deletions(-) create mode 100644 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c create mode 100644 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.h create mode 100644 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c create mode 100644 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.h create mode 100644 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c create mode 100644 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_keys.h create mode 100644 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c create mode 100644 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c create mode 100644 include/linux/parman.h create mode 100644 lib/parman.c create mode 100644 lib/test_parman.c
Signature · 1 line
2.7.4