* [PATCH] wifi: cfg80211: fix bug of mapping AF3x to incorrect User Priority
@ 2024-08-05 7:17 hhorace
2024-08-06 9:08 ` Simon Horman
2024-08-07 8:22 ` [PATCH wireless-next v2] " hhorace
0 siblings, 2 replies; 10+ messages in thread
From: hhorace @ 2024-08-05 7:17 UTC (permalink / raw)
To: johannes, davem, edumazet, kuba, pabeni, linux-kernel
Cc: linux-wireless, netdev, hhorace
According to RFC8325 4.3, Multimedia Streaming: AF31(011010, 26),
AF32(011100, 28), AF33(011110, 30) maps to User Priority = 4
and AC_VI (Video).
However, the original code remain the default three Most Significant
Bits (MSBs) of the DSCP, which makes AF3x map to User Priority = 3
and AC_BE (Best Effort).
Signed-off-by: hhorace <hhoracehsu@gmail.com>
---
net/wireless/util.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/net/wireless/util.c b/net/wireless/util.c
index 082c6f9..4e04618 100644
--- a/net/wireless/util.c
+++ b/net/wireless/util.c
@@ -998,7 +998,6 @@ unsigned int cfg80211_classify8021d(struct sk_buff *skb,
* Diffserv Service Classes no update is needed:
* - Standard: DF
* - Low Priority Data: CS1
- * - Multimedia Streaming: AF31, AF32, AF33
* - Multimedia Conferencing: AF41, AF42, AF43
* - Network Control Traffic: CS7
* - Real-Time Interactive: CS4
@@ -1026,6 +1025,12 @@ unsigned int cfg80211_classify8021d(struct sk_buff *skb,
/* Broadcasting video: CS3 */
ret = 4;
break;
+ case 26:
+ case 28:
+ case 30:
+ /* Multimedia Streaming: AF31, AF32, AF33 */
+ ret = 4;
+ break;
case 40:
/* Signaling: CS5 */
ret = 5;
--
2.42.0.windows.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH] wifi: cfg80211: fix bug of mapping AF3x to incorrect User Priority
2024-08-05 7:17 [PATCH] wifi: cfg80211: fix bug of mapping AF3x to incorrect User Priority hhorace
@ 2024-08-06 9:08 ` Simon Horman
2024-08-06 11:04 ` Guillaume Nault
2024-08-07 8:22 ` [PATCH wireless-next v2] " hhorace
1 sibling, 1 reply; 10+ messages in thread
From: Simon Horman @ 2024-08-06 9:08 UTC (permalink / raw)
To: hhorace
Cc: johannes, davem, edumazet, kuba, pabeni, linux-kernel,
linux-wireless, netdev, Guillaume Nault, Ido Schimmel
+ Guillaume and Ido
On Mon, Aug 05, 2024 at 03:17:42PM +0800, hhorace wrote:
> According to RFC8325 4.3, Multimedia Streaming: AF31(011010, 26),
> AF32(011100, 28), AF33(011110, 30) maps to User Priority = 4
> and AC_VI (Video).
>
> However, the original code remain the default three Most Significant
> Bits (MSBs) of the DSCP, which makes AF3x map to User Priority = 3
> and AC_BE (Best Effort).
>
> Signed-off-by: hhorace <hhoracehsu@gmail.com>
Adding Guillaume and Ido as this relates to DSCP.
> ---
> net/wireless/util.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/net/wireless/util.c b/net/wireless/util.c
> index 082c6f9..4e04618 100644
> --- a/net/wireless/util.c
> +++ b/net/wireless/util.c
> @@ -998,7 +998,6 @@ unsigned int cfg80211_classify8021d(struct sk_buff *skb,
> * Diffserv Service Classes no update is needed:
> * - Standard: DF
> * - Low Priority Data: CS1
> - * - Multimedia Streaming: AF31, AF32, AF33
> * - Multimedia Conferencing: AF41, AF42, AF43
> * - Network Control Traffic: CS7
> * - Real-Time Interactive: CS4
> @@ -1026,6 +1025,12 @@ unsigned int cfg80211_classify8021d(struct sk_buff *skb,
> /* Broadcasting video: CS3 */
> ret = 4;
> break;
> + case 26:
> + case 28:
> + case 30:
> + /* Multimedia Streaming: AF31, AF32, AF33 */
> + ret = 4;
> + break;
> case 40:
> /* Signaling: CS5 */
> ret = 5;
> --
> 2.42.0.windows.2
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] wifi: cfg80211: fix bug of mapping AF3x to incorrect User Priority
2024-08-06 9:08 ` Simon Horman
@ 2024-08-06 11:04 ` Guillaume Nault
2024-08-07 7:24 ` Kalle Valo
0 siblings, 1 reply; 10+ messages in thread
From: Guillaume Nault @ 2024-08-06 11:04 UTC (permalink / raw)
To: Simon Horman
Cc: hhorace, johannes, davem, edumazet, kuba, pabeni, linux-kernel,
linux-wireless, netdev, Ido Schimmel
On Tue, Aug 06, 2024 at 10:08:44AM +0100, Simon Horman wrote:
> + Guillaume and Ido
>
> On Mon, Aug 05, 2024 at 03:17:42PM +0800, hhorace wrote:
> > According to RFC8325 4.3, Multimedia Streaming: AF31(011010, 26),
> > AF32(011100, 28), AF33(011110, 30) maps to User Priority = 4
> > and AC_VI (Video).
> >
> > However, the original code remain the default three Most Significant
> > Bits (MSBs) of the DSCP, which makes AF3x map to User Priority = 3
> > and AC_BE (Best Effort).
> >
> > Signed-off-by: hhorace <hhoracehsu@gmail.com>
>
> Adding Guillaume and Ido as this relates to DSCP.
Thanks. The patch looks good to me (only missing a Fixes tag).
Just a note to hhorace: the entry for CS5 (case 40) is useless as CS5
is 101000. So the value of the 3 high order bits already is 5 (in case
you want to make a followup patch for net-next).
Fixes: 6fdb8b8781d5 ("wifi: cfg80211: Update the default DSCP-to-UP mapping")
Reviewed-by: Guillaume Nault <gnault@redhat.com>
> > ---
> > net/wireless/util.c | 7 ++++++-
> > 1 file changed, 6 insertions(+), 1 deletion(-)
> >
> > diff --git a/net/wireless/util.c b/net/wireless/util.c
> > index 082c6f9..4e04618 100644
> > --- a/net/wireless/util.c
> > +++ b/net/wireless/util.c
> > @@ -998,7 +998,6 @@ unsigned int cfg80211_classify8021d(struct sk_buff *skb,
> > * Diffserv Service Classes no update is needed:
> > * - Standard: DF
> > * - Low Priority Data: CS1
> > - * - Multimedia Streaming: AF31, AF32, AF33
> > * - Multimedia Conferencing: AF41, AF42, AF43
> > * - Network Control Traffic: CS7
> > * - Real-Time Interactive: CS4
> > @@ -1026,6 +1025,12 @@ unsigned int cfg80211_classify8021d(struct sk_buff *skb,
> > /* Broadcasting video: CS3 */
> > ret = 4;
> > break;
> > + case 26:
> > + case 28:
> > + case 30:
> > + /* Multimedia Streaming: AF31, AF32, AF33 */
> > + ret = 4;
> > + break;
> > case 40:
> > /* Signaling: CS5 */
> > ret = 5;
> > --
> > 2.42.0.windows.2
> >
> >
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] wifi: cfg80211: fix bug of mapping AF3x to incorrect User Priority
2024-08-06 11:04 ` Guillaume Nault
@ 2024-08-07 7:24 ` Kalle Valo
2024-08-07 8:13 ` 徐郁閎
2024-08-07 11:35 ` Guillaume Nault
0 siblings, 2 replies; 10+ messages in thread
From: Kalle Valo @ 2024-08-07 7:24 UTC (permalink / raw)
To: Guillaume Nault
Cc: Simon Horman, hhorace, johannes, davem, edumazet, kuba, pabeni,
linux-kernel, linux-wireless, netdev, Ido Schimmel
Guillaume Nault <gnault@redhat.com> writes:
> On Tue, Aug 06, 2024 at 10:08:44AM +0100, Simon Horman wrote:
>> + Guillaume and Ido
>>
>> On Mon, Aug 05, 2024 at 03:17:42PM +0800, hhorace wrote:
>> > According to RFC8325 4.3, Multimedia Streaming: AF31(011010, 26),
>> > AF32(011100, 28), AF33(011110, 30) maps to User Priority = 4
>> > and AC_VI (Video).
>> >
>> > However, the original code remain the default three Most Significant
>> > Bits (MSBs) of the DSCP, which makes AF3x map to User Priority = 3
>> > and AC_BE (Best Effort).
>> >
>> > Signed-off-by: hhorace <hhoracehsu@gmail.com>
>>
>> Adding Guillaume and Ido as this relates to DSCP.
>
> Thanks. The patch looks good to me (only missing a Fixes tag).
>
> Just a note to hhorace: the entry for CS5 (case 40) is useless as CS5
> is 101000. So the value of the 3 high order bits already is 5 (in case
> you want to make a followup patch for net-next).
Minor clarification: cfg80211 patches go to wireless-next, not net-next.
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] wifi: cfg80211: fix bug of mapping AF3x to incorrect User Priority
2024-08-07 7:24 ` Kalle Valo
@ 2024-08-07 8:13 ` 徐郁閎
2024-08-07 11:35 ` Guillaume Nault
1 sibling, 0 replies; 10+ messages in thread
From: 徐郁閎 @ 2024-08-07 8:13 UTC (permalink / raw)
To: Kalle Valo
Cc: Guillaume Nault, Simon Horman, johannes, davem, edumazet, kuba,
pabeni, linux-kernel, linux-wireless, netdev, Ido Schimmel,
徐郁閎
Kalle Valo <kvalo@kernel.org> writes:
>
> Guillaume Nault <gnault@redhat.com> writes:
>
> > On Tue, Aug 06, 2024 at 10:08:44AM +0100, Simon Horman wrote:
> >> + Guillaume and Ido
> >>
> >> On Mon, Aug 05, 2024 at 03:17:42PM +0800, hhorace wrote:
> >> > According to RFC8325 4.3, Multimedia Streaming: AF31(011010, 26),
> >> > AF32(011100, 28), AF33(011110, 30) maps to User Priority = 4
> >> > and AC_VI (Video).
> >> >
> >> > However, the original code remain the default three Most Significant
> >> > Bits (MSBs) of the DSCP, which makes AF3x map to User Priority = 3
> >> > and AC_BE (Best Effort).
> >> >
> >> > Signed-off-by: hhorace <hhoracehsu@gmail.com>
> >>
> >> Adding Guillaume and Ido as this relates to DSCP.
> >
> > Thanks. The patch looks good to me (only missing a Fixes tag).
> >
> > Just a note to hhorace: the entry for CS5 (case 40) is useless as CS5
> > is 101000. So the value of the 3 high order bits already is 5 (in case
> > you want to make a followup patch for net-next).
Sure. I will add it in next version.
>
> Minor clarification: cfg80211 patches go to wireless-next, not net-next.
Thanks for your clarification.
>
> --
> https://patchwork.kernel.org/project/linux-wireless/list/
>
> https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH wireless-next v2] wifi: cfg80211: fix bug of mapping AF3x to incorrect User Priority
2024-08-05 7:17 [PATCH] wifi: cfg80211: fix bug of mapping AF3x to incorrect User Priority hhorace
2024-08-06 9:08 ` Simon Horman
@ 2024-08-07 8:22 ` hhorace
2024-08-07 11:39 ` Guillaume Nault
` (2 more replies)
1 sibling, 3 replies; 10+ messages in thread
From: hhorace @ 2024-08-07 8:22 UTC (permalink / raw)
To: gnault
Cc: johannes, davem, edumazet, kuba, pabeni, linux-wireless, netdev,
linux-kernel, kvalo, horms, idosch, hhorace
According to RFC8325 4.3, Multimedia Streaming: AF31(011010, 26),
AF32(011100, 28), AF33(011110, 30) maps to User Priority = 4
and AC_VI (Video).
However, the original code remain the default three Most Significant
Bits (MSBs) of the DSCP, which makes AF3x map to User Priority = 3
and AC_BE (Best Effort).
Fixes: 6fdb8b8781d5 ("wifi: cfg80211: Update the default DSCP-to-UP mapping")
Signed-off-by: hhorace <hhoracehsu@gmail.com>
---
Changes in v2:
- Remove the useless entry for CS5 (case 40) since the value of the 3
high order bits is already 5.
net/wireless/util.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/net/wireless/util.c b/net/wireless/util.c
index 082c6f9..c6d0397 100644
--- a/net/wireless/util.c
+++ b/net/wireless/util.c
@@ -998,10 +998,10 @@ unsigned int cfg80211_classify8021d(struct sk_buff *skb,
* Diffserv Service Classes no update is needed:
* - Standard: DF
* - Low Priority Data: CS1
- * - Multimedia Streaming: AF31, AF32, AF33
* - Multimedia Conferencing: AF41, AF42, AF43
* - Network Control Traffic: CS7
* - Real-Time Interactive: CS4
+ * - Signaling: CS5
*/
switch (dscp >> 2) {
case 10:
@@ -1026,9 +1026,11 @@ unsigned int cfg80211_classify8021d(struct sk_buff *skb,
/* Broadcasting video: CS3 */
ret = 4;
break;
- case 40:
- /* Signaling: CS5 */
- ret = 5;
+ case 26:
+ case 28:
+ case 30:
+ /* Multimedia Streaming: AF31, AF32, AF33 */
+ ret = 4;
break;
case 44:
/* Voice Admit: VA */
--
2.42.0.windows.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH] wifi: cfg80211: fix bug of mapping AF3x to incorrect User Priority
2024-08-07 7:24 ` Kalle Valo
2024-08-07 8:13 ` 徐郁閎
@ 2024-08-07 11:35 ` Guillaume Nault
1 sibling, 0 replies; 10+ messages in thread
From: Guillaume Nault @ 2024-08-07 11:35 UTC (permalink / raw)
To: Kalle Valo
Cc: Simon Horman, hhorace, johannes, davem, edumazet, kuba, pabeni,
linux-kernel, linux-wireless, netdev, Ido Schimmel
On Wed, Aug 07, 2024 at 10:24:13AM +0300, Kalle Valo wrote:
> Guillaume Nault <gnault@redhat.com> writes:
>
> > On Tue, Aug 06, 2024 at 10:08:44AM +0100, Simon Horman wrote:
> >> + Guillaume and Ido
> >>
> >> On Mon, Aug 05, 2024 at 03:17:42PM +0800, hhorace wrote:
> >> > According to RFC8325 4.3, Multimedia Streaming: AF31(011010, 26),
> >> > AF32(011100, 28), AF33(011110, 30) maps to User Priority = 4
> >> > and AC_VI (Video).
> >> >
> >> > However, the original code remain the default three Most Significant
> >> > Bits (MSBs) of the DSCP, which makes AF3x map to User Priority = 3
> >> > and AC_BE (Best Effort).
> >> >
> >> > Signed-off-by: hhorace <hhoracehsu@gmail.com>
> >>
> >> Adding Guillaume and Ido as this relates to DSCP.
> >
> > Thanks. The patch looks good to me (only missing a Fixes tag).
> >
> > Just a note to hhorace: the entry for CS5 (case 40) is useless as CS5
> > is 101000. So the value of the 3 high order bits already is 5 (in case
> > you want to make a followup patch for net-next).
>
> Minor clarification: cfg80211 patches go to wireless-next, not net-next.
Yes, sorry for the confusion :-/.
> --
> https://patchwork.kernel.org/project/linux-wireless/list/
>
> https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH wireless-next v2] wifi: cfg80211: fix bug of mapping AF3x to incorrect User Priority
2024-08-07 8:22 ` [PATCH wireless-next v2] " hhorace
@ 2024-08-07 11:39 ` Guillaume Nault
2024-08-07 14:02 ` Ido Schimmel
2024-08-21 9:10 ` Johannes Berg
2 siblings, 0 replies; 10+ messages in thread
From: Guillaume Nault @ 2024-08-07 11:39 UTC (permalink / raw)
To: hhorace
Cc: johannes, davem, edumazet, kuba, pabeni, linux-wireless, netdev,
linux-kernel, kvalo, horms, idosch
On Wed, Aug 07, 2024 at 04:22:05PM +0800, hhorace wrote:
> According to RFC8325 4.3, Multimedia Streaming: AF31(011010, 26),
> AF32(011100, 28), AF33(011110, 30) maps to User Priority = 4
> and AC_VI (Video).
>
> However, the original code remain the default three Most Significant
> Bits (MSBs) of the DSCP, which makes AF3x map to User Priority = 3
> and AC_BE (Best Effort).
>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH wireless-next v2] wifi: cfg80211: fix bug of mapping AF3x to incorrect User Priority
2024-08-07 8:22 ` [PATCH wireless-next v2] " hhorace
2024-08-07 11:39 ` Guillaume Nault
@ 2024-08-07 14:02 ` Ido Schimmel
2024-08-21 9:10 ` Johannes Berg
2 siblings, 0 replies; 10+ messages in thread
From: Ido Schimmel @ 2024-08-07 14:02 UTC (permalink / raw)
To: hhorace
Cc: gnault, johannes, davem, edumazet, kuba, pabeni, linux-wireless,
netdev, linux-kernel, kvalo, horms
On Wed, Aug 07, 2024 at 04:22:05PM +0800, hhorace wrote:
> According to RFC8325 4.3, Multimedia Streaming: AF31(011010, 26),
> AF32(011100, 28), AF33(011110, 30) maps to User Priority = 4
> and AC_VI (Video).
>
> However, the original code remain the default three Most Significant
> Bits (MSBs) of the DSCP, which makes AF3x map to User Priority = 3
> and AC_BE (Best Effort).
>
> Fixes: 6fdb8b8781d5 ("wifi: cfg80211: Update the default DSCP-to-UP mapping")
> Signed-off-by: hhorace <hhoracehsu@gmail.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH wireless-next v2] wifi: cfg80211: fix bug of mapping AF3x to incorrect User Priority
2024-08-07 8:22 ` [PATCH wireless-next v2] " hhorace
2024-08-07 11:39 ` Guillaume Nault
2024-08-07 14:02 ` Ido Schimmel
@ 2024-08-21 9:10 ` Johannes Berg
2 siblings, 0 replies; 10+ messages in thread
From: Johannes Berg @ 2024-08-21 9:10 UTC (permalink / raw)
To: hhorace, gnault
Cc: davem, edumazet, kuba, pabeni, linux-wireless, netdev,
linux-kernel, kvalo, horms, idosch
On Wed, 2024-08-07 at 16:22 +0800, hhorace wrote:
> According to RFC8325 4.3, Multimedia Streaming: AF31(011010, 26),
> AF32(011100, 28), AF33(011110, 30) maps to User Priority = 4
> and AC_VI (Video).
>
> However, the original code remain the default three Most Significant
> Bits (MSBs) of the DSCP, which makes AF3x map to User Priority = 3
> and AC_BE (Best Effort).
>
> Fixes: 6fdb8b8781d5 ("wifi: cfg80211: Update the default DSCP-to-UP mapping")
> Signed-off-by: hhorace <hhoracehsu@gmail.com>
^^^ looks more like a username, is that really your name/"known
identity"?
https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin
johannes
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2024-08-21 9:11 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-05 7:17 [PATCH] wifi: cfg80211: fix bug of mapping AF3x to incorrect User Priority hhorace
2024-08-06 9:08 ` Simon Horman
2024-08-06 11:04 ` Guillaume Nault
2024-08-07 7:24 ` Kalle Valo
2024-08-07 8:13 ` 徐郁閎
2024-08-07 11:35 ` Guillaume Nault
2024-08-07 8:22 ` [PATCH wireless-next v2] " hhorace
2024-08-07 11:39 ` Guillaume Nault
2024-08-07 14:02 ` Ido Schimmel
2024-08-21 9:10 ` Johannes Berg
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).