RE: Re: [v4,iproute2-next 1/2] iproute2-next:tc:action: add a gate control action

2020-05-07 Thread Po Liu
l > ; Vladimir Oltean ; > Alexandru Marginean > Subject: RE: Re: [v4,iproute2-next 1/2] iproute2-next:tc:action: add a gate > control action > > Hi Stephen, > > > > -Original Message- > > From: Stephen Hemminger > > Sent: 2020年5月6日 23:22 > >

RE: Re: [v4,iproute2-next 1/2] iproute2-next:tc:action: add a gate control action

2020-05-06 Thread Po Liu
l > ; Vladimir Oltean ; > Alexandru Marginean > Subject: Re: [v4,iproute2-next 1/2] iproute2-next:tc:action: add a > gate control action > On Wed, 6 May 2020 16:40:19 +0800 > Po Liu wrote: > > > } else if (matches(*argv, "base-time") == 0) { > >

RE: [EXT] Re: [v4,iproute2-next 1/2] iproute2-next:tc:action: add a gate control action

2020-05-06 Thread Po Liu
v.dev; Claudiu Manoil > ; Vladimir Oltean ; > Alexandru Marginean > Subject: [EXT] Re: [v4,iproute2-next 1/2] iproute2-next:tc:action: add a > gate control action > > Caution: EXT Email > > On Wed, 2020-05-06 at 16:40 +0800, Po Liu wrote: > > Introduce a ingress frame

Re: [v4,iproute2-next 1/2] iproute2-next:tc:action: add a gate control action

2020-05-06 Thread Stephen Hemminger
On Wed, 6 May 2020 16:40:19 +0800 Po Liu wrote: > } else if (matches(*argv, "base-time") == 0) { > + NEXT_ARG(); > + if (get_u64(&base_time, *argv, 10)) { > + invalidarg = "base-time"; > +

Re: [v4,iproute2-next 1/2] iproute2-next:tc:action: add a gate control action

2020-05-06 Thread Davide Caratti
On Wed, 2020-05-06 at 16:40 +0800, Po Liu wrote: > Introduce a ingress frame gate control flow action. [...] hello Po Liu, [...] > +create_entry: > + e = create_gate_entry(gate_state, interval, > + ipv, maxoctets); > +

[v4,iproute2-next 1/2] iproute2-next:tc:action: add a gate control action

2020-05-06 Thread Po Liu
Introduce a ingress frame gate control flow action. Tc gate action does the work like this: Assume there is a gate allow specified ingress frames can pass at specific time slot, and also drop at specific time slot. Tc filter chooses the ingress frames, and tc gate action would specify what slot doe