All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] About ingress
Date: Tue, 11 Feb 2003 17:17:45 +0000	[thread overview]
Message-ID: <marc-lartc-104498408513747@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104498272711289@msgid-missing>

On Tuesday 11 February 2003 17:57, Nelson Guedes Paulo Junior wrote:
> Hi all,
>
> I couldn't figure, in the following command, whats the meaning of the
> flowid.
>
> tc filter add dev eth0 parent ffff: protocol ip prio 50 u32 match ip /
>  src 0.0.0.0/0 police rate 38kbit burst 38kbit drop flowid :1
>
> :1 means what??
It means that's going to redirect all traffic to class ffff:1 (flowid = 
classid).  But ingress is classless.  So the there is no real class ffff:1.  
But you have to redirect the traffic to something.  Actually, the ingress 
qdisc is a dummy qdisc.  The only thing you can do with it is add filters.

> There's some way to create other classes like the egress has?
No.

> For example, I coulde use this:
>
> tc qdisc add dev eth0 root handle 1: prio
> tc qdisc add dev eth0 parent 1:1 handle 10: sfq perturb 10
> tc qdisc add dev eth0 parent 1:2 handle 20: sfq perturb 10
> tc qdisc add dev eth0 parent 1:3 handle 30: sfq perturb 10
>
> And create a prio qdisc with 3 qdiscs inside.
>
> There's some way to do that with a ingress filter???
No.
Long answer : yes.  You can use the imq device.  If you patch the kernel and 
iptables, you can make a virutal imq device and redirect all incoming traffic 
to it.  You can add egress qdisc to the imq device.

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      reply	other threads:[~2003-02-11 17:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-11 16:57 [LARTC] About ingress Nelson Guedes Paulo Junior
2003-02-11 17:17 ` Stef Coene [this message]

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=marc-lartc-104498408513747@msgid-missing \
    --to=stef.coene@docum.org \
    --cc=lartc@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 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.