Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp572659rwe; Wed, 31 Aug 2022 07:31:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR58uIOGoiA1olZ1dO9FX6YK72Qna/DUEzmDh8whx5UKLUt9UhZ3u/q2C68X3TETdLJdERDi X-Received: by 2002:a63:d55:0:b0:41c:86b0:59b5 with SMTP id 21-20020a630d55000000b0041c86b059b5mr22098306pgn.351.1661956277595; Wed, 31 Aug 2022 07:31:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661956277; cv=none; d=google.com; s=arc-20160816; b=BlHuzVwRtzOtvjhN5oYfpPVqbowOum3EUN/HOc4KY8juc4rVg1oriLVOo/EQZ4y9kf n6kXy26NbMLqOw7uW4d33xcepeneXNRnIbxQuoEeYD6Ul/R2igsLp7RvIwKq9UKYTNLm QAdPUrBvgbsXnYWu2ySuXmU0Ox7f/sEoT7Jac+CiD3pH4MGLldR8lVqhFvsU271bx9GX LDjsIjXhLYg+8zjpMqC1csjPVWx2IEbkYkCSTuEcysjWlbE2oQFdEBD/jxte9pTL0FQ1 HvHsIiCorpzxgQljgiOxTsU3urLPwgznUAYByeu+Guhrhl1uKiKPlY6v3Tj4P2ui6cFu ykTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=Ehnarzbpxd7Ftbfec2OohmHqgzlPomf9Q0fvWcDKozA=; b=n+tjYEx5LkSVpLQlLkrJ1XsQYZzjQPUACtLmxGz5RIHkuUn+0WnAtkulPet//+BA3W 9sn4D8JOeDdIF7OTqXiWWv+xr9fBtk6DTtJSWeBp9Qnbi7DJYH+5tHf7JT72giNkVifq Rnz6/Kag2V7118Ll6QKqRJ+qJc8DMB3MSPgxBTNE/6ermNTLsxFy49SDpDldFSVnEx7y Gh/QMYAGb+8tCP2hjRvJyAOdGSrtvL0PJjo6qzE0dg/nAXbS/HwVCLvMX1eOC3WHlzlg fCSc6nmU6sl3LCqxieCBEm8AOFhzozVcgL+2XMz5CsDGp/0t60A1msoF4ouFcxYyXydF 1QFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=vNw9a4mv; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a6-20020a63e406000000b0041d54900184si5219927pgi.497.2022.08.31.07.31.03; Wed, 31 Aug 2022 07:31:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=vNw9a4mv; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232141AbiHaOWQ (ORCPT + 64 others); Wed, 31 Aug 2022 10:22:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232103AbiHaOWO (ORCPT ); Wed, 31 Aug 2022 10:22:14 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40441B2CE6 for ; Wed, 31 Aug 2022 07:22:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=Ehnarzbpxd7Ftbfec2OohmHqgzlPomf9Q0fvWcDKozA=; t=1661955733; x=1663165333; b=vNw9a4mvpx9MDXbyt4XOud7livxAdsp/GomY4AgjMB8g90u feCSySnl8j++S1R+p8GnwZpmnZgtIpOMtwXKtXsB6DPMUCkchnjvRDFQyiNvT7hYRDpXapKBnZzkw qaB0iugXiGuSCwxP9Q8aZoJtC6oEAA0cGo4mGwKV3CnEOgJwCjoyjf4Tbp6g+bUyW0MTkZaQf8zAN Ic031U1atG9aLUsDZPsrkL20g5uGSlP2Fgs7zOzmMjjN+0QQnoHtKrXLAyljHg0WfESclp9nXADSz ZMw2OfwcS6sIUJ7IlqtgcSWUTgmzg5xVNo1sp4U6DdNMhTod7456zMjaZV4xrjwg==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1oTOba-004YWr-1i; Wed, 31 Aug 2022 16:22:10 +0200 Message-ID: Subject: Re: [RFC 0/4] mac80211: add TPC support in control path From: Johannes Berg To: Jonas Jelonek Cc: linux-wireless@vger.kernel.org, nbd@nbd.name, Thomas =?ISO-8859-1?Q?H=FChn?= Date: Wed, 31 Aug 2022 16:22:09 +0200 In-Reply-To: <7CFDCFCC-A369-4F41-90E1-A26591C20D92@gmail.com> References: <20220829144147.484787-1-jelonek.jonas@gmail.com> <467218ec220ea6e36b4222efc5c46e4e350fe1ea.camel@sipsolutions.net> <7CFDCFCC-A369-4F41-90E1-A26591C20D92@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 (3.44.4-1.fc36) MIME-Version: 1.0 X-malware-bazaar: not-scanned X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Sorry I dropped out of the thread - busy with other stuff. I'll reply to other mails later. > I am working on the hwsim support right now, tpc support in hwsim=E2=80= =99s > control path is implemented. > However I encountered a problem in the status path. Hwsim seems to > hand over to mac80211 > tx-status asynchronously via ieee80211_tx_status_irqsafe only. There, > the skb is added to > ieee80211_local->skb_queue and then dequeued in > =E2=80=98ieee80211_tasklet_handler=E2=80=99 to be passed > to =E2=80=98ieee80211_tx_status=E2=80=99. For tx rates this is sufficient= , but there > is no space left in=20 > ieee80211_tx_info->status to pass the tx-power per packet. > Please correct me if I missed something in the code. >=20 > My idea to solve this may be: to use the SKB extension (struct skb_ext > *extensions) to pass the=20 > tx-power information (and maybe more) for each SKB. Could this be an > appropriate approach or=20 > do I miss something here? Maybe someone who is much more aware of the > mac80211 layer=20 > design does have a better idea for this? Is it even an issue to switch to ieee80211_tx_status_ext()? The context here looks OK, although it might lead to (too?) deep call stacks. I don't like the _irqsafe() versions anyway ... johannes