2014-11-04 08:51:02

by Grumbach, Emmanuel

[permalink] [raw]
Subject: [PATCH] mac80211: Increase uapsd max SP frames number

From: Andrei Otcheretianski <[email protected]>

Deliver up to 128 frames during SP instead of 8 if unlimited max SP
is specified during association.

Signed-off-by: Andrei Otcheretianski <[email protected]>
Signed-off-by: Emmanuel Grumbach <[email protected]>
---
net/mac80211/sta_info.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c
index de494df..3352741 100644
--- a/net/mac80211/sta_info.c
+++ b/net/mac80211/sta_info.c
@@ -1531,7 +1531,7 @@ void ieee80211_sta_ps_deliver_uapsd(struct sta_info *sta)
break;
case 0:
/* XXX: what is a good value? */
- n_frames = 8;
+ n_frames = 128;
break;
}

--
1.9.1



2014-11-04 09:27:28

by Krishna Chaitanya

[permalink] [raw]
Subject: Re: [PATCH] mac80211: Increase uapsd max SP frames number

On Tue, Nov 4, 2014 at 2:53 PM, Otcheretianski, Andrei
<[email protected]> wrote:
> The spec doesn't require unlimited to be really "unlimited" and the AP decides when to end the SP, so any value here is ok.
> However for large traffic bursts increasing this value looks reasonable. Also looks like some certification tests expect more frames to be delivered during SP.
> 128 is still kind of arbitrary value
>
>> -----Original Message-----
>> From: Krishna Chaitanya [mailto:[email protected]]
>> Sent: Tuesday, November 04, 2014 11:03
>> To: Grumbach, Emmanuel
>> Cc: Johannes Berg; linux-wireless; Otcheretianski, Andrei
>> Subject: Re: [PATCH] mac80211: Increase uapsd max SP frames number
>>
>> On Tue, Nov 4, 2014 at 2:10 PM, Emmanuel Grumbach
>> <[email protected]> wrote:
>> > From: Andrei Otcheretianski <[email protected]>
>> >
>> > Deliver up to 128 frames during SP instead of 8 if unlimited max SP is
>> > specified during association.
>> >
>> > Signed-off-by: Andrei Otcheretianski <[email protected]>
>> > Signed-off-by: Emmanuel Grumbach <[email protected]>
>> > ---
>> > net/mac80211/sta_info.c | 2 +-
>> > 1 file changed, 1 insertion(+), 1 deletion(-)
>> >
>> > diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index
>> > de494df..3352741 100644
>> > --- a/net/mac80211/sta_info.c
>> > +++ b/net/mac80211/sta_info.c
>> > @@ -1531,7 +1531,7 @@ void ieee80211_sta_ps_deliver_uapsd(struct
>> sta_info *sta)
>> > break;
>> > case 0:
>> > /* XXX: what is a good value? */
>> > - n_frames = 8;
>> > + n_frames = 128;
>> > break;
>> > }
>> What is criteria for deciding the threshold?
>> Any specific use case for 128?
I understand, thanks for the explanation.

2014-11-04 09:23:43

by Andrei Otcheretianski

[permalink] [raw]
Subject: RE: [PATCH] mac80211: Increase uapsd max SP frames number

VGhlIHNwZWMgZG9lc24ndCByZXF1aXJlIHVubGltaXRlZCB0byBiZSByZWFsbHkgInVubGltaXRl
ZCIgYW5kIHRoZSBBUCBkZWNpZGVzIHdoZW4gdG8gZW5kIHRoZSBTUCwgc28gYW55IHZhbHVlIGhl
cmUgaXMgb2suDQpIb3dldmVyIGZvciBsYXJnZSB0cmFmZmljIGJ1cnN0cyBpbmNyZWFzaW5nIHRo
aXMgdmFsdWUgbG9va3MgcmVhc29uYWJsZS4gQWxzbyBsb29rcyBsaWtlIHNvbWUgY2VydGlmaWNh
dGlvbiB0ZXN0cyBleHBlY3QgbW9yZSBmcmFtZXMgdG8gYmUgZGVsaXZlcmVkIGR1cmluZyBTUC4N
CjEyOCBpcyBzdGlsbCBraW5kIG9mIGFyYml0cmFyeSB2YWx1ZQ0KDQo+IC0tLS0tT3JpZ2luYWwg
TWVzc2FnZS0tLS0tDQo+IEZyb206IEtyaXNobmEgQ2hhaXRhbnlhIFttYWlsdG86Y2hhaXRhbnlh
Lm1naXRAZ21haWwuY29tXQ0KPiBTZW50OiBUdWVzZGF5LCBOb3ZlbWJlciAwNCwgMjAxNCAxMTow
Mw0KPiBUbzogR3J1bWJhY2gsIEVtbWFudWVsDQo+IENjOiBKb2hhbm5lcyBCZXJnOyBsaW51eC13
aXJlbGVzczsgT3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ishna Chaitanya

[permalink] [raw]
Subject: Re: [PATCH] mac80211: Increase uapsd max SP frames number

On Tue, Nov 4, 2014 at 2:10 PM, Emmanuel Grumbach
<[email protected]> wrote:
> From: Andrei Otcheretianski <[email protected]>
>
> Deliver up to 128 frames during SP instead of 8 if unlimited max SP
> is specified during association.
>
> Signed-off-by: Andrei Otcheretianski <[email protected]>
> Signed-off-by: Emmanuel Grumbach <[email protected]>
> ---
> net/mac80211/sta_info.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c
> index de494df..3352741 100644
> --- a/net/mac80211/sta_info.c
> +++ b/net/mac80211/sta_info.c
> @@ -1531,7 +1531,7 @@ void ieee80211_sta_ps_deliver_uapsd(struct sta_info *sta)
> break;
> case 0:
> /* XXX: what is a good value? */
> - n_frames = 8;
> + n_frames = 128;
> break;
> }
What is criteria for deciding the threshold?
Any specific use case for 128?

2014-11-04 09:30:22

by Krishna Chaitanya

[permalink] [raw]
Subject: Re: [PATCH] mac80211: Increase uapsd max SP frames number

On Tue, Nov 4, 2014 at 2:57 PM, Krishna Chaitanya
<[email protected]> wrote:
> On Tue, Nov 4, 2014 at 2:53 PM, Otcheretianski, Andrei
> <[email protected]> wrote:
>> The spec doesn't require unlimited to be really "unlimited" and the AP decides when to end the SP, so any value here is ok.
>> However for large traffic bursts increasing this value looks reasonable. Also looks like some certification tests expect more frames to be delivered during SP.
>> 128 is still kind of arbitrary value
>>
>>> -----Original Message-----
>>> From: Krishna Chaitanya [mailto:[email protected]]
>>> Sent: Tuesday, November 04, 2014 11:03
>>> To: Grumbach, Emmanuel
>>> Cc: Johannes Berg; linux-wireless; Otcheretianski, Andrei
>>> Subject: Re: [PATCH] mac80211: Increase uapsd max SP frames number
>>>
>>> On Tue, Nov 4, 2014 at 2:10 PM, Emmanuel Grumbach
>>> <[email protected]> wrote:
>>> > From: Andrei Otcheretianski <[email protected]>
>>> >
>>> > Deliver up to 128 frames during SP instead of 8 if unlimited max SP is
>>> > specified during association.
>>> >
>>> > Signed-off-by: Andrei Otcheretianski <[email protected]>
>>> > Signed-off-by: Emmanuel Grumbach <[email protected]>
>>> > ---
>>> > net/mac80211/sta_info.c | 2 +-
>>> > 1 file changed, 1 insertion(+), 1 deletion(-)
>>> >
>>> > diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index
>>> > de494df..3352741 100644
>>> > --- a/net/mac80211/sta_info.c
>>> > +++ b/net/mac80211/sta_info.c
>>> > @@ -1531,7 +1531,7 @@ void ieee80211_sta_ps_deliver_uapsd(struct
>>> sta_info *sta)
>>> > break;
>>> > case 0:
>>> > /* XXX: what is a good value? */
>>> > - n_frames = 8;
>>> > + n_frames = 128;
>>> > break;
>>> > }
>>> What is criteria for deciding the threshold?
>>> Any specific use case for 128?
> I understand, thanks for the explanation.

can we add the reason (certification) to the commit log?
It will be easy to understand the change.

2014-11-04 09:21:25

by Grumbach, Emmanuel

[permalink] [raw]
Subject: RE: [PATCH] mac80211: Increase uapsd max SP frames number

PiANCj4gT24gVHVlLCBOb3YgNCwgMjAxNCBhdCAyOjEwIFBNLCBFbW1hbnVlbCBHcnVtYmFjaA0K
PiA8ZW1tYW51ZWwuZ3J1bWJhY2hAaW50ZWwuY29tPiB3cm90ZToNCj4gPiBGcm9tOiBBbmRyZWkg
T3RjaGVyZXRpYW5za2kgPGFuZHJlaS5vdGNoZXJldGlhbnNraUBpbnRlbC5jb20+DQo+ID4NCj4g
PiBEZWxpdmVyIHVwIHRvIDEyOCBmcmFtZXMgZHVyaW5nIFNQIGluc3RlYWQgb2YgOCBpZiB1bmxp
bWl0ZWQgbWF4IFNQIGlzDQo+ID4gc3BlY2lmaWVkIGR1cmluZyBhc3NvY2lhdGlvbi4NCj4gPg0K
PiA+IFNpZ25lZC1vZmYtYnk6IEFuZHJlaSBPdGNoZXJldGlhbnNraSA8YW5kcmVpLm90Y2hlcmV0
aWFuc2tpQGludGVsLmNvbT4NCj4gPi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