Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1310635lqa; Mon, 29 Apr 2024 05:11:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXzErI4OXMVLNN7riUfV2p5E2wBNpPimJmZ6XFQe8RORrHoMUhbOP2r1ScnxRdVsQMKowgpAtWucpu0ZyU4moEMpT3hhAYKMB+xXXc1wQ== X-Google-Smtp-Source: AGHT+IH/DOJvNGdB0jkgr5A3FMdMvv9qN/+qg8pYd0jzgyem3lfHPT0HAY8ExZhlnhfs+bVnR3hm X-Received: by 2002:a05:6a00:9392:b0:6f3:ecdc:220e with SMTP id ka18-20020a056a00939200b006f3ecdc220emr7311780pfb.24.1714392714849; Mon, 29 Apr 2024 05:11:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714392714; cv=pass; d=google.com; s=arc-20160816; b=HXn+Dx0BdEBfjYjNMXcrDICfFr1gSHY6uCrXpWJuKs9OOgNtKUFn075f32dGLYaJgC 6cQaMQF1ozO5HahpjoVZ74Yy6zYtt3zqdpnFImQNXrDqsBguWAdjFmUlDd7fraeBWH/y M5V5YQ+xkIw21hBqsQ8HMMTBT/q1qtOeDJg1aTSyuhIYXub3XqQr69KU2kraNtdOC3F+ LUr94OiK0La0wcqmVmbfn0HtvGnA4eQMW9M2DkccCjvwsulsaNERH4TcQqOA3HJ6qsVZ ESfls16kmARxxe9pq7ltVYYZe1bNB+QxzbLl5CojDVZUZPx2RDxLX6XZdzrtwtVxcV7U n0mQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=H+eupiIIC3zcFVNwOSflZiCwKLV+wdtCtjNUcI/UrXQ=; fh=90Vheg3jxI1cABxO9y6koJW9k5P4NxMQunKZ1IiPlP8=; b=hr+f6QIDPhs4/jb3WXk4ksf1upRPH7DEVUaAbRYqjyQgEs9iplBy2Qh4pqyKucmlNK 1KV46TkSNXILW5pTEsy5yU221nnYX3gX7CkwbpsZ9CQgfO34zGW9Z0Pv6gkJxKpS2TtC Mrh35q27JkhtXWo4gIK6g/CRF+Hobuxjg6Q2D26zQirzc8uyT1r36TBn2Wo02IzxDT0T ORm0Gs/LVxPDWAJxAn52Jheh8jxWuBGGOeDR27RDpXIKxW4pR86N3k0nTFZvUtjLHzKo zgDhMjtXHQ4m9UFtbqFg0SCpSuArKmS99tLhs62y9HF4cuwray94MMlloWVTCzH0Mj1F zpyQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@narfation.org header.s=20121 header.b=OfOWaGls; arc=pass (i=1 spf=pass spfdomain=narfation.org dkim=pass dkdomain=narfation.org dmarc=pass fromdomain=narfation.org); spf=pass (google.com: domain of linux-wireless+bounces-6985-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6985-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=narfation.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id x7-20020a654547000000b005f057f3746asi19440051pgr.449.2024.04.29.05.11.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 05:11:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6985-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@narfation.org header.s=20121 header.b=OfOWaGls; arc=pass (i=1 spf=pass spfdomain=narfation.org dkim=pass dkdomain=narfation.org dmarc=pass fromdomain=narfation.org); spf=pass (google.com: domain of linux-wireless+bounces-6985-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6985-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=narfation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 04113B21109 for ; Mon, 29 Apr 2024 12:03:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF959535C1; Mon, 29 Apr 2024 12:03:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=narfation.org header.i=@narfation.org header.b="OfOWaGls" X-Original-To: linux-wireless@vger.kernel.org Received: from dvalin.narfation.org (dvalin.narfation.org [213.160.73.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86E2E53E33 for ; Mon, 29 Apr 2024 12:03:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.160.73.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714392190; cv=none; b=Dk0GlO6DbClvPca5d5lwX7GnBwhGnVK6BmRdQ2iYsHyYAl60XiydqwRwYrXqHB0RYpt5bzOP//jvyjLq8Y3vQGo62Ney3FU36ux90JvPS28mZn5kCiEVI+zb6VNaox+WpDWd7zecM4YwVEPK6LBe+QmipKxNugdN5pVs0jJVP7E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714392190; c=relaxed/simple; bh=vftSGFpv9sp0DvAreoTdzRHdoVnENU1KMMZljiMxJ98=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=c2FunC/vs6mQx8ypzTkEpkYmIHkiKZJhcYD/3AVbjmfCTedZA4ChYOus52L10MFKd/mQCnSUxx79inf/5qcf7ALkkn1oqYvOFuszMvTpLb8BfKLp4m6udvoALJUAZJ9dx8BNomvCnoSm/1vdyEniiJrhHa3GtnY7Agw9EZThZIY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=narfation.org; spf=pass smtp.mailfrom=narfation.org; dkim=pass (1024-bit key) header.d=narfation.org header.i=@narfation.org header.b=OfOWaGls; arc=none smtp.client-ip=213.160.73.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=narfation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=narfation.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narfation.org; s=20121; t=1714391699; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=H+eupiIIC3zcFVNwOSflZiCwKLV+wdtCtjNUcI/UrXQ=; b=OfOWaGlsrxHQUtnjPxjUGxcgZl4smIQfKE9ivJdnbTn0x6uFS2VWkErWoe7ZZKuKT5BcO9 HBumQi5kw/CsApcKqEqF3PogADmqGMtJQx4sNaVpjSu/B+lJvagcoyJGzF/X6hO4ZiaJrt PSwN4Tg0aCxCiGwypJfI2S6ISXOkktk= From: Sven Eckelmann To: ath12k@lists.infradead.org, Karthikeyan Kathirvel Cc: linux-wireless@vger.kernel.org, Sarika Sharma , Karthikeyan Kathirvel Subject: Re: [PATCH v3 1/2] wifi: ath12k: Don't drop tx_status in failure case Date: Mon, 29 Apr 2024 13:54:54 +0200 Message-ID: <2323473.ElGaqSPkdT@ripper> In-Reply-To: <20240429114841.413901-2-quic_kathirve@quicinc.com> References: <20240429114841.413901-1-quic_kathirve@quicinc.com> <20240429114841.413901-2-quic_kathirve@quicinc.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4887899.GXAFRqVoOG"; micalg="pgp-sha512"; protocol="application/pgp-signature" --nextPart4887899.GXAFRqVoOG Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii"; protected-headers="v1" From: Sven Eckelmann Date: Mon, 29 Apr 2024 13:54:54 +0200 Message-ID: <2323473.ElGaqSPkdT@ripper> In-Reply-To: <20240429114841.413901-2-quic_kathirve@quicinc.com> MIME-Version: 1.0 On Monday, 29 April 2024 13:48:39 CEST Karthikeyan Kathirvel wrote: > From: Sven Eckelmann > > When a station idles for a long time, hostapd will try to send > a QoS Null frame to the station as "poll". NL80211_CMD_PROBE_CLIENT > is used for this purpose. > And the skb will be added to ack_status_frame - waiting for a > completion via ieee80211_report_ack_skb(). > > But when the peer was already removed before the tx_complete arrives, > the peer will be missing. And when using dev_kfree_skb_any (instead > of going through mac80211), the entry will stay inside > ack_status_frames thus not clean up related information in its > internal data structures. This IDR will therefore run full after > 8K request were generated for such clients. > At this point, the access point will then just stall and not allow > any new clients because idr_alloc() for ack_status_frame will fail. > > ieee80211_free_txskb() on the other hand will (when required) call > ieee80211_report_ack_skb() and make sure that (when required) remove > the entry from the ack_status_frame and clean up related > information in its internal data structures. > > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 Thanks for porting and testing both patches on ath12k. Kind regards, Sven --nextPart4887899.GXAFRqVoOG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEF10rh2Elc9zjMuACXYcKB8Eme0YFAmYvio4ACgkQXYcKB8Em e0bp6A//YzB2dprLEdV27QypAs5E3l/3pnIf+iSCoH0DuZApGLCt3IyS6Q6cLtMJ 6TuHe4995GhjVVmvD2p9g+MAfcD5olfJVFKB5QUb8wdgQtKwiSoDeKUkxVCM+1EM TeHYdTcDBCJqnGwR06+BECdk+pWfh7zli3L/8UyLbCX3dlFGvaZAo1Hmu0N+nTbN ALyc6PtyZPWOMYJTbZEBZ145BNHOW2adz15dDCdiSmcRcZLugmm6fDZwAwPadZkr vthJ0yVR/yF+uMPrCH9mKa5fWVjV2GI6he1ioY+6GprJ5KOZzG5K3UGKdBrjydcZ eGx+t8LZqc9wPU4TyaOG3S7IF4INLI0WaJFTEMAoyQEHQHzvP4OuR+YvAOtNqbvL PJOA6HW68tFIZHidq+rVReOZirLhC7cdNV/iK/iyWremwJJX0mFT9OsIa5aIXzEH Cn2O6sCHfKEgMZrsy0yRtLXcrmsakupqYyYnsjyHGZy35bPIbXDdFaE0TLNwLx1T Y/1PNvOMlv1laH65Xzrw+W1IABsfiUIB7+ipCEchGljwR2rO9nXamaFoA2XjT5iz OAoT5qe5UPxvHpssfFn3swT8ALsjVx7MuCbiWgvx86/CEbNnbL/f/+k4wkGLJPIr TILIfybyNUutmbI6og9C7szeE0yzsX6y6/Y00JzEedI1Ui6m8CA= =ZGBz -----END PGP SIGNATURE----- --nextPart4887899.GXAFRqVoOG--