Re: [LARTC] ifb and ppp

2007-09-21 Thread jamal
On Fri, 2007-21-09 at 13:56 +0200, Patrick McHardy wrote: > This doesn't help much since he uses the iptables marks for > classification on the ifb device, so he might as well just > classify directly using u32. true. > I think it would be nice to > have an ematch equivalent to the ipt action f

Re: [LARTC] ifb and ppp

2007-09-21 Thread Patrick McHardy
jamal wrote: > On Thu, 2007-20-09 at 17:26 +0200, Patrick McHardy wrote: > >> I don't see a good solution for this that >>allows to keep the iptables rules, I'd suggest to switch to ematches. > > > One approach could be to use ipt action: > > --- > tc filter add dev ppp0 parent

Re: [LARTC] ifb and ppp

2007-09-21 Thread jamal
On Thu, 2007-20-09 at 17:26 +0200, Patrick McHardy wrote: > I don't see a good solution for this that > allows to keep the iptables rules, I'd suggest to switch to ematches. One approach could be to use ipt action: --- tc filter add dev ppp0 parent : protocol ip u32 match u32

Re: [LARTC] ifb and ppp

2007-09-20 Thread Patrick McHardy
Frithjof Hammer wrote: >>Sorry, I didnt follow the thread - what is the goal to be achieved with >>the setup? > > > A simple ingress shaping on ppp0 (PPPOE DSL line). I want to replace my old > imq ingress shaper in favor of ifb. My former script used iptables marks to > classify the packets.

Re: [LARTC] ifb and ppp

2007-09-20 Thread Frithjof Hammer
> Sorry, I didnt follow the thread - what is the goal to be achieved with > the setup? A simple ingress shaping on ppp0 (PPPOE DSL line). I want to replace my old imq ingress shaper in favor of ifb. My former script used iptables marks to classify the packets. My iptables marks are getting set,

Re: [LARTC] ifb and ppp

2007-09-20 Thread jamal
On Thu, 2007-20-09 at 13:55 +0200, Patrick McHardy wrote: > Please keep netdev and myself CCed. and me too (I am way behind on netdev) > Frithjof Hammer wrote: > > Any further help/ideas? Sorry, I didnt follow the thread - what is the goal to be achieved with the setup? > I misread the code, t

Re: [LARTC] ifb and ppp

2007-09-20 Thread Patrick McHardy
Please keep netdev and myself CCed. Frithjof Hammer wrote: >>Does this patch help? > > > A further examiniation: > [...] > printk ("fri: mein type %x\n",dev->type); > switch (dev->type) { > > [...] > shows this: > > [EMAIL PROTECTED]:/usr/src/linux-source-2.6.21# dmesg | grep f

Re: [LARTC] ifb and ppp

2007-09-19 Thread Patrick McHardy
Frithjof Hammer wrote: > My goal is to setup an ingress traffic shaping on my PPPOE DSL line with ifb. > > My old imq stuff used iptables marks (like 'iptables -t mangle -A > PREROUTING -p tcp --sport 22 -m length --length :500 -j MARK --set-mark 31') > to classify the traffic and since i am la