diff options
author | Petr Machata <petrm@mellanox.com> | 2020-03-19 15:47:23 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-19 21:09:20 -0700 |
commit | 463957e3fbab36eb256a46c9a99e7d4c28311420 (patch) | |
tree | 07225daaf6878b865b44932770d19a0fc3423b33 /drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c | |
parent | 4d745f8cf5ad8ac4e199a11ea2ed826299c77ca3 (diff) | |
download | linux-463957e3fbab36eb256a46c9a99e7d4c28311420.tar.gz linux-463957e3fbab36eb256a46c9a99e7d4c28311420.tar.bz2 linux-463957e3fbab36eb256a46c9a99e7d4c28311420.zip |
mlxsw: spectrum_flower: Offload FLOW_ACTION_PRIORITY
Offload action skbedit priority when keyed to a flower classifier. The
skb->priority field in Linux is very generic, so only allow setting the
bottom 8 priorities and bounce anything else.
Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-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/spectrum_flower.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c index 21c4b10d106c..1cb023955d8f 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c @@ -154,6 +154,10 @@ static int mlxsw_sp_flower_parse_actions(struct mlxsw_sp *mlxsw_sp, act->id, vid, proto, prio, extack); } + case FLOW_ACTION_PRIORITY: + return mlxsw_sp_acl_rulei_act_priority(mlxsw_sp, rulei, + act->priority, + extack); default: NL_SET_ERR_MSG_MOD(extack, "Unsupported action"); dev_err(mlxsw_sp->bus_info->dev, "Unsupported action\n"); |