From: Yang Yingliang <yangyingliang@huawei.com>
To: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>,
<netdev@vger.kernel.org>
Subject: Re: [PATCH net-next v2 1/3] net_sched: tbf: support of 64bit rates
Date: Fri, 8 Nov 2013 09:40:47 +0800 [thread overview]
Message-ID: <527C411F.80307@huawei.com> (raw)
In-Reply-To: <527BA2E3.5090905@cogentembedded.com>
On 2013/11/7 22:25, Sergei Shtylyov wrote:
> Hello.
>
> On 07-11-2013 6:13, Yang Yingliang wrote:
>
>> With psched_ratecfg_precompute(), tbf can deal with 64bit rates.
>> Add two new attributes so that tc can use them to break the 32bit
>> limit.
>
>> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
> [...]
>
>> diff --git a/net/sched/sch_tbf.c b/net/sched/sch_tbf.c
>> index b057122..b736517 100644
>> --- a/net/sched/sch_tbf.c
>> +++ b/net/sched/sch_tbf.c
> [...]
>> @@ -402,6 +409,13 @@ static int tbf_dump(struct Qdisc *sch, struct sk_buff *skb)
>> opt.buffer = PSCHED_NS2TICKS(q->buffer);
>> if (nla_put(skb, TCA_TBF_PARMS, sizeof(opt), &opt))
>> goto nla_put_failure;
>> + if ((q->rate.rate_bytes_ps >= (1ULL << 32)) &&
>> + nla_put_u64(skb, TCA_TBF_RATE64, q->rate.rate_bytes_ps))
>> + goto nla_put_failure;
>> + if (q->peak_present &&
>> + (q->peak.rate_bytes_ps >= (1ULL << 32)) &&
>> + nla_put_u64(skb, TCA_TBF_PRATE64, q->peak.rate_bytes_ps))
>> + goto nla_put_failure;
>
> According to the networking coding style, the *if* continuation lines should start under the next character after (.
>
> WBR, Sergei
Got it, i'll fix in next patch.
Thanks
>
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
next prev parent reply other threads:[~2013-11-08 1:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-07 2:13 [PATCH net-next v2 0/3] net_sched: make tbf support 64bit rates Yang Yingliang
2013-11-07 2:13 ` [PATCH net-next v2 1/3] net_sched: tbf: support of " Yang Yingliang
2013-11-07 14:25 ` Sergei Shtylyov
2013-11-08 1:40 ` Yang Yingliang [this message]
2013-11-07 2:13 ` [PATCH net-next v2 2/3] net_sched: fix some checkpatch errors Yang Yingliang
2013-11-07 8:37 ` Daniel Borkmann
2013-11-08 11:04 ` Bjørn Mork
2013-11-07 14:33 ` Sergei Shtylyov
2013-11-08 1:51 ` Yang Yingliang
2013-11-07 2:13 ` [PATCH net-next v2 3/3] net_sched: Use pr_debug replace printk(KERN_DEBUG ...) Yang Yingliang
2013-11-07 8:30 ` Daniel Borkmann
2013-11-07 8:43 ` Yang Yingliang
2013-11-07 14:43 ` Sergei Shtylyov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=527C411F.80307@huawei.com \
--to=yangyingliang@huawei.com \
--cc=netdev@vger.kernel.org \
--cc=sergei.shtylyov@cogentembedded.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.