On Thu, Apr 23, 2009 at 09:41, Patrick McHardy <kaber@xxxxxxxxx> wrote: > Salatiel Filho wrote: >> >> On Thu, Apr 23, 2009 at 08:22, Patrick McHardy <kaber@xxxxxxxxx> wrote: >>> >>> Salatiel Filho wrote: >>>> >>>> Using imq i can shape upload on ppp0 [postrouting] while still having >>>> the internal private ips from the hosts, and i can shape download in >>>> ppp0 [prerouting] after get the correct nat'ed addresses. >>>> >>>> Is there a way to achieve this in IFB ? in a simple way ... :) >>> >>> Currently not, the conntrack association is done at a later point. >>> We could add a classifier or TC action that performs the lookup >>> during ingress classification. >>> >>> Alternatively classifiers using conntrack information (like cls_flow) >>> could perform the lookup directly, but that would probably get a bit >>> ugly since some validation needs to be performed previously and it >>> would add a module dependency on conntrack. >>> >>> >> Using this actions would make sfq hashing by dest ip or source ip >> work just like it works in imq ? > > Not with the SFQ default hash since it classifies based on the > addresses in the IP header. But you could use the flow classifier, > which can use the addresses from the conntrack entry. This would > behave similar to IMQ+SFQ. Ok , i was tying to keepthe discussion to the mainline kernel :) By sfq i mean esfq [though i read somewhere sfq will implement a way to hash by src / dest ip] , or wrr :) Actually i was never able to find out why wrr is not in mainline kernel. In my opinion it is the best round robin qdisc i have ever used. > > -- []'s Salatiel "O maior prazer do inteligente é bancar o idiota diante de um idiota que banca o inteligente". -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html