Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3153618ybd; Fri, 28 Jun 2019 03:50:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqww/ids2Mk8wDD381WShbFCvbT7vCtxS+zQNU4u+yIErU8+w/Q6f2fNo4XH3Vs7tuut1hhB X-Received: by 2002:a17:90a:32c7:: with SMTP id l65mr12402561pjb.1.1561719056328; Fri, 28 Jun 2019 03:50:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561719056; cv=none; d=google.com; s=arc-20160816; b=fZY1zf6pKpc3B6+/PwbfbFHZ+ktBpYbyVwt0jemavya5HB79SVzMqNulkrtumJ1AUX RsLd0CAXEfsFpmkXjS+BHsxoMtW5zcTdnvC8RahdFATYQjapCYZeSlZng0xwzcUhK3j9 +ki08ILOPl7VzlfbsNFvvX4QjBz6sV02m0+aXXBsL/7dttPLIbHMJFzKmycMtyYNXSDl xGpGsdBBjmnC/yF/HAq23cteq5FA3pni/1M/JJdXZSXkkmqVc/r1ef8mK3cSRwB825Y/ 7gnG/qd7faucHdnksbLncCxNZtB9OSYLWSkimsB5wop40CuGCgEWn/6gcbJoXLloMml7 5UXQ== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=3cJJoJEXFV+XtKyenCn2tw7WIFkNrTCW3VmDypMs8W4=; b=wTPMUU8zMfDnqeRh1BYArpKv0LXomOPYH/nECGOB2UmjjymxZWRHggqeY7Z183bR5e pK4QTUwGNWGT51qrSasw3dUQTO/KAwxai0W7f+9LZFRBdEO3LqqAVW4iz+6ahPOmfql/ FSFWK1fQ9MF9bJalNFQeUdy1k5LZ/LkqgVs8MNxb5zV7VgbPe17lkWR+lOVkLRvyfJfM zKqmlISa+AVyH02a/TOLE+Uy850gqH7rbILMBzmoxpPTopL+PPRIZYl9TtCt5ZojXtgp b7MXTl2TK6Dg2wGg2OR1GMSxWFtzsSox1SgMCGd2L3xBMdxXzyFblqSSTySv6+ZotL4q P4mg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g23si2069599pfi.153.2019.06.28.03.50.28; Fri, 28 Jun 2019 03:50:56 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726805AbfF1Ktn (ORCPT + 99 others); Fri, 28 Jun 2019 06:49:43 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:46932 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726543AbfF1Ktn (ORCPT ); Fri, 28 Jun 2019 06:49:43 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hgoRo-00079l-SE; Fri, 28 Jun 2019 12:49:40 +0200 Message-ID: Subject: Re: [PATCH 2/2] iwlwifi: Extended Key ID support From: Johannes Berg To: Alexander Wetzel Cc: linux-wireless@vger.kernel.org, luca@coelho.fi Date: Fri, 28 Jun 2019 12:49:39 +0200 In-Reply-To: <7a173bac-37d2-b470-8cb6-0f7e41e26ca5@wetzel-home.de> References: <20190506190149.3624-1-alexander@wetzel-home.de> <20190506190149.3624-2-alexander@wetzel-home.de> <7a173bac-37d2-b470-8cb6-0f7e41e26ca5@wetzel-home.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-3.fc28) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi, On Wed, 2019-06-26 at 23:10 +0200, Alexander Wetzel wrote: > > iwlwifi cards are all able to support Extended Key ID as long as > > mac80211 stops A-MPDU aggregation when replacing the unicast key. > > > > Enable Extended Key ID support and tell mac80211 that it has to tear > > down any running Tx aggregation sessions during rekey when using > > Extended Key ID. > > With the merge of the A-MPDU handling patch > https://patchwork.kernel.org/patch/10931861/ we probably should simplify > the API for Extended Key ID and not merge the patch as it is: > > 1) We can drop EXT_KEY_ID_NATIVE from mac80211 and let the drivers set > NL80211_EXT_FEATURE_EXT_KEY_ID instead of mac80211. > Without the COMPAT support the naming is off and the flag is simply > pointless. Assuming we want to pick up the COMPAT Extended Key ID we > still can just define a new flag, e.g. > SINGLE_STA_UNICAST_KEY_OFFLOAD_ONLY to tell mac80211 it can only > have one unicast key active in the HW per STA. Yes, true, with the compat more or less off the table for now, we don't really need this extra complexity. > 2) Mac80211 would then enable Extended Key ID for all drivers using SW > crypto and just also set NO_AMPDU_KEYBORDER_SUPPORT when the driver > supports A-MPDU Right (or not really set the flag, but get rid of it?), though maybe some (rare) driver would actually support ampdu keyborder? Ath9k for example could do that since it builds the aggregates in software, so I guess we'd need some flag indicating the opposite then. > 3) we then could undo (revert?) cfe7007a9b4c ("mac80211_hwsim: Extended > Key ID support") and let the more generic code in mac80211 handle it > > If you agree I'll prepare and test a small patch series for that. > And we better only merge a iteration of this patch here once we got the > API updated. Sounds good to me! johannes