Re: [PATCH net 1/2] net_sched: reject unknown tcfa_action values

2018-08-28 Thread Cong Wang
On Tue, Aug 28, 2018 at 7:25 AM Paolo Abeni wrote: > > +int tcf_action_destroy_one(struct tc_action *a, int bind) > +{ > + struct tc_action *actions[] = { a, NULL }; > + > + return tcf_action_destroy(actions, bind); > +} Make it static. > + > static int tcf_action_put(struct tc_act

[PATCH net 1/2] net_sched: reject unknown tcfa_action values

2018-08-28 Thread Paolo Abeni
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 introduce an helper to simplify the destruction of a single a