Re: [v2] net_sched: act_police: add 2 new attributes to support police 64bit rate and peakrate

From: Cong Wang
Date: Fri Aug 30 2019 - 15:11:59 EST


On Fri, Aug 30, 2019 at 12:06 PM David Dai <zdai@xxxxxxxxxxxxxxxxxx> wrote:
> - if (p->peak_present)
> + if ((police->params->rate.rate_bytes_ps >= (1ULL << 32)) &&
> + nla_put_u64_64bit(skb, TCA_POLICE_RATE64,
> + police->params->rate.rate_bytes_ps,
> + __TCA_POLICE_MAX))

I think the last parameter should be TCA_POLICE_PAD.