All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch net-next 00/19] mlxsw: Introduce TC Flower offload using TCAM
@ 2017-02-02 15:12 Jiri Pirko
  2017-02-02 15:12 ` [patch net-next 01/19] mlxsw: item: Add 8bit item helpers Jiri Pirko
                   ` (19 more replies)
  0 siblings, 20 replies; 33+ messages in thread
From: Jiri Pirko @ 2017-02-02 15:12 UTC (permalink / raw)
  To: netdev; +Cc: davem, idosch, eladr, mlxsw, ogerlitz, jhs, ivecera, jbenc

From: Jiri Pirko <jiri@mellanox.com>

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.

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                                       |  294 ++++++
 lib/test_parman.c                                  |  395 +++++++
 net/sched/cls_flower.c                             |    3 +
 25 files changed, 5102 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

-- 
2.7.4

^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2017-02-03 18:10 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-02 15:12 [patch net-next 00/19] mlxsw: Introduce TC Flower offload using TCAM Jiri Pirko
2017-02-02 15:12 ` [patch net-next 01/19] mlxsw: item: Add 8bit item helpers Jiri Pirko
2017-02-02 15:12 ` [patch net-next 02/19] mlxsw: item: Add helpers for getting pointer into payload for char buffer item Jiri Pirko
2017-02-02 15:12 ` [patch net-next 03/19] mlxsw: reg: Add Policy-Engine ACL Register Jiri Pirko
2017-02-02 15:12 ` [patch net-next 04/19] mlxsw: reg: Add Policy-Engine ACL Group Table register Jiri Pirko
2017-02-02 15:12 ` [patch net-next 05/19] mlxsw: reg: Add Policy-Engine TCAM Allocation Register Jiri Pirko
2017-02-02 15:12 ` [patch net-next 06/19] mlxsw: reg: Add Policy-Engine TCAM Entry Register Version 2 Jiri Pirko
2017-02-02 15:12 ` [patch net-next 07/19] mlxsw: reg: Add Policy-Engine Port Binding Table Jiri Pirko
2017-02-02 15:12 ` [patch net-next 08/19] mlxsw: reg: Add Policy-Engine Rules Copy Register Jiri Pirko
2017-02-02 15:12 ` [patch net-next 09/19] mlxsw: reg: Add Policy-Engine Policy Based Switching Register Jiri Pirko
2017-02-02 15:12 ` [patch net-next 10/19] mlxsw: reg: Add Policy-Engine Extended Flexible Action Register Jiri Pirko
2017-02-02 15:12 ` [patch net-next 11/19] mlxsw: core: Introduce flexible keys support Jiri Pirko
2017-02-02 15:12 ` [patch net-next 12/19] mlxsw: core: Introduce flexible actions support Jiri Pirko
2017-02-02 15:12 ` [patch net-next 13/19] mlxsw: spectrum: Introduce basic set of flexible key blocks Jiri Pirko
2017-02-02 15:12 ` [patch net-next 14/19] mlxsw: resources: Add ACL related resources Jiri Pirko
2017-02-02 15:12 ` [patch net-next 15/19] list: introduce list_for_each_entry_from_reverse helper Jiri Pirko
2017-02-02 15:12 ` [patch net-next 16/19] lib: Introduce priority array area manager Jiri Pirko
2017-02-02 21:58   ` Tom Herbert
2017-02-02 22:28     ` Eric Dumazet
2017-02-03  7:08     ` Jiri Pirko
2017-02-02 22:51   ` Joe Perches
2017-02-03  7:01     ` Jiri Pirko
2017-02-02 15:12 ` [patch net-next 17/19] mlxsw: spectrum: Introduce ACL core with simple TCAM implementation Jiri Pirko
2017-02-02 22:34   ` David Miller
2017-02-03  6:53     ` Jiri Pirko
2017-02-02 15:12 ` [patch net-next 18/19] sched: cls_flower: expose priority to offloading netdevice Jiri Pirko
2017-02-02 15:12 ` [patch net-next 19/19] mlxsw: spectrum: Implement TC flower offload Jiri Pirko
2017-02-02 21:37   ` Florian Fainelli
2017-02-03  7:38     ` Jiri Pirko
2017-02-02 21:40 ` [patch net-next 00/19] mlxsw: Introduce TC Flower offload using TCAM Florian Fainelli
2017-02-03  6:58   ` Jiri Pirko
2017-02-03 17:57     ` Florian Fainelli
2017-02-03 18:10       ` Jiri Pirko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.