Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1143510rdb; Fri, 9 Feb 2024 11:32:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWwHjObxKf92mhVbG++bExSxtEhM9jfKe92YWgL6wq3nyvG8cbzqmEAXb1iWlbZCes7uND++fFFOKcjqR31+i8MaTY0GBi+ROEuBWWeJQ== X-Google-Smtp-Source: AGHT+IFTrBG7pc4J4vhyhUQx0W98zONm8fl6bSym5sh+np8JQj0VGrAjsPOJSkmTN8ReNnOC/Aq7 X-Received: by 2002:a17:90b:3549:b0:297:935:aeda with SMTP id lt9-20020a17090b354900b002970935aedamr2375938pjb.29.1707507179604; Fri, 09 Feb 2024 11:32:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707507179; cv=pass; d=google.com; s=arc-20160816; b=ze3rCTYvgSw0/oQFk+CnxhqSOUmUIhsiz6N57p8okJ6PssTrQpw2VkQ9Vy+uUGP+/d zZrJ1RU1UKq3vPQY5gaMBsDXpVh1QMtBdJolXKWE/ygmx0/Q3tG+zR1ndyzwgRD4D0tO jh6+dDz74ZASDdxEBg84zXLSBysOpnzbjkpprOCL4KJxAkb+5JHZSjYWGItBsnAQO08/ vMKtAC52rXza61oeWo+xuhBQvw092Opkz+ZXLrpMFYcye8542ywHBWNtu4D/T1VMWDee jTxYIEmT1FO9KvsrF5LC4OYTNWcemHEBd9Uuvwa7gbLlLyDcKmNu7uVTH0DbdLMTsub1 wCPw== 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 :user-agent:content-transfer-encoding:references:in-reply-to:date:to :from:subject:message-id:dkim-signature; bh=L3r7jiMaFIQSUlzx3fyDZAoO1VpfT68htmj+rfkd5Ys=; fh=ZoqufrifCGWjN1JPExIxSFrmKG7hlkFEHR7swbHI65A=; b=F1FEk1IXpaXdeaWY02lSgnKbvofwKQu2B8ywY4FvKR0Xl21Yp8IeO42RQKvDYO9Pkj vLe3VDyhPWu2xnQ7iX/rluG8rlEC4P/EcaKrFbjZsEGP25VJv0kzJxGUnxm+HYhkTwXu qdvtjkYNxDM581160abDw3WCdIaIkpPdOTG7UkM97dV6g6PzbK2acu3g+aQ1Ezd/wWCy xrZyRBc5Z4Z5meBK7kuh7741hr/8bC/A1XCq8/XlFBPrgE9qbOIHpggaqmqBdzW1rO9D NhutOvUQ6ft8cozldonq8i7+lsbMfGm13G3jVdpqTsqjpxFol38IphNaood23oJNCjcO GtlQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=EdjSMCDK; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-3409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3409-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net X-Forwarded-Encrypted: i=2; AJvYcCUSuHHUhoVGxOU8XsGWUTESaAOo/dNgFt0qGYB5ENMbswQZEyObeEMQhoQEH6m8j5lqeJyeRIkYtATkJ/H//M4PrdHtPJ2cURTZAYw01A== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id sz5-20020a17090b2d4500b002971645bb45si89697pjb.86.2024.02.09.11.32.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 11:32:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=EdjSMCDK; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-3409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3409-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4413028F734 for ; Fri, 9 Feb 2024 19:32:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3FCE874E3A; Fri, 9 Feb 2024 19:32:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="EdjSMCDK" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (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 0492882866 for ; Fri, 9 Feb 2024 19:32:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707507175; cv=none; b=XJ0P5zvutp6v7wpZxQoeGscYaFITryX4wbhcUTzxL368eAPn3FaSkKzD6MIA72jMQYh+qkzT1v4G1zMDopUWHlIEwMQz6REBsqqX+2u5+oKTe5oEhg2Ms6SXu2hNe9kntK1RwkgVmnI7/mlAedF5d3BCumwPiKbN35jPxYcXTYE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707507175; c=relaxed/simple; bh=BXqFgpDauNuiWmnVG1m9eeAtSVwQFJXVDIzKMAUiwz0=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References: Content-Type:MIME-Version; b=L9JX86tM3J3Eeid5IT3TSolBLwE2pE0eRceA0jHfFYrwPXylE31c2pwfXM7JgOikiQOyJCyQKrX/kMKRGNBIWhXTmd5tXW8wmVIlWOC/6qV12gpjhexMD+/n+prOIQa5GGyM5yDWDLARN5+2Jn/7ngUT9H8OU4xWMRPRGiBm628= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=EdjSMCDK; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net 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:To:From:Subject:Message-ID:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=L3r7jiMaFIQSUlzx3fyDZAoO1VpfT68htmj+rfkd5Ys=; t=1707507172; x=1708716772; b=EdjSMCDKy05dsfQtomUESoLv8HormsUBuVr+yWFydcjOHDr HB6p8JHQwSxj+B4ze/jlLKmsMV0qhyK6kIBeKmQla7yEWFywT1Cld1XMXdKtc0Nwylm3xe0+e6vYR V4l2SE033KqeVcrWfQxh+83J86X0I36iADsEjVkexhwzU/pzVsW80odE8Dlp4lWqxvEshtdX9wBP0 LIn+bFrCzGsYlepb94h4MVfS/7nWKmSrrtoAxrp09R3wd4u6t24ayVab3aGXZIQeNhVh0U4Y6TBr7 QO2YhNY51JVbrYDQpOKg4e8lNqHEqBx3tN8giWztrLjdzwiWO1lVN3soVRoyupBw==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rYWc7-00000001KO8-2wFj; Fri, 09 Feb 2024 20:32:43 +0100 Message-ID: Subject: Re: [RFC] mac80211: add AQL support for broadcast packets From: Johannes Berg To: Felix Fietkau , linux-wireless@vger.kernel.org Date: Fri, 09 Feb 2024 20:32:42 +0100 In-Reply-To: <20240209184730.69589-1-nbd@nbd.name> References: <20240209184730.69589-1-nbd@nbd.name> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.3 (3.50.3-1.fc39) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-malware-bazaar: not-scanned > - if (sscanf(buf, "%u %u %u", &ac, &q_limit_low, &q_limit_high) !=3D 3) > + n =3D sscanf(buf, "%u %u %u", &ac, &q_limit_low, &q_limit_high); > + if (n < 2) > return -EINVAL; > =20 > - if (ac >=3D IEEE80211_NUM_ACS) > + if (ac =3D=3D IEEE80211_NUM_ACS) { > + local->aql_txq_limit_bc =3D q_limit_low; > + return count; > + } If we keep this, it should probably check n =3D=3D 2? But not sure I like it - in other places ac =3D=3D NUM_ACS means management rather than not multicast; could we just check something like strncmp(buf, "mcast ", 6) instead? Or "BC/MC" matching the output? Though we don't match VO on input either. johannes