Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1341713ybe; Fri, 13 Sep 2019 15:06:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzeF0pUS9eGf+Pb4hRbXI65YugkAApD72lwCXpcL5Ccrl5atDkd8rtpcxcqo6rPy7CltMbS X-Received: by 2002:a50:e70c:: with SMTP id a12mr49609653edn.73.1568412419733; Fri, 13 Sep 2019 15:06:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568412419; cv=none; d=google.com; s=arc-20160816; b=B7XOSHweoJ0mMBI89AMLWVzXmS4y59IYNv8Y9anvr9Y68D6D3ss0a9EtQLitvJ77qo Bx1jSif1EhICMZivJaDSBThEyNga1PwVt0JavaK5ACP7slCIBOZII1reTvWipyxxcMxE 6RTR/7EeKy1pA0fSXqWSnouOiAVdCV4AZHKgcchDP5gzpyqsVXQFCmu5eQzeIFXfwEXg VWtq1z/FcDg7BW10n2xB3oHrd4skcE8G1T9vLENXKsO/5/rmai7P8VtD3tdPjuAxzJpF Rk0g+9QKD29pcfHKfXYpklvueGnUhghi7rRCNSP0rGdK3QKXhUc6g/A9UDro/Z9KYjC9 jyhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:dkim-signature:subject; bh=8J44RiR5w5LSs/KGUFjvoir5TPzeMdkl/HxkCwBpz2M=; b=ThwHo6C0F6FWUiWWWYZy5jbPgep/dHraPcQFh2HNcU3mP1YonhPU6dAve92/CVeHxQ qeHMGy3mZxDnApMz2NHy2u3oGJ3ZbQEmWfw/8y6G7NuNR0ZG7vkJKbQP/EgDvhgOfZkV Ka4lq8dRMUquggh1yYoD0MctMzFW4w6j2nVF7VjeHYEK+o6AqizEZo88E90yXU+g2KG5 VCby0Qox6IBIuaoS3GHMAn6GmfnSMoShrn9C47ba5AL3LnHuaYiVBqgSRkIdQc2s/R9/ Ol6r0fFiYgOQh8U38H6QgBDaOmfxNv4LC+qc10B3cAOG+eux3sYSyZP8i0fzx5bSHBHn 7VIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wetzel-home.de header.s=wetzel-home header.b=VtRTV5cQ; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wetzel-home.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o24si14981512ejb.296.2019.09.13.15.06.21; Fri, 13 Sep 2019 15:06:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@wetzel-home.de header.s=wetzel-home header.b=VtRTV5cQ; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wetzel-home.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390540AbfIMWEv (ORCPT + 99 others); Fri, 13 Sep 2019 18:04:51 -0400 Received: from 2.mo1.mail-out.ovh.net ([178.32.119.250]:34624 "EHLO 2.mo1.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389867AbfIMWEv (ORCPT ); Fri, 13 Sep 2019 18:04:51 -0400 X-Greylist: delayed 2403 seconds by postgrey-1.27 at vger.kernel.org; Fri, 13 Sep 2019 18:04:50 EDT Received: from player158.ha.ovh.net (unknown [10.108.42.83]) by mo1.mail-out.ovh.net (Postfix) with ESMTP id ECF9F18F557 for ; Fri, 13 Sep 2019 22:48:21 +0200 (CEST) Received: from awhome.eu (p57B7E67F.dip0.t-ipconnect.de [87.183.230.127]) (Authenticated sender: postmaster@awhome.eu) by player158.ha.ovh.net (Postfix) with ESMTPSA id 18D539B283E7; Fri, 13 Sep 2019 20:48:15 +0000 (UTC) Subject: Re: [PATCH 04/11] wil6210: fix PTK re-key race DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wetzel-home.de; s=wetzel-home; t=1568407693; bh=C/MTRKucCQexrI44T2Nu91LyY+09ypq/BewO4fLc6ds=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=VtRTV5cQt5QosVKvoBQIpHDTBH+0b3lY+f5TkSj97mUbWypygB7gC4m0jUu1cKSwj 6G/DMenw0Cb8fDQD+mNcwoeeLgjPGPGn3FjEQanzWKNzdxhA5DDndhONLi1U25SKQl eDloSXeuAWMEjjj2z3nHjJyNcrSNXm7lyDyiTXgo= To: Denis Kenzior , Arend Van Spriel , Kalle Valo , Maya Erez Cc: Ahmad Masri , linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com References: <1567931575-27984-5-git-send-email-merez@codeaurora.org> <20190910132315.D7AC7602F2@smtp.codeaurora.org> <7b636313-fa4a-5ee4-935a-ba2ed5dde1e5@wetzel-home.de> <2c6bc637-62c2-020c-ab83-d2e1677d96b2@gmail.com> <5716f475-856e-7fd2-637b-67927f4f78bc@wetzel-home.de> <74c0e328-320c-0999-836e-1bfb0fa224ff@broadcom.com> <13f699ef-16c2-3ba7-79a0-0934f5e39368@gmail.com> From: Alexander Wetzel Message-ID: <46f1141c-929c-9686-017d-fe4305d9c922@wetzel-home.de> Date: Fri, 13 Sep 2019 22:48:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.0 MIME-Version: 1.0 In-Reply-To: <13f699ef-16c2-3ba7-79a0-0934f5e39368@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 41939774643313792 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrtdejgdduheefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddm Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Am 13.09.19 um 16:33 schrieb Denis Kenzior: > Hi Arend, Alexander, > >> Basically, we now have two bypass methods dealing with the >> same/similar issue: >> >> 1) bypass the QDISC. >> 2) bypass network stack entirely with CONTROL_PORT. > > It also raises the question in my mind as to why we have two ways of > doing the same thing?  From the discussion so far it also sounds like > each requires somewhat different / special handling in the driver. > Wouldn't it make sense to deprecate one and encourage drivers to > implement the other? > My understanding is, that any control port frame must bypass any queues and just send out the frame directly, correct? Any packets send via it is directly jumping to the very front and is immediately send out. And that the intend of it is to replace the "old" path. So the best way forward here would be to 1) implement the patch here to work around the problem without control_port or the theoretical QDISC bypass 2) start implementing control port for the future. correct? > CONTROL_PORT was added specifically to take care of the re-keying races > and can be extended with additional attributes over time, as needed > (perhaps for extended key id, etc).  Also note that in our testing > CONTROL_PORT is _way_ faster than PAE socket... > Extended Key ID is pretty robust when rekeying and the driver/card only has to take care to not mix KeyIDs within one A-MPDU. It's no problem encrypting eapol#4 with the new key. You can even encrypt it at the initial connect and it will work. Basically all races the "classical" rekey has to work around go away. For "normal" rekeys it's working pretty well with ath9k and iwlwifi even without control_port and just learned some weeks ago that QDISC could still cause issues... Alexander