From: Kalle Valo <kvalo@qca.qualcomm.com>
To: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Cc: <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] ath6kl: Fix packet drop when ath6kl_cookie runs out
Date: Sun, 13 Nov 2011 11:43:27 +0200 [thread overview]
Message-ID: <4EBF913F.9030304@qca.qualcomm.com> (raw)
In-Reply-To: <1320762685-4665-1-git-send-email-vthiagar@qca.qualcomm.com>
On 11/08/2011 04:31 PM, Vasanthakumar Thiagarajan wrote:
> "ath6kl: Maintain virtual interface in a list" mistakenly stops the
> netq only when the mode is ibss. This causes packet drops in sta mode
> when the available cookies (buffer abstraction in ath6kl and also used
> for tx throttling) runs out for the highest priority traffic. This patch
> just fixes this regression though the original code may still need fixes
> which can be addressed in separate patches.
>
> Reported-by: Kalle Valo <kvalo@qca.qualcomm.com>
> Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Thanks, applied.
> * The last MAX_HI_COOKIE_NUM "batch" of cookies are reserved for
> @@ -465,20 +465,18 @@ enum htc_send_full_action ath6kl_tx_queue_full(struct htc_target *target,
> */
> if (ar->ac_stream_pri_map[ar->ep2ac_map[endpoint]] <
> ar->hiac_stream_active_pri &&
> - ar->cookie_count <= MAX_HI_COOKIE_NUM) {
> + ar->cookie_count <= MAX_HI_COOKIE_NUM)
> /*
> * Give preference to the highest priority stream by
> * dropping the packets which overflowed.
> */
> action = HTC_SEND_FULL_DROP;
In the code before "ath6kl: Maintain virtual interface in a list" this
test was not run in Ad-Hoc mode, but now it is run. AFAICS it shouldn't
create any issues, but wanted to point out anyway.
Also, as discussed earlier, it's better to have braces when you have a
comment in a single line if statement. But this is a minor style issue
and can be fixed later. Any case here are examples what I mean:
if (foo)
return 0;
if (bar) {
/* this is a comment */
return 0;
}
/* this is a second comment */
if (foobar)
return 0;
Kalle
prev parent reply other threads:[~2011-11-13 9:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-08 14:31 [PATCH] ath6kl: Fix packet drop when ath6kl_cookie runs out Vasanthakumar Thiagarajan
2011-11-13 9:43 ` Kalle Valo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EBF913F.9030304@qca.qualcomm.com \
--to=kvalo@qca.qualcomm.com \
--cc=linux-wireless@vger.kernel.org \
--cc=vthiagar@qca.qualcomm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).