[RFC/RFT 2/2] ath10k: fix Rx aggregation reordering
Kalle Valo
kvalo at qca.qualcomm.com
Fri Jun 27 07:17:13 PDT 2014
Michal Kazior <michal.kazior at tieto.com> writes:
> Firmware doesn't perform Rx reordering so it is
> left to the host driver to do that.
>
> Use mac80211 to perform reordering instead of
> re-inventing the wheel.
>
> This fixes TCP throughput issues in some
> environments (notably Windows stations connecting
> to ath10k AP).
>
> Reported-By: Denton Gentry <denton.gentry at gmail.com>
> Signed-off-by: Michal Kazior <michal.kazior at tieto.com>
[...]
> --- a/drivers/net/wireless/ath/ath10k/htt_rx.c
> +++ b/drivers/net/wireless/ath/ath10k/htt_rx.c
> @@ -21,6 +21,7 @@
> #include "txrx.h"
> #include "debug.h"
> #include "trace.h"
> +#include "mac.h"
Why this? At least from a quick search I didn't see any reason to add this.
>
> #include <linux/log2.h>
>
> @@ -1533,10 +1534,95 @@ void ath10k_htt_t2h_msg_handler(struct ath10k *ar, struct sk_buff *skb)
> case HTT_T2H_MSG_TYPE_STATS_CONF:
> trace_ath10k_htt_stats(skb->data, skb->len);
> break;
> + case HTT_T2H_MSG_TYPE_RX_ADDBA: {
> + struct ath10k *ar = htt->ar;
> + struct htt_rx_addba *ev = &resp->rx_addba;
> + struct ath10k_peer *peer;
> + struct ath10k_vif *arvif;
> + u16 info0, tid, peer_id;
> +
> + info0 = __le32_to_cpu(ev->info0);
> + tid = MS(info0, HTT_RX_BA_INFO0_TID);
> + peer_id = MS(info0, HTT_RX_BA_INFO0_PEER_ID);
This event handling is pretty long. I think it would be better to have a
separate function for this event.
> + case HTT_T2H_MSG_TYPE_RX_DELBA: {
> + struct ath10k *ar = htt->ar;
> + struct htt_rx_addba *ev = &resp->rx_addba;
> + struct ath10k_peer *peer;
> + struct ath10k_vif *arvif;
> + u16 info0, tid, peer_id;
And the same for this event.
--
Kalle Valo
More information about the ath10k
mailing list