Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1074932pxk; Fri, 18 Sep 2020 03:11:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHMQC7mRV6GTKmpCIlnctrLL5wNYBKFJEOdYN+5i6D6r3P2YAN9sPyTOL4l6hfDDviWnaE X-Received: by 2002:a05:6402:8:: with SMTP id d8mr36025077edu.15.1600423894834; Fri, 18 Sep 2020 03:11:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600423894; cv=none; d=google.com; s=arc-20160816; b=kWO2QuvrdVrAjg1BdT988ujb1yFft/Wk5rMrfb4g8IqwrdkMNC7TEc5pMsRfkIBghY pkvtuqq1vTsq+HC6HUW9zuCOpvOGkK3H8I8X2UVP9qyBjZ9NJAi4Ik9AXRF+y99waE9+ vWB9nPelCWT+DGpb9wrRmY4nfZ7Pv/xLYF50mDYYYsz6S4/fo6V9755/8Lx2d7MSJ//a zdzCsUh7mSDKXHYBGA3kfTDs+QE9RzJyZiv7H+IeuYAk9RSEs5lr5HK1voMljg2ulEnk ZO7aeEFBQpTTwlJBaHPsp3W70mJBWgG162QLuzLHIdX8qrJ7feXzxfwZqsfIz3eeE8n+ AQbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:to:from:subject:message-id; bh=E0Lm3g7hD2V6gpWch9NmcuAXRBOLtpXwwbTo68qyclU=; b=EE4SytmZan/7ILmKtHm5+TNM9qsfXnYWvEu1+iAITTtF8k+8yV9ZHIjCUKjSRW7Tse YRT3DG3JhQNg2Q157Ajy2/6sm7cqolOLdr2qtd4S0arpqgb1r4DVtzie8NeBwCY54np4 Np5lw+x9lmjRv/mhUXtDmMpRr/Ul98qONr+fwGkBsbTm2RKYP5ldZfS8u9fUyRwZjHox 1LLe8EPVM8+/eAs7ENhtqXnE0HaKpHE+DIpR0PUOEZTvJN99JBq9qYZOL70N+mv6sv5v LqE3+x0OUdT6kfsh+pDwX1nFR+76WjaWeiRcR387ImxSHtxzqU+Hcge2gwUHZvElnjXq AThQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cx6si1730285edb.437.2020.09.18.03.11.08; Fri, 18 Sep 2020 03:11:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726115AbgIRKLF (ORCPT + 99 others); Fri, 18 Sep 2020 06:11:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725874AbgIRKLF (ORCPT ); Fri, 18 Sep 2020 06:11:05 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68FB7C06174A for ; Fri, 18 Sep 2020 03:11:05 -0700 (PDT) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94) (envelope-from ) id 1kJDM7-006BQO-Gq; Fri, 18 Sep 2020 12:11:03 +0200 Message-ID: <5f03909aa3ac34700c08aa87077b2ddc1d2e3be7.camel@sipsolutions.net> Subject: Re: [PATCH v4 05/14] mac80211: rework tx encapsulation offload API From: Johannes Berg To: Felix Fietkau , linux-wireless@vger.kernel.org Date: Fri, 18 Sep 2020 12:10:58 +0200 In-Reply-To: <20200908123702.88454-6-nbd@nbd.name> References: <20200908123702.88454-1-nbd@nbd.name> <20200908123702.88454-6-nbd@nbd.name> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, 2020-09-08 at 14:36 +0200, Felix Fietkau wrote: > The current API (which lets the driver turn on/off per vif directly) has a > number of limitations: > - it does not deal with AP_VLAN > - conditions for enabling (no tkip, no monitor) are only checked at > add_interface time > - no way to indicate 4-addr support > > In order to address this, store offload flags in struct ieee80211_vif > (easy to extend for decap offload later). mac80211 initially sets the enable > flag, but gives the driver a chance to modify it before its settings are > applied. In addition to the .add_interface op, a .update_vif_offload op is > introduced, which can be used for runtime changes. > > If a driver can't disable encap offload at runtime, or if it has some extra > limitations, it can simply override the flags within those ops. > > Support for encap offload with 4-address mode interfaces can be enabled > by setting a flag from .add_interface or .update_vif_offload. > > Signed-off-by: Felix Fietkau > --- > drivers/net/wireless/ath/ath11k/mac.c | 57 +++++---- There were some conflicts here with commit commit aa2092a9bab3 ("ath11k: add raw mode and software crypto support"), I hope I've fixed that up appropriately. johannes