* [PATCH] rtlwifi: Improve handling of IPv6 packets
@ 2015-02-24 15:23 Larry Finger
2015-02-26 12:56 ` Kalle Valo
2015-03-03 15:07 ` Kalle Valo
0 siblings, 2 replies; 4+ messages in thread
From: Larry Finger @ 2015-02-24 15:23 UTC (permalink / raw)
To: kvalo; +Cc: linux-wireless, Larry Finger, netdev, Stable, Alan Fisher
Routine rtl_is_special_data() is supposed to identify packets that need to
use a low bit rate so that the probability of successful transmission is
high. The current version has a bug that causes all IPv6 packets to be
labelled as special, with a corresponding low rate of transmission. A
complete fix will be quite intrusive, but until that is available, all
IPv6 packets are identified as regular.
This patch also removes a magic number.
Reported-and-tested-by: Alan Fisher <acf@unixcube.org>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Stable <stable@vger.kernel.org> [3.18+]
Cc: Alan Fisher <acf@unixcube.org>
---
drivers/net/wireless/rtlwifi/base.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wireless/rtlwifi/base.c b/drivers/net/wireless/rtlwifi/base.c
index 1d46774..074f716 100644
--- a/drivers/net/wireless/rtlwifi/base.c
+++ b/drivers/net/wireless/rtlwifi/base.c
@@ -1386,8 +1386,11 @@ u8 rtl_is_special_data(struct ieee80211_hw *hw, struct sk_buff *skb, u8 is_tx)
}
return true;
- } else if (0x86DD == ether_type) {
- return true;
+ } else if (ETH_P_IPV6 == ether_type) {
+ /* TODO: Handle any IPv6 cases that need special handling.
+ * For now, always return false
+ */
+ goto end;
}
end:
--
2.1.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] rtlwifi: Improve handling of IPv6 packets
2015-02-24 15:23 [PATCH] rtlwifi: Improve handling of IPv6 packets Larry Finger
@ 2015-02-26 12:56 ` Kalle Valo
2015-02-26 16:05 ` Larry Finger
2015-03-03 15:07 ` Kalle Valo
1 sibling, 1 reply; 4+ messages in thread
From: Kalle Valo @ 2015-02-26 12:56 UTC (permalink / raw)
To: Larry Finger; +Cc: linux-wireless, netdev, Stable, Alan Fisher
Larry Finger <Larry.Finger@lwfinger.net> writes:
> Routine rtl_is_special_data() is supposed to identify packets that need to
> use a low bit rate so that the probability of successful transmission is
> high. The current version has a bug that causes all IPv6 packets to be
> labelled as special, with a corresponding low rate of transmission. A
> complete fix will be quite intrusive, but until that is available, all
> IPv6 packets are identified as regular.
>
> This patch also removes a magic number.
>
> Reported-and-tested-by: Alan Fisher <acf@unixcube.org>
> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
> Cc: Stable <stable@vger.kernel.org> [3.18+]
> Cc: Alan Fisher <acf@unixcube.org>
Should this go to 4.0?
--
Kalle Valo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] rtlwifi: Improve handling of IPv6 packets
2015-02-26 12:56 ` Kalle Valo
@ 2015-02-26 16:05 ` Larry Finger
0 siblings, 0 replies; 4+ messages in thread
From: Larry Finger @ 2015-02-26 16:05 UTC (permalink / raw)
To: Kalle Valo; +Cc: linux-wireless, netdev, Stable, Alan Fisher
On 02/26/2015 06:56 AM, Kalle Valo wrote:
> Larry Finger <Larry.Finger@lwfinger.net> writes:
>
>> Routine rtl_is_special_data() is supposed to identify packets that need to
>> use a low bit rate so that the probability of successful transmission is
>> high. The current version has a bug that causes all IPv6 packets to be
>> labelled as special, with a corresponding low rate of transmission. A
>> complete fix will be quite intrusive, but until that is available, all
>> IPv6 packets are identified as regular.
>>
>> This patch also removes a magic number.
>>
>> Reported-and-tested-by: Alan Fisher <acf@unixcube.org>
>> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
>> Cc: Stable <stable@vger.kernel.org> [3.18+]
>> Cc: Alan Fisher <acf@unixcube.org>
>
> Should this go to 4.0?
Yes. I should have indicated that in the subject.
My expectation is that any patch that has a Cc for Stable should be applied as
soon as possible.
Larry
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: rtlwifi: Improve handling of IPv6 packets
2015-02-24 15:23 [PATCH] rtlwifi: Improve handling of IPv6 packets Larry Finger
2015-02-26 12:56 ` Kalle Valo
@ 2015-03-03 15:07 ` Kalle Valo
1 sibling, 0 replies; 4+ messages in thread
From: Kalle Valo @ 2015-03-03 15:07 UTC (permalink / raw)
To: Larry Finger; +Cc: linux-wireless, Larry Finger, netdev, Stable, Alan Fisher
> Routine rtl_is_special_data() is supposed to identify packets that need to
> use a low bit rate so that the probability of successful transmission is
> high. The current version has a bug that causes all IPv6 packets to be
> labelled as special, with a corresponding low rate of transmission. A
> complete fix will be quite intrusive, but until that is available, all
> IPv6 packets are identified as regular.
>
> This patch also removes a magic number.
>
> Reported-and-tested-by: Alan Fisher <acf@unixcube.org>
> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
> Cc: Stable <stable@vger.kernel.org> [3.18+]
> Cc: Alan Fisher <acf@unixcube.org>
Thanks, applied to wireless-drivers.git.
Kalle Valo
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-03-03 15:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-24 15:23 [PATCH] rtlwifi: Improve handling of IPv6 packets Larry Finger
2015-02-26 12:56 ` Kalle Valo
2015-02-26 16:05 ` Larry Finger
2015-03-03 15:07 ` Kalle Valo
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).