diff options
author | Jiri Pirko <jiri@mellanox.com> | 2020-02-24 08:35:50 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-24 11:55:07 -0800 |
commit | 3128f3a150f6f0da69db6b7ca79b044c4260b579 (patch) | |
tree | 9fd248bca39660d1598085b6b50207b792f9caee /drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c | |
parent | mlxsw: spectrum_flower: Disable mixed bound blocks to contain action drop (diff) | |
download | linux-dev-3128f3a150f6f0da69db6b7ca79b044c4260b579.tar.xz linux-dev-3128f3a150f6f0da69db6b7ca79b044c4260b579.zip |
mlxsw: spectrum_acl: Pass the ingress indication down to flex action
The ACL flex action will have to know if it is in ingress or egress,
so it can use correct trap ID. Pass the ingress indication down to it.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c b/drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c index b9e2193848dd..b0e587583528 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c +++ b/drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c @@ -813,7 +813,7 @@ mlxsw_afa_trap_mirror_pack(char *payload, bool mirror_enable, mlxsw_afa_trap_mirror_agent_set(payload, mirror_agent); } -int mlxsw_afa_block_append_drop(struct mlxsw_afa_block *block) +int mlxsw_afa_block_append_drop(struct mlxsw_afa_block *block, bool ingress) { char *act = mlxsw_afa_block_append_action(block, MLXSW_AFA_TRAP_CODE, MLXSW_AFA_TRAP_SIZE); |