netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH RFC 2/3] net_sched: Add accessor function for packet length for qdiscs
Date: Thu, 17 Jul 2008 12:11:30 +0200	[thread overview]
Message-ID: <487F1AD2.10208@trash.net> (raw)
In-Reply-To: <20080717100933.3327.20158.stgit@fate.lan>

Jussi Kivilinna wrote:
> Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
> ---
> 
>  include/net/sch_generic.h |   17 +++++++++++------
>  net/sched/sch_atm.c       |    4 ++--
>  net/sched/sch_cbq.c       |   14 ++++++--------
>  net/sched/sch_dsmark.c    |    2 +-
>  net/sched/sch_fifo.c      |    2 +-
>  net/sched/sch_gred.c      |   12 ++++++------
>  net/sched/sch_hfsc.c      |   14 ++++++--------
>  net/sched/sch_htb.c       |    9 +++++----
>  net/sched/sch_netem.c     |    6 +++---
>  net/sched/sch_prio.c      |    2 +-
>  net/sched/sch_red.c       |    2 +-
>  net/sched/sch_sfq.c       |   16 ++++++++--------
>  net/sched/sch_tbf.c       |    9 ++++++---
>  net/sched/sch_teql.c      |    6 +++---
>  14 files changed, 60 insertions(+), 55 deletions(-)
> 
> diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h
> index e3b0d71..1f1de3b 100644
> --- a/include/net/sch_generic.h
> +++ b/include/net/sch_generic.h
> @@ -258,6 +258,11 @@ static inline bool qdisc_tx_is_noop(const struct net_device *dev)
>  	return (txq->qdisc == &noop_qdisc);
>  }
>  
> +static inline unsigned int qdisc_tx_len(struct sk_buff *skb)
> +{
> +	return skb->len;
> +}


Just one question - should this also be useable for ingress? If so
a different name would make sense.

  reply	other threads:[~2008-07-17 10:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-17 10:09 [PATCH RFC 0/3] Add generic size table for qdiscs Jussi Kivilinna
2008-07-17 10:09 ` [PATCH RFC 1/3] net_sched: Add qdisc_enqueue wrapper Jussi Kivilinna
2008-07-17 10:10   ` Patrick McHardy
2008-07-17 10:09 ` [PATCH RFC 2/3] net_sched: Add accessor function for packet length for qdiscs Jussi Kivilinna
2008-07-17 10:11   ` Patrick McHardy [this message]
2008-07-17 11:33     ` Jussi Kivilinna
2008-07-17 10:09 ` [PATCH RFC 3/3] net_sched: Add size table " Jussi Kivilinna
2008-07-17 10:30   ` Patrick McHardy
2008-07-17 18:02     ` Jussi Kivilinna
2008-07-21 13:00       ` Patrick McHardy
2008-07-21 13:03         ` Jussi Kivilinna

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=487F1AD2.10208@trash.net \
    --to=kaber@trash.net \
    --cc=jussi.kivilinna@mbnet.fi \
    --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).