From: Tamizh chelvam <tamizhr@codeaurora.org>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCHv8 2/6] nl80211: Add new netlink attribute for TID speicific retry count
Date: Thu, 14 Nov 2019 12:50:02 +0530 [thread overview]
Message-ID: <7a1ad257f052f4218bb4bdc37f4cb90f@codeaurora.org> (raw)
In-Reply-To: <03dc8fd244558b6c08875be0b497a6d3bdf595c8.camel@sipsolutions.net>
On 2019-11-08 15:30, Johannes Berg wrote:
>> + * Station specific retry configuration is valid only for STA's
>> + * current connection. i.e. the configuration will be reset to
>> default when
>> + * the station connects back after disconnection/roaming.
>> + * when user-space does not include %NL80211_ATTR_MAC, this
>> configuration
>> + * should be treated as per-netdev configuration. This configuration
>> will
>> + * be cleared when the interface goes down and on the disconnection
>> from a
>> + * BSS. When retry count has never been configured using this
>> command, the
>> + * other available radio level retry configuration
>> + * (%NL80211_ATTR_WIPHY_RETRY_SHORT and
>> %NL80211_ATTR_WIPHY_RETRY_LONG)
>> + * should be used. Driver supporting this feature should advertise
>> + * NL80211_EXT_FEATURE_PER_TID_RETRY_CONFIG and supporting per
>> station
>> + * retry count configuration should advertise
>> + * NL80211_EXT_FEATURE_PER_STA_RETRY_CONFIG.
>
> Here you pretty much copy-pasted all this text ... that's why I think
> it
> should be in some other section. We want *everything* to be like that,
> not have to check every single thing for different validity rules.
>
Sure, I will add these things in DOC: section.
>> + * @NL80211_TID_CONFIG_ATTR_RETRY_SHORT: Number of retries used with
>> data frame
>> + * transmission, user-space sets this configuration in
>> + * &NL80211_CMD_SET_TID_CONFIG. It is u8 type, min value is 1 and
>> + * the max value should be advertised by the driver through
>> + * max_data_retry_count. when this attribute is not present, the
>> driver
>> + * would use the default configuration.
>> + * @NL80211_TID_CONFIG_ATTR_RETRY_LONG: Number of retries used with
>> data frame
>> + * transmission, user-space sets this configuration in
>> + * &NL80211_CMD_SET_TID_CONFIG. Its type is u8, min value is 1 and
>> + * the max value should be advertised by the driver through
>> + * max_data_retry_count. when this attribute is not present, the
>> driver
>> + * would use the default configuration.
>
> 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 ? 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 ?
> This only really works right if we go for the reset= approach I
> outlined
> in the previous patch though, since you otherwise need
> NL80211_TID_CONFIG_ATTR_RETRY for the reset ... but that's a pretty
> weird thing.
>
> (there are also some typos here like "notfiy")
>
I will fix this.
>> --- a/net/wireless/nl80211.c
>> +++ b/net/wireless/nl80211.c
>> @@ -326,6 +326,9 @@ static int validate_ie_attr(const struct nlattr
>> *attr,
>> [NL80211_TID_CONFIG_ATTR_TID] = { .type = NLA_U8 },
>> [NL80211_TID_CONFIG_ATTR_NOACK] =
>> NLA_POLICY_MAX(NLA_U8, NL80211_TID_CONFIG_DISABLE),
>> + [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 (rdev->wiphy.max_data_retry_count) {
>> + if (nla_put_u8(msg, NL80211_ATTR_MAX_RETRY_COUNT,
>> + rdev->wiphy.max_data_retry_count))
>
> bad indentation
I will fix this.
>
>> + goto nla_put_failure;
>> + }
>> +
>> state->split_start++;
>> if (state->split)
>> break;
>
> Also not sure which section you put this in, but it looks almost like
> it's under "case 1:" where it really shouldn't be ... move it to the
> end
> please.
>
Sure.
Thanks,
Tamizh.
next prev parent reply other threads:[~2019-11-14 7:20 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-05 12:41 [PATCHv8 0/6] cfg80211/mac80211: Add support for TID specific configuration Tamizh chelvam
2019-11-05 12:41 ` [PATCHv8 1/6] nl80211: New netlink command " Tamizh chelvam
2019-11-08 9:55 ` Johannes Berg
2019-11-13 16:00 ` Tamizh chelvam
2019-11-22 12:47 ` Johannes Berg
2019-11-05 12:41 ` [PATCHv8 2/6] nl80211: Add new netlink attribute for TID speicific retry count Tamizh chelvam
2019-11-08 10:00 ` Johannes Berg
2019-11-14 7:20 ` Tamizh chelvam [this message]
2019-11-22 12:49 ` Johannes Berg
2019-11-05 12:41 ` [PATCHv8 3/6] nl80211: Add netlink attribute for AMPDU aggregation enable/disable Tamizh chelvam
2019-11-05 12:41 ` [PATCHv8 4/6] nl80211: Add netlink attribute to enable/disable RTS_CTS Tamizh chelvam
2019-11-05 12:41 ` [PATCHv8 5/6] nl80211: Add netlink attribute to configure TID specific tx rate Tamizh chelvam
2019-11-05 12:41 ` [PATCHv8 6/6] mac80211: Add api to support configuring TID specific configuration Tamizh chelvam
2019-11-08 9:32 ` [PATCHv8 0/6] cfg80211/mac80211: Add support for " Sergey Matyukevich
2019-11-08 9:39 ` Johannes Berg
2019-11-08 12:05 ` Sergey Matyukevich
2019-11-08 12:20 ` Johannes Berg
2019-11-08 16:01 ` Sergey Matyukevich
2019-11-08 17:07 ` Johannes Berg
2019-11-08 20:39 ` Sergey Matyukevich
2019-11-14 7:32 ` Tamizh chelvam
2019-11-22 12:49 ` Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7a1ad257f052f4218bb4bdc37f4cb90f@codeaurora.org \
--to=tamizhr@codeaurora.org \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).