From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Furniss Subject: Re: [NET_SCHED 00/04]: External SFQ classifiers/flow classifier Date: Tue, 01 Apr 2008 20:04:56 +0100 Message-ID: <47F28758.1010401@andyfurniss.entadsl.com> References: <20080131175758.25151.20370.sendpatchset@localhost.localdomain> <47A4FB81.80700@fatooh.org> <47A74FEE.6080103@trash.net> <47EED247.50801@andyfurniss.entadsl.com> <47F22CF5.4080806@trash.net> Reply-To: lists@andyfurniss.entadsl.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Corey Hickey , Linux Netdev List To: Patrick McHardy Return-path: Received: from mx1.ukfsn.org ([77.75.108.10]:49176 "EHLO mail.ukfsn.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755017AbYDATDq (ORCPT ); Tue, 1 Apr 2008 15:03:46 -0400 In-Reply-To: <47F22CF5.4080806@trash.net> Sender: netdev-owner@vger.kernel.org List-ID: Patrick McHardy wrote: > Andy Furniss wrote: >> Patrick McHardy wrote: >> >>> tc filter add dev eth0 protocol ip pref 1 parent 1: handle 1 \ >>> flow hash keys dst divisor 1024 >>> >> >> I've been trying to incorporate this into my own setup but haven't got >> very far :-) >> >> I don't even know if it's possible to attach to htb subclasses and >> expect it to work. If it is do you have an example (is this what >> baseclass is for?). >> >> I can attach to a filter to other than parent 1:0 OK but it doesn't do >> anything. >> >> I have also tried incorporating flow into the 1:0 filters that filter >> to the htb subclasses that have the sfqs attached to them, but can't >> get ematch to work - but then I have never been able to get ematch to >> work. I can't find any examples. All I need if this is the way to go >> is to match on mark and match on anything. >> >> Is this possible and if so, do you have/know of any examples? > > What exactly are you trying to do? If you attach the classifier > to HTB, it will classify to HTB classes. I guess you actually > want to use it for SFQ, which should work with: > > tc qdisc add ... handle x: sfq > tc filter add parent x: protocol all flow ... > Ahh thanks. It's so obvious now :-) I didn't have handles specified on the sfqs and was trying to use the htb leafs handles. It's cool being able to see the sfq flows. Andy.