netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jarek Poplawski <jarkao2@o2.pl>
To: netdev@vger.kernel.org
Subject: Re: [PATCH 5/6] htb: use hlist for hash lists.
Date: Thu, 3 Aug 2006 11:34:44 +0200	[thread overview]
Message-ID: <20060803093444.GA2941@ff.dom.local> (raw)
In-Reply-To: <20060802150340.7faabd1d@dxpl.pdx.osdl.net>

On 03-08-2006 00:03, Stephen Hemminger wrote:
...

Hi,

By the way, isn't htb supposed to recognize here ids 
got like this: tc filter add ... classid 0:1 
Some qdisc like prio do this and it is mentioned in
sch_api.c which is passing this without error code:

> @@ -220,12 +220,13 @@ #endif
>  static inline struct htb_class *htb_find(u32 handle, struct Qdisc *sch)
>  {
>  	struct htb_sched *q = qdisc_priv(sch);
> -	struct list_head *p;
> +	struct hlist_node *p;
> +	struct htb_class *cl;
> +
>  	if (TC_H_MAJ(handle) != sch->handle)
>  		return NULL;

I've tried this for example:

-	if (TC_H_MAJ(handle) != sch->handle) 
+	if (TC_H_MAJ(handle) == 0) /* 0:Y class is X:Y, where X:0 is qdisc */
+		handle += sch->handle;
+	else if (TC_H_MAJ(handle) != sch->handle)
 		return NULL;
 	
On the other hand I don't understand why it should be good
if there could be the real priority(from tos) only by accident
equal to the classid?

Jarek P.


  reply	other threads:[~2006-08-03  9:32 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-02 19:56 [PATCH 0/6] htb: cleanup Stephen Hemminger
2006-08-02 19:58 ` [PATCH 2/6] htb: remove lock macro Stephen Hemminger
2006-08-02 20:01 ` [PATHC 4/6] htb: Lindent Stephen Hemminger
2006-08-02 22:03 ` [PATCH 5/6] htb: use hlist for hash lists Stephen Hemminger
2006-08-03  9:34   ` Jarek Poplawski [this message]
2006-08-03 10:16     ` Jarek Poplawski
2006-08-02 22:09 ` [PATCH 6/6] htb: rbtree cleanup Stephen Hemminger
2006-08-02 22:09 ` [PATCH 3/6] htb: if HTB_HYSTERIS cleanup Stephen Hemminger
2006-08-02 22:11 ` [PATCH 1/6] htb: remove broken debug code Stephen Hemminger
2006-08-02 22:12 ` [PATCH 6/6] htb: rbtree cleanup Stephen Hemminger
2006-08-02 22:18 ` [PATCH 0/6] htb: cleanup David Miller
2006-08-10 12:36   ` Thomas Graf
2006-08-11  6:39     ` 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=20060803093444.GA2941@ff.dom.local \
    --to=jarkao2@o2.pl \
    --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).