mirror of https://gitee.com/openkylin/linux.git
[PATCH] iwlwifi: limit printouts on hot path
This patch change printouts on TX path to the net_ratelimit version. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
5ae212c927
commit
588263515f
|
@ -622,7 +622,7 @@ static void rs_tx_status(void *priv_rate,
|
||||||
u16 fc = le16_to_cpu(hdr->frame_control);
|
u16 fc = le16_to_cpu(hdr->frame_control);
|
||||||
s32 tpt = 0;
|
s32 tpt = 0;
|
||||||
|
|
||||||
IWL_DEBUG_RATE("get frame ack response, update rate scale window\n");
|
IWL_DEBUG_RATE_LIMIT("get frame ack response, update rate scale window\n");
|
||||||
|
|
||||||
if (!ieee80211_is_data(fc) || is_multicast_ether_addr(hdr->addr1))
|
if (!ieee80211_is_data(fc) || is_multicast_ether_addr(hdr->addr1))
|
||||||
return;
|
return;
|
||||||
|
@ -1717,7 +1717,7 @@ static struct ieee80211_rate *rs_get_rate(void *priv_rate,
|
||||||
struct iwl_priv *priv = (struct iwl_priv *)priv_rate;
|
struct iwl_priv *priv = (struct iwl_priv *)priv_rate;
|
||||||
struct iwl_rate_scale_priv *lq;
|
struct iwl_rate_scale_priv *lq;
|
||||||
|
|
||||||
IWL_DEBUG_RATE("rate scale calculate new rate for skb\n");
|
IWL_DEBUG_RATE_LIMIT("rate scale calculate new rate for skb\n");
|
||||||
|
|
||||||
memset(extra, 0, sizeof(*extra));
|
memset(extra, 0, sizeof(*extra));
|
||||||
|
|
||||||
|
|
|
@ -184,7 +184,7 @@ u8 iwl_hw_find_station(struct iwl_priv *priv, const u8 *addr)
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
IWL_DEBUG_ASSOC("can not find STA %s total %d\n",
|
IWL_DEBUG_ASSOC_LIMIT("can not find STA " MAC_FMT " total %d\n",
|
||||||
print_mac(mac, addr), priv->num_stations);
|
print_mac(mac, addr), priv->num_stations);
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
|
|
@ -136,8 +136,11 @@ static inline void IWL_DEBUG_LIMIT(int level, const char *fmt, ...)
|
||||||
#define IWL_DEBUG_TXPOWER(f, a...) IWL_DEBUG(IWL_DL_TXPOWER, f, ## a)
|
#define IWL_DEBUG_TXPOWER(f, a...) IWL_DEBUG(IWL_DL_TXPOWER, f, ## a)
|
||||||
#define IWL_DEBUG_IO(f, a...) IWL_DEBUG(IWL_DL_IO, f, ## a)
|
#define IWL_DEBUG_IO(f, a...) IWL_DEBUG(IWL_DL_IO, f, ## a)
|
||||||
#define IWL_DEBUG_RATE(f, a...) IWL_DEBUG(IWL_DL_RATE, f, ## a)
|
#define IWL_DEBUG_RATE(f, a...) IWL_DEBUG(IWL_DL_RATE, f, ## a)
|
||||||
|
#define IWL_DEBUG_RATE_LIMIT(f, a...) IWL_DEBUG_LIMIT(IWL_DL_RATE, f, ## a)
|
||||||
#define IWL_DEBUG_NOTIF(f, a...) IWL_DEBUG(IWL_DL_NOTIF, f, ## a)
|
#define IWL_DEBUG_NOTIF(f, a...) IWL_DEBUG(IWL_DL_NOTIF, f, ## a)
|
||||||
#define IWL_DEBUG_ASSOC(f, a...) IWL_DEBUG(IWL_DL_ASSOC | IWL_DL_INFO, f, ## a)
|
#define IWL_DEBUG_ASSOC(f, a...) IWL_DEBUG(IWL_DL_ASSOC | IWL_DL_INFO, f, ## a)
|
||||||
|
#define IWL_DEBUG_ASSOC_LIMIT(f, a...) \
|
||||||
|
IWL_DEBUG_LIMIT(IWL_DL_ASSOC | IWL_DL_INFO, f, ## a)
|
||||||
#define IWL_DEBUG_HT(f, a...) IWL_DEBUG(IWL_DL_HT, f, ## a)
|
#define IWL_DEBUG_HT(f, a...) IWL_DEBUG(IWL_DL_HT, f, ## a)
|
||||||
#define IWL_DEBUG_STATS(f, a...) IWL_DEBUG(IWL_DL_STATS, f, ## a)
|
#define IWL_DEBUG_STATS(f, a...) IWL_DEBUG(IWL_DL_STATS, f, ## a)
|
||||||
#define IWL_DEBUG_TX_REPLY(f, a...) IWL_DEBUG(IWL_DL_TX_REPLY, f, ## a)
|
#define IWL_DEBUG_TX_REPLY(f, a...) IWL_DEBUG(IWL_DL_TX_REPLY, f, ## a)
|
||||||
|
|
Loading…
Reference in New Issue