diff options
author | Paolo Abeni <pabeni@redhat.com> | 2018-08-29 10:22:33 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-30 07:10:59 +0200 |
commit | 97763dc0f4010bc20e2969a6bf9a40a2551c4f79 (patch) | |
tree | eb49c6777a411787afb9947a29ddd30aae39c111 /tools | |
parent | net: mvpp2: initialize port of_node pointer (diff) | |
download | linux-97763dc0f4010bc20e2969a6bf9a40a2551c4f79.tar.xz linux-97763dc0f4010bc20e2969a6bf9a40a2551c4f79.zip |
net_sched: reject unknown tcfa_action values
After the commit 802bfb19152c ("net/sched: user-space can't set
unknown tcfa_action values"), unknown tcfa_action values are
converted to TC_ACT_UNSPEC, but the common agreement is instead
rejecting such configurations.
This change also introduces a helper to simplify the destruction
of a single action, avoiding code duplication.
v1 -> v2:
- helper is now static and renamed according to act_* convention
- updated extack message, according to the new behavior
Fixes: 802bfb19152c ("net/sched: user-space can't set unknown tcfa_action values")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions