diff options
author | Jiri Pirko <jiri@mellanox.com> | 2018-03-09 15:33:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-09 13:02:13 -0500 |
commit | 49bae2f3093b0a7bc5e1a158d89697a73cdb0243 (patch) | |
tree | 2465b34fdf399b2a22b33847412451acbf5f2403 /drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c | |
parent | bcf34adc105d946437da3a575df3b390493e9078 (diff) | |
download | linux-stable-49bae2f3093b0a7bc5e1a158d89697a73cdb0243.tar.gz linux-stable-49bae2f3093b0a7bc5e1a158d89697a73cdb0243.tar.bz2 linux-stable-49bae2f3093b0a7bc5e1a158d89697a73cdb0243.zip |
mlxsw: spectrum: Fix gact_ok offloading
For ok GACT action, TERMINATE binding_cmd should be used in action set
passed down to HW.
Fixes: b2925957ec1a9 ("mlxsw: spectrum_flower: Offload "ok" termination action")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reported-by: Alexander Petrovskiy <alexpe@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/spectrum_acl.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c index 0897a5435cc2..92d90ed7207e 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c @@ -528,6 +528,11 @@ int mlxsw_sp_acl_rulei_act_jump(struct mlxsw_sp_acl_rule_info *rulei, return mlxsw_afa_block_jump(rulei->act_block, group_id); } +int mlxsw_sp_acl_rulei_act_terminate(struct mlxsw_sp_acl_rule_info *rulei) +{ + return mlxsw_afa_block_terminate(rulei->act_block); +} + int mlxsw_sp_acl_rulei_act_drop(struct mlxsw_sp_acl_rule_info *rulei) { return mlxsw_afa_block_append_drop(rulei->act_block); |