]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
mlxsw: core: Introduce flexible actions support
authorJiri Pirko <jiri@mellanox.com>
Fri, 3 Feb 2017 09:29:02 +0000 (10:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Feb 2017 21:35:41 +0000 (16:35 -0500)
commit4cda7d8d7098e2b2c2c496ffb77b18f8b685e80d
tree77efa36429fa76952bf0c383d97b3da1c2907f00
parent3f1a84e6962c7fd0703b9bb5db0355d1c28b201a
mlxsw: core: Introduce flexible actions support

Each entry which is matched during ACL lookup points to an action set.
This action set contains up to three separate actions. If more actions
are needed to be chained, the extended set is created to hold them
in KVD linear area.

This patch implements handling of sets and encoding of actions.
Currectly, only two actions are supported. Drop and forward. Forward
action uses PBS pointer to KVD linear area, so the action code needs to
take care of this as well.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/Makefile
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.h [new file with mode: 0644]