Thread (7 messages) 7 messages, 2 authors, 2012-05-28

Re: [RFC] mac80211: net_ratelimit few aggregation related messages

From: Joe Perches <joe@perches.com>
Date: 2012-05-25 20:02:47

On Fri, 2012-05-25 at 21:07 +0530, Mohammed Shafi Shajakhan wrote:
net_ratelimit few aggregation related messages,
[]
quoted hunk ↗ jump to hunk
diff --git a/net/mac80211/agg-tx.c b/net/mac80211/agg-tx.c
[]
quoted hunk ↗ jump to hunk
@@ -464,8 +464,9 @@ int ieee80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid,
 		return -EINVAL;
 
 #ifdef CONFIG_MAC80211_HT_DEBUG
-	printk(KERN_DEBUG "Open BA session requested for %pM tid %u\n",
-	       pubsta->addr, tid);
+	if (net_ratelimit())
+		printk(KERN_DEBUG "Open BA session requested for %pM tid %u\n",
+		       pubsta->addr, tid);
perhaps
	net_dbg_ratelimited(...)

etc...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help