Re: [PATCH net 2/2] net/sched: act_gate: fix configuration of the periodic timer

2020-06-11 Thread Cong Wang
On Wed, Jun 10, 2020 at 2:43 PM Davide Caratti wrote: > +static void gate_setup_timer(struct tcf_gate *gact, u64 basetime, > +enum tk_offsets tko, s32 clockid, > +bool do_init) > +{ > + bool timer_change = basetime != gact->param.tcfg_b

[PATCH net 2/2] net/sched: act_gate: fix configuration of the periodic timer

2020-06-10 Thread Davide Caratti
assigning a dummy value of 'clock_id' to avoid cancellation of the cycle timer before its initialization was a temporary solution, and we still need to handle the case where act_gate timer parameters are changed by commands like the following one: # tc action replace action gate the fix consist