All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luis R. Rodriguez <lrodriguez@atheros.com>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] [PATCH 1/2] ath9k combined rcstat
Date: Tue, 26 May 2009 09:46:48 -0700	[thread overview]
Message-ID: <20090526164648.GB7072@tesla> (raw)
In-Reply-To: <Pine.LNX.4.64.0905250730330.3468@ren>

On Mon, May 25, 2009 at 06:32:31AM -0700, Jeff Hansen wrote:
> This patch combines the legacy and 11n rcstats into one, using the normal
> rate table indices instead of two separate indices for each mode.  Legacy
> rates also get all of the PER information, now, too.
> 
> -Jeff
> 
> ---------------------------------------------------
> "If someone's gotta do it, it might as well be me."
>                  x at jeffhansen.com

Content-Description: 001-combined-rcstat.patch
> Index: compat-wireless-2009-05-20/drivers/net/wireless/ath/ath9k/debug.h
> ===================================================================
> --- compat-wireless-2009-05-20.orig/drivers/net/wireless/ath/ath9k/debug.h	2009-05-25 13:15:11.000000000 +0000
> +++ compat-wireless-2009-05-20/drivers/net/wireless/ath/ath9k/debug.h	2009-05-25 13:15:44.000000000 +0000

Thanks for the patch, can you please address the considerations below but also
format the patch using git on wireless-testing and also abide by the usual patch
format for upstream?

http://wireless.kernel.org/en/developers/Documentation/SubmittingPatches

> @@ -224,111 +225,62 @@
>  	.owner = THIS_MODULE
>  };
>  
> -static void ath_debug_stat_11n_rc(struct ath_softc *sc, struct sk_buff *skb)
> -{
> -	struct ath_tx_info_priv *tx_info_priv = NULL;
> -	struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb);
> -	struct ieee80211_tx_rate *rates = tx_info->status.rates;
> -	int final_ts_idx, idx;
> -
> -	tx_info_priv = ATH_TX_INFO_PRIV(tx_info);
> -	final_ts_idx = tx_info_priv->tx.ts_rateindex;
> -	idx = sc->cur_rate_table->info[rates[final_ts_idx].idx].dot11rate;
> -
> -	sc->debug.stats.n_rcstats[idx].success++;
> -}
> -
> -static void ath_debug_stat_legacy_rc(struct ath_softc *sc, struct sk_buff *skb)
> +void ath_debug_stat_rc(struct ath_softc *sc, struct sk_buff *skb)
>  {
>  	struct ath_tx_info_priv *tx_info_priv = NULL;
>  	struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb);
>  	struct ieee80211_tx_rate *rates = tx_info->status.rates;
> -	int final_ts_idx, idx;
> +	int final_ts_idx;
>  
>  	tx_info_priv = ATH_TX_INFO_PRIV(tx_info);
>  	final_ts_idx = tx_info_priv->tx.ts_rateindex;
> -	idx = rates[final_ts_idx].idx;
> -
> -	sc->debug.stats.legacy_rcstats[idx].success++;
> +	sc->debug.stats.rcstats[rates[final_ts_idx].idx].success++;

This seems a bit hard to read can you add a pointer for the 
rcstats[foo] and then access it.

  Luis

      reply	other threads:[~2009-05-26 16:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-25 13:32 [ath9k-devel] [PATCH 1/2] ath9k combined rcstat Jeff Hansen
2009-05-26 16:46 ` Luis R. Rodriguez [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=20090526164648.GB7072@tesla \
    --to=lrodriguez@atheros.com \
    --cc=ath9k-devel@lists.ath9k.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.