From owner-freebsd-net@FreeBSD.ORG Fri Jan 18 21:21:26 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1B05974C; Fri, 18 Jan 2013 21:21:26 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by mx1.freebsd.org (Postfix) with ESMTP id 147CA8A0; Fri, 18 Jan 2013 21:21:24 +0000 (UTC) Received: by mail-lb0-f177.google.com with SMTP id gm6so889890lbb.36 for ; Fri, 18 Jan 2013 13:21:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=wC1sNtxEkV/mTpQ9JMJxZS7u0q9pP0ts5aS11exGmRQ=; b=K1nSaygyo5mowNRoThTikbGv/DzmICxoOkBNAIER66JW9QPlMmtp5hVDaD5t9gY4en aJJJH5pdI8GEiV7cTW1io1g2i6Sr1gM3nq52S4ZXffm5kwEO/1ljA5UvWyZhgAqJQfct /JrogzmHEVqb8OuI8NfPo+kM9W99ZE1udXuY9JM2vnopPVlLaORJvMafAFErxAg9Mt6c +tp3jwrtuWA4e/F5dGdN75bip7pNqBC63Kc5NILa58ZAjZS0KZypnUhgix121koMa75N 6i7oaACZVadazOHE4ORv9fE76rWGTGdYKhaMSACTMRkS1nu6IY3G62RTbzD7tCsw2/ib MMiw== MIME-Version: 1.0 X-Received: by 10.152.123.34 with SMTP id lx2mr8678262lab.52.1358544078016; Fri, 18 Jan 2013 13:21:18 -0800 (PST) Sender: rizzo.unipi@gmail.com Received: by 10.114.93.200 with HTTP; Fri, 18 Jan 2013 13:21:17 -0800 (PST) In-Reply-To: <201301181603.32393.jhb@freebsd.org> References: <1358519440.88044.YahooMailClassic@web121605.mail.ne1.yahoo.com> <201301181149.42277.jhb@freebsd.org> <201301181603.32393.jhb@freebsd.org> Date: Fri, 18 Jan 2013 13:21:17 -0800 X-Google-Sender-Auth: jER97L-0kMHROLCukMsQi3_Y6dg Message-ID: Subject: Re: two problems in dev/e1000/if_lem.c::lem_handle_rxtx() From: Luigi Rizzo To: John Baldwin Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-net@freebsd.org" , Adrian Chadd X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2013 21:21:26 -0000 On Fri, Jan 18, 2013 at 1:03 PM, John Baldwin wrote: > On Friday, January 18, 2013 3:07:35 pm Adrian Chadd wrote: > > For my purposes, rescheduling the taskqueue means that other things > > (such as TX, reset processing, other state handling, etc) can run > > before the next pass at RX completion. > > That only works if your taskqueue thread has a priority <= those things. I > think the e1000 drivers use the same priority for their taskqueue threads > as > the ithreads use, so the effectively preempt just about everything and are > not > preempted by other task queues or swi threads, etc. > > ok this also explains why i see livelock. I hate priorities! luigi