net_sched: reject unknown tcfa_action values
After the commit 802bfb19 ("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: 802bfb19 ("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>
Loading
-
mentioned in commit 11a94d7f
-
mentioned in commit 1e45d043
-
mentioned in commit d6124d6b
-
mentioned in commit 6ac86ca3
-
mentioned in commit ec7727bb
-
mentioned in commit c53075ea
-
mentioned in commit 4b006b0c
-
mentioned in commit e8c87c64
-
mentioned in commit ff9721d3
-
mentioned in commit 7c3d825d
-
mentioned in commit e5fdabac
-
mentioned in commit 7e0c8892
Please register or sign in to comment