[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM_iQpVMYQUdQN5L+ntXZTffZkW4q659bvXoZ8+Ar+zeud7Y4Q@mail.gmail.com>
Date:   Fri, 30 Aug 2019 12:11:44 -0700
From:   Cong Wang <xiyou.wangcong@...il.com>
To:     David Dai <zdai@...ux.vnet.ibm.com>
Cc:     Jamal Hadi Salim <jhs@...atatu.com>, Jiri Pirko <jiri@...nulli.us>,
        David Miller <davem@...emloft.net>,
        Linux Kernel Network Developers <netdev@...r.kernel.org>,
        LKML <linux-kernel@...r.kernel.org>, zdai@...ibm.com
Subject: Re: [v2] net_sched: act_police: add 2 new attributes to support
 police 64bit rate and peakrate
On Fri, Aug 30, 2019 at 12:06 PM David Dai <zdai@...ux.vnet.ibm.com> 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.
Powered by blists - more mailing lists
 
