Date: Wed, 24 Aug 2011 08:38:44 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r225138 - user/adrian/if_ath_tx/sys/dev/ath Message-ID: <201108240838.p7O8ciAR040978@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Wed Aug 24 08:38:44 2011 New Revision: 225138 URL: http://svn.freebsd.org/changeset/base/225138 Log: Create a new debug flag to print out the software retries. Modified: user/adrian/if_ath_tx/sys/dev/ath/if_ath_debug.h user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.c Modified: user/adrian/if_ath_tx/sys/dev/ath/if_ath_debug.h ============================================================================== --- user/adrian/if_ath_tx/sys/dev/ath/if_ath_debug.h Wed Aug 24 08:32:51 2011 (r225137) +++ user/adrian/if_ath_tx/sys/dev/ath/if_ath_debug.h Wed Aug 24 08:38:44 2011 (r225138) @@ -61,6 +61,7 @@ enum { ATH_DEBUG_SW_TX_BAW = 0x08000000, /* BAW handling */ ATH_DEBUG_SW_TX_CTRL = 0x10000000, /* queue control */ ATH_DEBUG_SW_TX_AGGR = 0x20000000, /* aggregate TX */ + ATH_DEBUG_SW_TX_RETRIES = 0x40000000, /* software TX retries */ ATH_DEBUG_FATAL = 0x80000000, /* fatal errors */ ATH_DEBUG_ANY = 0xffffffff }; Modified: user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.c ============================================================================== --- user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.c Wed Aug 24 08:32:51 2011 (r225137) +++ user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.c Wed Aug 24 08:38:44 2011 (r225138) @@ -2425,7 +2425,8 @@ ath_tx_aggr_retry_unaggr(struct ath_soft } if (bf->bf_state.bfs_retries >= SWMAX_RETRIES) { - device_printf(sc->sc_dev, "%s: exceeded retries; seqno %d\n", + DPRINTF(sc, ATH_DEBUG_SW_TX_RETRIES, + "%s: exceeded retries; seqno %d\n", __func__, SEQNO(bf->bf_state.bfs_seqno)); sc->sc_stats.ast_tx_swretrymax++; @@ -2531,7 +2532,8 @@ ath_tx_retry_subframe(struct ath_softc * } if (bf->bf_state.bfs_retries >= SWMAX_RETRIES) { - device_printf(sc->sc_dev, "%s: max retries: seqno %d\n", + DPRINTF(sc, ATH_DEBUG_SW_TX_RETRIES, + "%s: max retries: seqno %d\n", __func__, SEQNO(bf->bf_state.bfs_seqno)); ATH_TXQ_LOCK(atid); ath_tx_update_baw(sc, an, atid, SEQNO(bf->bf_state.bfs_seqno));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108240838.p7O8ciAR040978>