From owner-freebsd-wireless@freebsd.org Sun Jan 24 21:40:44 2016 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C2BEC9D99DE for ; Sun, 24 Jan 2016 21:40:44 +0000 (UTC) (envelope-from s3erios@gmail.com) Received: from mail-lf0-x22f.google.com (mail-lf0-x22f.google.com [IPv6:2a00:1450:4010:c07::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4402D762; Sun, 24 Jan 2016 21:40:44 +0000 (UTC) (envelope-from s3erios@gmail.com) Received: by mail-lf0-x22f.google.com with SMTP id h129so74751024lfh.3; Sun, 24 Jan 2016 13:40:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:to:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent; bh=rAQ++9ypzbYA2BM89EsZeJ2GGjigXyslkFFRB3j+l1I=; b=Jcud1Cj97NgeBxRcCkGZzFIZbDlhbWedLtWZZaJwnRMHQrTqv2v/hvnina/d6YrGnA ErH+ss10Bvzm5+nfz/8c2rg0/S+addtmLnmBEQMq70/Wn3pkRG1DnJ5aXEpAiz1lNM3h kpCkwtX/lsa3TEBiyi9WCGVjs2oyr/jjMqxZGFdwStCvCQuf9tKeNLeYrT1gGBIXSY6W k1ajoElcOJTQ9kwKJMGzgp5iQODaT7adN2jlKdXkM3skcM7mODKzFdG/4B0pqs92wDgN yo4zWL3bIFRX5i1xz/QKWyPbdEKVsEsPi8Ue9EH/+Qj0OZ/WXKdS5m3ZW+tqanUlU5Vh JpsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:to:subject:references:date :mime-version:content-transfer-encoding:from:message-id:in-reply-to :user-agent; bh=rAQ++9ypzbYA2BM89EsZeJ2GGjigXyslkFFRB3j+l1I=; b=GvOx8xF5fH1cQNNYeQAjDc7Wqtfsycl/YEEsarqpEofAAbY/Oq+uzMHka5IS9YRw7P z/IwhxJXEMdcANBhtb4M0s7VBLHFnzArrZdLe9WIYuen3bCkWD6XkaVIh4Mpz2/vKuME 0pSiCQjJ08IKWV1SGA+wGpy38fU9TOxJ/nwHLYLcbBMWZOUCDwM1kLv5I8OBf2YpQFut EDZ28jkkgwLP49jbXnzHGUX0QqFwmml5UVr3aEGF8mjX0ynY4YJQ3wUViS+d8WhTp6Nd GUKSqw+sqnbvXAxX51sHB+Kch+67qrPltinA7Av7SAcgECadhq2bEIOFPO6qk9wT1t00 HpZg== X-Gm-Message-State: AG10YOQ3YsDNlxgx7w3uxUTWYkUJd+SeN9eNxOEqLu52BcvwD9ur1pvYH/mR0g1YMaBYZw== X-Received: by 10.25.136.139 with SMTP id k133mr5088555lfd.157.1453671642309; Sun, 24 Jan 2016 13:40:42 -0800 (PST) Received: from localhost (host-176-37-109-22.la.net.ua. [176.37.109.22]) by smtp.gmail.com with ESMTPSA id th4sm2248500lbb.46.2016.01.24.13.40.41 (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 24 Jan 2016 13:40:41 -0800 (PST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Adrian Chadd" , "freebsd-wireless@freebsd.org" Subject: Re: net80211: why we ca'nt use the net80211 taskqueue for everything References: Date: Sun, 24 Jan 2016 23:40:40 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable From: "Andriy Voskoboinyk" Message-ID: In-Reply-To: User-Agent: Opera Mail/12.16 (FreeBSD) X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jan 2016 21:40:44 -0000 Sun, 24 Jan 2016 22:22:44 +0200 =D0=B1=D1=83=D0=BB=D0=BE =D0=BD=D0=B0=D0= =BF=D0=B8=D1=81=D0=B0=D0=BD=D0=BE Adrian Chadd = : Hi, is it actual for wpi(4) / iwn(4) ? > hi, > > andriy has a few reviews out that tidy up some things, which I'd reply= > to, but .. reviews is offline. So, here's the 30 second version: > > * the net80211 taskqueue runs the software scan engine, and the > software scan engine currently sleeps whilst it's running. > > This means that if you put newstate, deferred transmit, etc into the > net80211 taskqueue, then it just won't run during scan. > > The net80211 software scan thing should be modified to not sleep > whilst it's waiting for scan results and instead just kick off another= > timer event to finish that part of the loop. Then yes, we can just > migrate * to the net80211 task queue and use it for all serialisation > of a wifi driver. > > (And yes, I'd like to see that done ASAP..) > > Thanks, > > > -adrian