Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1088571pxk; Fri, 18 Sep 2020 03:32:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+4OdmXtPmyuYCbrxcfEiTlF+3cujt46pdtGWKIlwO8w62lPabVRVOTJ0O6bVZ4HNYjkCd X-Received: by 2002:a17:906:d936:: with SMTP id rn22mr35613789ejb.4.1600425145930; Fri, 18 Sep 2020 03:32:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600425145; cv=none; d=google.com; s=arc-20160816; b=DgKmWqLX2RhOl9UPh0+DEwHjvImGnUuUgUAoAChvl3EfpR7e2Af9zvv/GsWsqOKU/7 mEcRbE3y0K0pwR23ZcWnzilxW/BHXUISKevHO7dg0w5+Jj9RnhdEAQfIk82uRhdxuRiJ eohjV+3b9KS1qrevr5Me+G5um4yCqBalRUaEuyL/Ct4O6Ua9XzqkVEYY4O5FL+peZ8cI 4nhjmm2tIMtkaFORENXH1plsnqKB2NSIAJXBXTMWJEA8HLEBeSoBUqD98ZEgETq3FMlJ cimzRKm7kVcL1SVtRhGTq/Yitma9ju2li3eipV+QM3M6960sevBQnJ3k3MVkxvasHhGy WTOQ== 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=l7SANThzbRWefG+AVZ5dpZ/ZkTiwGQ0OWZ1Znw/zQZo=; b=XS4OkV+lz36ojGIa4oVMA/VD1G6j+2LBBzbRpXt23POKYoFihsDjdcoZ8iq75buyhh LxM91A6MbAS9uELfUAVuJsHbkoATAKZi25R+04AKlEiL8m/I624TQEQoiPxmlHGQouMM hVHPQHQfrEBrmBLUmQUuikljAtlJMYvZijbSrs7px7Tw3KgNBQatG9DVC2VTcRQy6I/o y5RF2ADCy8bKBvPGKHDbjJVMIiJ4u7q4qIpPnQaJlMczUEBmSn62IZ5IKYBJv+7j+5sV R/MI1frJs3+1iDy7GCe90brEoU/7Xs4/r2Rlvv34dheLQo5jDdDZvtpuEw0emhlwxxIu TUVg== 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 cw12si2115396edb.20.2020.09.18.03.32.00; Fri, 18 Sep 2020 03:32:25 -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 S1726316AbgIRKbl (ORCPT + 99 others); Fri, 18 Sep 2020 06:31:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726064AbgIRKbl (ORCPT ); Fri, 18 Sep 2020 06:31:41 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8039C06174A for ; Fri, 18 Sep 2020 03:31:40 -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 1kJDg3-006CAp-9A; Fri, 18 Sep 2020 12:31:39 +0200 Message-ID: <6f43e5779e7ea7959e7614fc0a28e07c33f6f7ee.camel@sipsolutions.net> Subject: Re: [PATCH v4 11/14] mac80211: support using ieee80211_tx_status_ext to free skbs without status info From: Johannes Berg To: Felix Fietkau , linux-wireless@vger.kernel.org Date: Fri, 18 Sep 2020 12:31:38 +0200 In-Reply-To: <20200908123702.88454-12-nbd@nbd.name> References: <20200908123702.88454-1-nbd@nbd.name> <20200908123702.88454-12-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: > For encap-offloaded packets, ieee80211_free_txskb cannot be used, since it > does not have the vif pointer. > Using ieee80211_tx_status_ext for this purpose has the advantage of being able > avoid an extra station lookup for AQL > > Signed-off-by: Felix Fietkau > --- > net/mac80211/status.c | 32 +++++++++++++++++++------------- > 1 file changed, 19 insertions(+), 13 deletions(-) > > diff --git a/net/mac80211/status.c b/net/mac80211/status.c > index ac4d988556b0..a3543c3dbd3d 100644 > --- a/net/mac80211/status.c > +++ b/net/mac80211/status.c > @@ -1087,6 +1087,24 @@ void ieee80211_tx_status_ext(struct ieee80211_hw *hw, > bool acked, noack_success; > u16 tx_time_est; > > + if (pubsta) > + sta = container_of(pubsta, struct sta_info, sta); There were some conflicts, e.g. this was already in place ... Please check once I push it out. johannes