From mboxrd@z Thu Jan 1 00:00:00 1970 From: urgrue Subject: simple tc priorization Date: Wed, 13 Apr 2005 15:30:32 +0300 Message-ID: <20050413123032.GA2471@fede2.dev.ascom.fi> Mime-Version: 1.0 Content-Transfer-Encoding: 7BIT Return-path: Content-Disposition: inline Sender: linux-admin-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: admin simply put i need to prioritize one form of traffic over another. its okay if it even hogs up all the bandwidth. whats the simplest way to achieve this? a simple prio qdisc simply doesnt seem to work, for example: tc qdisc add dev eth0 root handle 1: prio tc qdisc add dev eth0 parent 1:1 handle 10: sfq tc qdisc add dev eth0 parent 1:2 handle 20: sfq tc filter add dev eth0 parent 1: protocol ip u32 match ip sport 19 0xffff flowid 1:1 tc filter add dev eth0 parent 1: protocol ip u32 match ip sport 22 0xffff flowid 1:2 but this doesnt work and it just ends up splitting traffic evenly between the two ports. im assuming my problem is that im not limiting traffic on the root level, and thus PRIO never realizes my bandwidth is full? but how can i