Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10521935ybi; Thu, 11 Jul 2019 06:40:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+w92nys4ywD9O4Iy9+S4ymafGu1bRbjvYLzU7jzRDit8MAi003omWCI3PjH6q/JFBzJBF X-Received: by 2002:a65:43c2:: with SMTP id n2mr4551695pgp.110.1562852418177; Thu, 11 Jul 2019 06:40:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1562852418; cv=pass; d=google.com; s=arc-20160816; b=i2MB5oirEk5bw5uvu3VQUVi5qA0VJGUdy7rqf/rYo/4pS/ayXteZviyy9WB4ouayDO RLtCQL4+9LNvJhS1HoyLckelwuX94NDQJEFomobHyPr/Hyvx8mdXBExGKh4LoL2RE0YZ lguEJVsPwZRu6xnNXLPGj1i/Y7AWX8IB5LE32lIe72+mmw6nZvoZnImFctrv1yU+1qIB jyr32tunFhkcv/8rFCsZR5+Q0ryJoVGKvPBS0QDqWCYy8OucouGnszrdQfnmGi4Bv4CI 1DZ1fGc0NhGceAgpcpdtXDPqRttUYezSmTY00clE9xHypXK4EgDpOtAGjuCLBueBxLCe geCQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=RbEOMLnZ7nRPuDNmMbghi0PFE5FZoOPs6WUOqLyFnSw=; b=cSZDgI6NgMyYp5yAWEYp+PShuJn7zxTM1UhJ5dftrAZ6iqCdk1wjpMwit/S7zBUrLA pI9tOG5C+WwBOb1usQeGK4wBXJJr4rOnXxCJB0A0IzCE8IMtOJvyMg4v5tOh6W7P6apC CJrz+VWGda30t6Ube5ul2leIj0Zf69zMZmoQ/JkjC3Sd3/mbTICCzG7aFEgrLzLltuHG Qzq9Nnq9TtT2aXTuPy7dnVDzKyajEc5g828ju49+Ly6ddM0w38H8ywZXT1Q+s8tDKLQn JNCChATWmwdbVGz/8hWgwWhlWgPTyGG3rKI90aqZO+GQGEpq4Tvxy1vqvjOcW6dsSEGs f+tQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quantenna.com header.s=selector2 header.b=mMOJ4lNl; arc=pass (i=1 spf=pass spfdomain=quantenna.com dkim=pass dkdomain=quantenna.com dmarc=pass fromdomain=quantenna.com); spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m10si5129653pjl.77.2019.07.11.06.39.56; Thu, 11 Jul 2019 06:40:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@quantenna.com header.s=selector2 header.b=mMOJ4lNl; arc=pass (i=1 spf=pass spfdomain=quantenna.com dkim=pass dkdomain=quantenna.com dmarc=pass fromdomain=quantenna.com); spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728472AbfGKNPn (ORCPT + 99 others); Thu, 11 Jul 2019 09:15:43 -0400 Received: from mx0b-00183b01.pphosted.com ([67.231.157.42]:16352 "EHLO mx0a-00183b01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726012AbfGKNPn (ORCPT ); Thu, 11 Jul 2019 09:15:43 -0400 Received: from pps.filterd (m0048104.ppops.net [127.0.0.1]) by mx0b-00183b01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x6BD8KCK020504; Thu, 11 Jul 2019 07:13:55 -0600 Received: from nam01-bn3-obe.outbound.protection.outlook.com (mail-bn3nam01lp2058.outbound.protection.outlook.com [104.47.33.58]) by mx0b-00183b01.pphosted.com with ESMTP id 2tnxk30x4x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 11 Jul 2019 07:13:55 -0600 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F08GH0IbXtG7nqF0rySiopDHZv6DNgHQxxhuiIVnIDBsB7CvF5TKtv56251H2C8gVxKTB71e9OMAReOoPuj2MjrLvI3SCT4yRnDAOsl2cB9PmwtqcoM7b/00gfcPT0ts1y6YEcLICqwCde+E1u7h18Ict2ZkgvZaKcXac+J46AjHsUABftawTwKFZOSUIC5S1TSNKnAZJd1RaYlcD2bbui5+Qc7heMzH+WGhe5jNt1UThthF5HOKDKkha0em7Lhy5x0RJIsyPoX99pPtduA/gM4A/vg5KkavVd6ZlS3eV4KKyzmyBauuJMAcYpEFuLkBPl55p2IKNVF5ngfRBtRAYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RbEOMLnZ7nRPuDNmMbghi0PFE5FZoOPs6WUOqLyFnSw=; b=CtfGFBEAxKcLIgo56mcNHTm2VC+E7esugYPC0j3i1MhV2GZmTTsA+zu87ShK/uWSnqkfiss9gVa0iIoyfNAwClVKFapDJNEffqChUvR+vMI1eydq2n5kfysCj1NQC6ubccv3J8pRF6/AtyC/iDAaRnXfkH11V9bddfVMCueo7REyJ9xyA7+BTIt2eDi21l2xaRuVVxe2Zv6x/1rEGGjYHGeRNTnyIxCYPdyYaMYU5QhQuQkYmo2EjuJqm8uX3l4l33KyZNY0DRri/XnEgioTohq+65UtaFP5MFq9t7syxFLtdYPH7A5sNsMDOR66v7CAtyDbRmnlaQVxt4cMa2lUYw== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=quantenna.com;dmarc=pass action=none header.from=quantenna.com;dkim=pass header.d=quantenna.com;arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quantenna.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RbEOMLnZ7nRPuDNmMbghi0PFE5FZoOPs6WUOqLyFnSw=; b=mMOJ4lNlCGLC+6AANmqudzd9pwiuk2FfqPUQRfOHnO1LIaVDE6QtyHH54wx9RSvRXKL93zUg8TPJuVYB/K4QNNSdUzunuL45dwA9sSFecYlBMOyAWfl0ESUQmPxWctDShJI5A5vryk4xDeTywK1KW1bkcxGus7x/VJwN5Tztw9s= Received: from BL0PR05MB4881.namprd05.prod.outlook.com (52.132.15.79) by BL0PR05MB4609.namprd05.prod.outlook.com (20.177.144.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2073.10; Thu, 11 Jul 2019 13:13:53 +0000 Received: from BL0PR05MB4881.namprd05.prod.outlook.com ([fe80::f8f9:db88:4a0e:31eb]) by BL0PR05MB4881.namprd05.prod.outlook.com ([fe80::f8f9:db88:4a0e:31eb%7]) with mapi id 15.20.2073.008; Thu, 11 Jul 2019 13:13:53 +0000 Received: from SN6PR05MB4928.namprd05.prod.outlook.com (52.135.117.74) by SN6PR05MB4366.namprd05.prod.outlook.com (52.135.74.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2073.10; Thu, 11 Jul 2019 13:13:37 +0000 Received: from SN6PR05MB4928.namprd05.prod.outlook.com ([fe80::13f:5819:79e7:ea8f]) by SN6PR05MB4928.namprd05.prod.outlook.com ([fe80::13f:5819:79e7:ea8f%5]) with mapi id 15.20.2073.008; Thu, 11 Jul 2019 13:13:37 +0000 From: Sergey Matyukevich To: Tamizh chelvam CC: "johannes@sipsolutions.net" , "ath10k@lists.infradead.org" , "linux-wireless@vger.kernel.org" Subject: Re: [PATCHv6 1/9] nl80211: New netlink command for TID specific configuration Thread-Topic: [PATCHv6 1/9] nl80211: New netlink command for TID specific configuration Thread-Index: AQHVJaGvTjP0r5cPcEi6bnoTD8w66KbFiZwA Date: Thu, 11 Jul 2019 13:13:37 +0000 Message-ID: <20190711131331.gyjvsbxipgfk5cmn@bars> References: <1560835632-17405-1-git-send-email-tamizhr@codeaurora.org> <1560835632-17405-2-git-send-email-tamizhr@codeaurora.org> In-Reply-To: <1560835632-17405-2-git-send-email-tamizhr@codeaurora.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BY5PR16CA0030.namprd16.prod.outlook.com (2603:10b6:a03:1a0::43) To SN6PR05MB4928.namprd05.prod.outlook.com (2603:10b6:805:9d::10) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [195.182.157.78] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ba8af0bc-d2f3-4cb4-5724-08d70601959a x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:SN6PR05MB4366; x-ms-traffictypediagnostic: SN6PR05MB4366:|BL0PR05MB4609: x-microsoft-antispam-prvs: x-moderation-data: 7/11/2019 1:13:51 PM x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 0095BCF226 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(7916004)(376002)(39850400004)(366004)(346002)(396003)(136003)(189003)(199004)(316002)(386003)(54906003)(26005)(6506007)(8676002)(102836004)(8936002)(25786009)(186003)(7736002)(81156014)(81166006)(9686003)(229853002)(99286004)(2906002)(3846002)(6116002)(6512007)(436003)(305945005)(66476007)(53936002)(86362001)(52116002)(14444005)(6436002)(6486002)(66066001)(1076003)(6246003)(4326008)(71200400001)(446003)(66946007)(11346002)(66446008)(68736007)(71190400001)(486006)(33716001)(478600001)(5660300002)(66556008)(14454004)(6916009)(476003)(256004)(76176011)(64756008);DIR:OUT;SFP:1101;SCL:1;SRVR:BL0PR05MB4609;H:BL0PR05MB4881.namprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: quantenna.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: C4hoAyUviwlVgcZiEnsKFZTOSorFvq4+l0f4byaurQpqzOviGKUwooPutj4dXZiHUI9gL2QmOC0ckOtQLomA+jlwdoMOWXlKjbDR5aktB3g05hMtnt9FXknbg2IEuJzy1tfn3oVr1HtMDQi6IeoMxxkeBlH+JXc3zwifc/524nrPg6o5txD4YqrRpQaX2eDSsZYr45Zymj42+EL3AlhieBe1rRfAjr+dO0qQZ6UMoR803l356TN8iq0XUFc4NgkY95dYNdDphZ6B2XBuEVc72UOukakCIKy39Lz4601/ELOYXjceNNvn3sPh0an29djKMChU+MpfL8FOllkn687fRyrkVqN1uOPmq7ife/AVG6t+MUp9lYuq4bKLzJhCZ6jmh87P7vr0wHENWnK+XyZ6f2bg4QKIyXtbf9zGAyJmIoo= Content-Type: text/plain; charset="us-ascii" Content-ID: <50EC6CBCF34F09408055F389348E0D87@namprd05.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: quantenna.com X-MS-Exchange-CrossTenant-Network-Message-Id: ba8af0bc-d2f3-4cb4-5724-08d70601959a X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a355dbce-62b4-4789-9446-c1d5582180ff X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: SPO_Arbitration_8ec941cc-8ea6-4554-b708-3d99ebe980b5@quantenna.onmicrosoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Jul 2019 13:13:53.1757 (UTC) X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR05MB4609 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-07-11_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907110150 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > Add a new NL command, NL80211_CMD_SET_TID_CONFIG to support > data TID specific configuration. This per TID configurations > are passed in NL80211_ATTR_TID_CONFIG which is a nested > attribute. This patch adds support to configure per TID > noack policy through NL80211_TID_ATTR_CONFIG_NOACK attribute. > Data TID value for this configuration will be passed through > NL80211_TID_ATTR_CONFIG_TID attribute. When the user-space wants > this configuration peer specific rather than being applied for > all the connected stations, MAC address of the peer can be passed > in NL80211_ATTR_MAC attribute. This patch introduced > enum ieee80211_tid_conf_mask to notify the driver that which > configuration modified. > Driver supporting data TID specific noack policy configuration > should be advertise through NL80211_EXT_FEATURE_PER_TID_NOACK_CONFIG > and supporting per STA data TID noack policy configuration > should be advertise through NL80211_EXT_FEATURE_PER_STA_NOACK_CONFIG >=20 > Signed-off-by: Tamizh chelvam ... > diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c > index ff760ba..4881bfb6 100644 > --- a/net/wireless/nl80211.c > +++ b/net/wireless/nl80211.c > @@ -281,6 +281,13 @@ static int validate_ie_attr(const struct nlattr *att= r, > NLA_POLICY_NESTED_ARRAY(nl80211_psmr_peer_attr_policy), > }; >=20 > +static const struct nla_policy > +nl80211_tid_attr_config_policy[NL80211_TID_ATTR_CONFIG_MAX + 1] =3D { > + [NL80211_TID_ATTR_CONFIG_TID] =3D { .type =3D NLA_U8 }, > + [NL80211_TID_ATTR_CONFIG_NOACK] =3D > + NLA_POLICY_MAX(NLA_U8, NL80211_TID_CONFIG_DISABLE= ), > +}; > + IIUC, in the current version of the patch set no specific value of NL80211_TID_ATTR_CONFIG_TID attribute is reserved for 'apply to all tids' command. It could be left up to drivers. But we need some convention for userspace tools (e.g. iw) anyway. Regards, Sergey