All of lore.kernel.org
 help / color / mirror / Atom feed
From: Badalian Vyacheslav <slavon@bigtelecom.ru>
To: Jarek Poplawski <jarkao2@gmail.com>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: tc filter flow hash question
Date: Tue, 30 Jun 2009 13:49:11 +0400	[thread overview]
Message-ID: <4A49DF97.6090608@bigtelecom.ru> (raw)
In-Reply-To: <20090630092344.GA8592@ff.dom.local>


> On Tue, Jun 30, 2009 at 01:18:42PM +0400, Badalian Vyacheslav wrote:
>   
>> Jarek Poplawski ??????????:
>>     
>>> On 30-06-2009 10:12, Badalian Vyacheslav wrote:
>>>       
> ...
>   
>>>> tc qdisc add dev eth0 root handle 1 htb default 7
>>>> class add dev eth0 parent 1: classid 1:7 htb rate 500mbit ceil 1000mbit
>>>> prio 3
>>>> qdisc add dev eth0 parent 1:7 handle 10: sfq perturb 10
>>>> # all normal
>>>> tc filter add dev eth0 protocol ip parent 10: handle 2 flow hash keys
>>>> src,dst
>>>> # all traffic drop
>>>>
>>>>     
>>>>         
>>>   
>>>       
>> Yep. I was read this commit and create example based on it.
>> My question why its drop all traffic after add flow filter? Its simple
>> must group traffic to sfq qidsc by HASH like equal cost routing by KEY
>> if i understand. I need balance traffic in class/qdisc by KEY, but not
>> by sessions.
>>
>> Any worked example will be great. In commit i see only syntax :)
>>     
>
> Any non-working example with this syntax? (divisor?)
>
>   

This example not approach? 

tc qdisc add dev eth0 root handle 1 htb default 7
tc class add dev eth0 parent 1: classid 1:7 htb rate 500mbit ceil 1000mbit prio 3
tc qdisc add dev eth0 parent 1:7 handle 10: sfq perturb 10

# all traffic go to class 1-7.

# Try group traffic by "src,dst" key

tc filter add dev eth0 protocol ip parent 10: handle 2 flow hash keys src,dst

# all traffic dropped


> Jarek P.
>   
>>> Here are some hints (if we don't mention google ;-)
>>> http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.29.y.git;a=commitdiff;h=e5dfb815181fcb186d6080ac3a091eadff2d98fe
>>>
>>> Regards,
>>> Jarek P

  reply	other threads:[~2009-06-30  9:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-30  8:12 tc filter flow hash question Badalian Vyacheslav
2009-06-30  8:57 ` Jarek Poplawski
2009-06-30  9:18   ` Badalian Vyacheslav
2009-06-30  9:23     ` Jarek Poplawski
2009-06-30  9:49       ` Badalian Vyacheslav [this message]
2009-06-30  9:56         ` Jarek Poplawski
2009-06-30 10:30           ` Badalian Vyacheslav
2009-06-30 11:09             ` Jarek Poplawski

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=4A49DF97.6090608@bigtelecom.ru \
    --to=slavon@bigtelecom.ru \
    --cc=jarkao2@gmail.com \
    --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 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.