All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [LARTC] egress bandwidth not limited /
@ 2007-01-18  7:13 Nikolay Kichukov
  2007-01-18 23:26 ` Andy Furniss
  2007-01-19  8:37 ` Nikolay Kichukov
  0 siblings, 2 replies; 3+ messages in thread
From: Nikolay Kichukov @ 2007-01-18  7:13 UTC (permalink / raw)
  To: lartc

Hello Andy,
How do one create such a filter to catch arp/other link layer traffic? Can
you give us one such example?

Thanks,
-nik

----- Original Message ----- 
From: "Andy Furniss" <lists@andyfurniss.entadsl.com>
To: "Roman Skula" <roman@skula.com>
Cc: <lartc@mailman.ds9a.nl>
Sent: Wednesday, January 17, 2007 10:18 PM
Subject: Re: [LARTC] egress bandwidth not limited / limitedextremely
inaccurately


> Roman Skula wrote:
> > Andy Furniss napisa³(a):
> >
> >>Roman Skula wrote:
> >>
> >>>05:04.1 Ethernet controller: Broadcom Corporation NetXtreme BCM5714
> >>>Gigabit Ethernet (rev a3)
> >>
> >>You may need to turn off segmentation offload with ethtool -k
> >
> > A huge, wet kiss for you, this turned my sky blue again. :)
>
> Lol - I forgot to mention: be carefull about using htb default, your
> arp/other link layer end up there. If you don't specify a default htb
> will let them through unshaped, you can make a filter to catch the
> unclassified IP traffic and send it to the class you want.
>
> Andy.
>
> _______________________________________________
> LARTC mailing list
> LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
>

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LARTC] egress bandwidth not limited /
  2007-01-18  7:13 [LARTC] egress bandwidth not limited / Nikolay Kichukov
@ 2007-01-18 23:26 ` Andy Furniss
  2007-01-19  8:37 ` Nikolay Kichukov
  1 sibling, 0 replies; 3+ messages in thread
From: Andy Furniss @ 2007-01-18 23:26 UTC (permalink / raw)
  To: lartc

Nikolay Kichukov wrote:
> Hello Andy,
> How do one create such a filter to catch arp/other link layer traffic? Can
> you give us one such example?

A quick test on ingress

#tc qdisc add dev eth0 ingress

Classify all ip traffic

#tc filter add dev eth0 parent ffff: prio 1 protocol ip u32 match u32 0 
0 flowid :1

All arp

#tc filter add dev eth0 parent ffff: prio 2 protocol arp u32 match u32 0 
0 flowid :2

Anything else

#tc filter add dev eth0 parent ffff: prio 3 protocol all u32 match u32 0 
0 flowid :3

Look at the counters

#tc -s filter ls dev eth0 parent ffff:

Delete everything ingress on eth0

#tc qdisc del dev eth0 ingress


You can use ethertype protocol numbers in place of arp/ip.
Use the prio to make sure the catch alls are last in the filters you use 
- prio 1 is the highest for filters.

Andy.

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LARTC] egress bandwidth not limited /
  2007-01-18  7:13 [LARTC] egress bandwidth not limited / Nikolay Kichukov
  2007-01-18 23:26 ` Andy Furniss
@ 2007-01-19  8:37 ` Nikolay Kichukov
  1 sibling, 0 replies; 3+ messages in thread
From: Nikolay Kichukov @ 2007-01-19  8:37 UTC (permalink / raw)
  To: lartc

Cheers Andy,
That clarifies;-)

Regards,
-nik

Andy Furniss wrote:
> Nikolay Kichukov wrote:
>> Hello Andy,
>> How do one create such a filter to catch arp/other link layer traffic? 
>> Can
>> you give us one such example?
> 
> A quick test on ingress
> 
> #tc qdisc add dev eth0 ingress
> 
> Classify all ip traffic
> 
> #tc filter add dev eth0 parent ffff: prio 1 protocol ip u32 match u32 0 
> 0 flowid :1
> 
> All arp
> 
> #tc filter add dev eth0 parent ffff: prio 2 protocol arp u32 match u32 0 
> 0 flowid :2
> 
> Anything else
> 
> #tc filter add dev eth0 parent ffff: prio 3 protocol all u32 match u32 0 
> 0 flowid :3
> 
> Look at the counters
> 
> #tc -s filter ls dev eth0 parent ffff:
> 
> Delete everything ingress on eth0
> 
> #tc qdisc del dev eth0 ingress
> 
> 
> You can use ethertype protocol numbers in place of arp/ip.
> Use the prio to make sure the catch alls are last in the filters you use 
> - prio 1 is the highest for filters.
> 
> Andy.
> 
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-01-19  8:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-18  7:13 [LARTC] egress bandwidth not limited / Nikolay Kichukov
2007-01-18 23:26 ` Andy Furniss
2007-01-19  8:37 ` Nikolay Kichukov

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.