* [PATCH] mt76: mt7915: report qos_ctl without ACK policy
@ 2022-04-20 4:03 Bo Jiao
2022-04-20 5:20 ` Felix Fietkau
0 siblings, 1 reply; 2+ messages in thread
From: Bo Jiao @ 2022-04-20 4:03 UTC (permalink / raw)
To: Felix Fietkau
Cc: linux-wireless, Ryder Lee, Sujuan Chen, Shayne Chen, Evelyn Tsai,
linux-mediatek, Bo Jiao
From: Bo Jiao <Bo.Jiao@mediatek.com>
there is no need to report to the mac80211 layer the ACK policy which may
cause rx out-of-order issue, because the hardware rmac module already handle it
Signed-off-by: Bo Jiao <Bo.Jiao@mediatek.com>
---
drivers/net/wireless/mediatek/mt76/mt7915/mac.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c
index b47aea6..5080280 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c
@@ -675,6 +675,11 @@ mt7915_mac_fill_rx(struct mt7915_dev *dev, struct sk_buff *skb)
fc = cpu_to_le16(FIELD_GET(MT_RXD6_FRAME_CONTROL, v0));
qos_ctl = FIELD_GET(MT_RXD8_QOS_CTL, v2);
+ /*
+ * there is no need to report the ACK policy to the
+ * mac80211 layer, because hw has already processed it.
+ */
+ qos_ctl &= ~IEEE80211_QOS_CTL_ACK_POLICY_MASK;
seq_ctrl = FIELD_GET(MT_RXD8_SEQ_CTRL, v2);
rxd += 4;
--
2.18.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mt76: mt7915: report qos_ctl without ACK policy
2022-04-20 4:03 [PATCH] mt76: mt7915: report qos_ctl without ACK policy Bo Jiao
@ 2022-04-20 5:20 ` Felix Fietkau
0 siblings, 0 replies; 2+ messages in thread
From: Felix Fietkau @ 2022-04-20 5:20 UTC (permalink / raw)
To: Bo Jiao
Cc: linux-wireless, Ryder Lee, Sujuan Chen, Shayne Chen, Evelyn Tsai,
linux-mediatek
On 20.04.22 06:03, Bo Jiao wrote:
> From: Bo Jiao <Bo.Jiao@mediatek.com>
>
> there is no need to report to the mac80211 layer the ACK policy which may
> cause rx out-of-order issue, because the hardware rmac module already handle it
>
> Signed-off-by: Bo Jiao <Bo.Jiao@mediatek.com>
> ---
> drivers/net/wireless/mediatek/mt76/mt7915/mac.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c
> index b47aea6..5080280 100644
> --- a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c
> +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c
> @@ -675,6 +675,11 @@ mt7915_mac_fill_rx(struct mt7915_dev *dev, struct sk_buff *skb)
>
> fc = cpu_to_le16(FIELD_GET(MT_RXD6_FRAME_CONTROL, v0));
> qos_ctl = FIELD_GET(MT_RXD8_QOS_CTL, v2);
> + /*
> + * there is no need to report the ACK policy to the
> + * mac80211 layer, because hw has already processed it.
> + */
> + qos_ctl &= ~IEEE80211_QOS_CTL_ACK_POLICY_MASK;
I don't understand this change at all. First of all, the qos_ctl field
isn't really reported to the mac80211 layer, it's used in mt76 internally.
The rx reorder code uses it to detect no-ack policy in order to avoid
reordering for it.
Since you're masking out the ack policy, the value will be
IEEE80211_QOS_CTL_ACK_POLICY_NORMAL, which ends up forcibly enabling rx
reordering, even when the policy indicates no-ack.
How does this help, and what part does the rmac module already handle?
- Felix
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-04-20 5:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-20 4:03 [PATCH] mt76: mt7915: report qos_ctl without ACK policy Bo Jiao
2022-04-20 5:20 ` Felix Fietkau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox