Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp157352pja; Fri, 22 Nov 2019 04:49:47 -0800 (PST) X-Google-Smtp-Source: APXvYqy1kDYcW5szMPzEDBBEa3ujpoWJqC4YZMC2x4U/iYBuVP6t+VRKB0otCngaqrFGIgBwbHLf X-Received: by 2002:a50:e802:: with SMTP id e2mr855448edn.28.1574426987550; Fri, 22 Nov 2019 04:49:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574426987; cv=none; d=google.com; s=arc-20160816; b=vfef/7e0/MwILpapK/1VXIy2blDLsldSf1Kr+3+tvnEE4PwtBhZ+Os5ZlD2KRJdHMG vaMGCY0rUF13c+qApvSQ6Em8gSzZQVuH6oysPzWkUWASg88SxrCXuXaJBK1+m/kjQjy4 GMtQcWnjGpgUdNy9ilG3zzqYZQtnaetx4XByvcRpfwp3LpVtV1yF9qB491+baUGZ77tx 8puHFmIHIyRHQdfOl/bFVO5hgyLW5IsMRqDCEUWHx5tksE6vINHfRYijlFb39J9/pHbQ VbdW6Xf4xdZHQ3V0Dva4q164BgLDhgJpsLITz4DrCD+sM56r1ujvDSirdODOL6piAkyV vm7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=WD/p8+WzoNhfti2mes1CkXSp7fGSogrwc0Gb8qRxj3M=; b=ImBGj742VR+QS7uqS2Bd1kNL9CL2yL+6d6yvgmDo7Lm4yg36l+zwNXBGmpEcrZEuVD E+8C0KyqtOiJag6v8Xh8uYlSeNUifm1NS28y3G7sqsAu+zAO6/rPuA0TPBOg73/2gZpu Z9LRveoVz06d62ZklcZGtSKlFEhgfHBUSUFlVqr9hiDk0igTpton4TgVZB+xLlah0Xzv qB+8+jAAL/BcJTCiaHILY8oIv/GouwmAVF/Iepx3mr2jUuWj6RGcj20Wybx+xy120DRP mTo3KpvC6i8kXzCKWPgaItPnYvSZWQfhNnHnclBQk/AQKFXF2mRsp5Bdy5yhwMb/XMfj XGqQ== ARC-Authentication-Results: i=1; mx.google.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 q16si307628edw.406.2019.11.22.04.49.22; Fri, 22 Nov 2019 04:49:47 -0800 (PST) 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; 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 S1727771AbfKVMtT (ORCPT + 99 others); Fri, 22 Nov 2019 07:49:19 -0500 Received: from s3.sipsolutions.net ([144.76.43.62]:44984 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726526AbfKVMtT (ORCPT ); Fri, 22 Nov 2019 07:49:19 -0500 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.92.3) (envelope-from ) id 1iY8NB-0003X4-Qj; Fri, 22 Nov 2019 13:49:17 +0100 Message-ID: Subject: Re: [PATCHv8 2/6] nl80211: Add new netlink attribute for TID speicific retry count From: Johannes Berg To: Tamizh chelvam Cc: linux-wireless@vger.kernel.org Date: Fri, 22 Nov 2019 13:49:16 +0100 In-Reply-To: <7a1ad257f052f4218bb4bdc37f4cb90f@codeaurora.org> References: <1572957714-16085-1-git-send-email-tamizhr@codeaurora.org> <1572957714-16085-3-git-send-email-tamizhr@codeaurora.org> <03dc8fd244558b6c08875be0b497a6d3bdf595c8.camel@sipsolutions.net> <7a1ad257f052f4218bb4bdc37f4cb90f@codeaurora.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Thu, 2019-11-14 at 12:50 +0530, Tamizh chelvam wrote: > > > I'm almost thinking that these should be a struct with two u8 values > > instead of two separate attributes, and then renamed to > > NL80211_TID_CONFIG_ATTR_RETRY, to carry both and really ensure thaty > > they're always together as a single configuration. > > > This will make mandatory for user to send both values know ? Yes. > I have did > it similar to > NL80211_ATTR_WIPHY_RETRY_SHORT and NL80211_ATTR_WIPHY_RETRY_LONG. This > way we can have > option to configure single parameter know ? Is it worth it? If you need them to be separate, then you should actually separate them and let each one be managed per station with override etc., but that seems a lot of effort? > > > + [NL80211_TID_CONFIG_ATTR_RETRY] = { .type = NLA_FLAG }, > > > + [NL80211_TID_CONFIG_ATTR_RETRY_SHORT] = { .type = NLA_U8}, > > > + [NL80211_TID_CONFIG_ATTR_RETRY_LONG] = { .type = NLA_U8}, > > > > The min value of 1 should be reflected in the policy. > > > Yeah, It was there in the previous patchset and removed due to > confusion. > Do you want to keep MIN value of 1 policy ? If 0 is invalid, yeah, keep min 1 in the policy. johannes