From owner-freebsd-net@FreeBSD.ORG Tue Jul 8 11:08:44 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4803106566C for ; Tue, 8 Jul 2008 11:08:44 +0000 (UTC) (envelope-from joe.kuan@itrinegy.com) Received: from mail.itrinegy.com (host81-143-90-145.in-addr.btopenworld.com [81.143.90.145]) by mx1.freebsd.org (Postfix) with ESMTP id 728198FC1C for ; Tue, 8 Jul 2008 11:08:44 +0000 (UTC) (envelope-from joe.kuan@itrinegy.com) Received: from [192.168.200.194] (192.168.200.194) by insvr01 (192.168.200.1) with Microsoft SMTP Server id 8.1.263.0; Tue, 8 Jul 2008 11:54:59 +0100 Message-ID: From: Joe Kuan To: Content-Type: text/plain; charset="US-ASCII"; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit MIME-Version: 1.0 (Apple Message framework v926) Date: Tue, 8 Jul 2008 11:57:49 +0100 X-Mailer: Apple Mail (2.926) Subject: Help: FreeBSD 6.3 - em driver & taskqueue & priority X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2008 11:08:45 -0000 Hi all, I have implemented an network application in kernel space and it is working fine. The application involves 3 network interfaces that FreeBSD 6.3 can forward mbuf between em0 and em1 in a rate 1.3 - 1.4 millions packets per second. Em2 is used for controlling the network application. The problem is that when em0 and em1 are transmitting in 1.3 - 1.4 millions packets per second, the em2 interface becomes irresponsive. However, my goal is to make the kernelised network application response as soon as a control packet arrives in em2, ie jumps the queue ahead of all the packets in em0 and em1. I think the problem lies on the priority set on the task structure are all the same for all the em devices. Am I heading in the right direction? If not, please advise me. Many thanks in advance Joe