From: Eric Dumazet <eric.dumazet@gmail.com>
To: Jarek Poplawski <jarkao2@gmail.com>
Cc: David Miller <davem@davemloft.net>,
kaber@trash.net, netdev@vger.kernel.org
Subject: Re: [RFC] pkt_sched: gen_estimator: Dont report fake rate estimators
Date: Fri, 02 Oct 2009 09:12:57 +0200 [thread overview]
Message-ID: <4AC5A7F9.3000005@gmail.com> (raw)
In-Reply-To: <20091002070819.GA9694@ff.dom.local>
Jarek Poplawski a écrit :
> To make my point clare: why not something like this?:
>
> static int tc_fill_qdisc(struct sk_buff *skb, struct Qdisc *q, u32 clid,
> u32 pid, u32 seq, u16 flags, int event)
> {
> ...
> if (gnet_stats_copy_basic(&d, &q->bstats) < 0 ||
> (gen_estimator_active(&q->bstats, &q->rate_est) &&
> gnet_stats_copy_rate_est(&d, &q->rate_est) < 0) ||
> gnet_stats_copy_queue(&d, &q->qstats) < 0)
> goto nla_put_failure;
>
> BTW, I'm not sure we need to chanage user visible API for this.
> (Is it really expected to work after updating gen_stats.h only in
> iproute?)
>
Thats would be better indeed, do you want to work on it or let me do it ?
Thanks
next prev parent reply other threads:[~2009-10-02 7:12 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-01 19:07 [RFC] pkt_sched: gen_estimator: Dont report fake rate estimators Eric Dumazet
2009-10-01 19:37 ` David Miller
2009-10-01 21:05 ` Jarek Poplawski
2009-10-01 21:14 ` David Miller
2009-10-01 21:21 ` Jarek Poplawski
2009-10-02 7:08 ` Jarek Poplawski
2009-10-02 7:12 ` Eric Dumazet [this message]
2009-10-02 7:17 ` Jarek Poplawski
2009-10-02 7:32 ` Jarek Poplawski
2009-10-02 10:35 ` [RFC take2] " Eric Dumazet
2009-10-02 11:25 ` Jarek Poplawski
2009-10-02 12:39 ` Eric Dumazet
2009-10-02 20:11 ` Jarek Poplawski
2009-10-02 20:32 ` Eric Dumazet
2009-10-07 8:27 ` David Miller
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=4AC5A7F9.3000005@gmail.com \
--to=eric.dumazet@gmail.com \
--cc=davem@davemloft.net \
--cc=jarkao2@gmail.com \
--cc=kaber@trash.net \
--cc=netdev@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).