svn commit: r276570 - head/sys/dev/cxgbe/tom
Navdeep Parhar
np at FreeBSD.org
Fri Jan 2 20:52:52 UTC 2015
Author: np
Date: Fri Jan 2 20:52:51 2015
New Revision: 276570
URL: https://svnweb.freebsd.org/changeset/base/276570
Log:
cxgbe/tom: log some more details in send_flowc_wr.
MFC after: 1 week
Modified:
head/sys/dev/cxgbe/tom/t4_cpl_io.c
Modified: head/sys/dev/cxgbe/tom/t4_cpl_io.c
==============================================================================
--- head/sys/dev/cxgbe/tom/t4_cpl_io.c Fri Jan 2 20:50:15 2015 (r276569)
+++ head/sys/dev/cxgbe/tom/t4_cpl_io.c Fri Jan 2 20:52:51 2015 (r276570)
@@ -111,8 +111,6 @@ send_flowc_wr(struct toepcb *toep, struc
KASSERT(!(toep->flags & TPF_FLOWC_WR_SENT),
("%s: flowc for tid %u sent already", __func__, toep->tid));
- CTR2(KTR_CXGBE, "%s: tid %u", __func__, toep->tid);
-
flowclen = sizeof(*flowc) + nparams * sizeof(struct fw_flowc_mnemval);
wr = alloc_wrqe(roundup2(flowclen, 16), toep->ofld_txq);
@@ -147,11 +145,18 @@ send_flowc_wr(struct toepcb *toep, struc
flowc->mnemval[6].val = htobe32(sndbuf);
flowc->mnemval[7].mnemonic = FW_FLOWC_MNEM_MSS;
flowc->mnemval[7].val = htobe32(ftxp->mss);
+
+ CTR6(KTR_CXGBE,
+ "%s: tid %u, mss %u, sndbuf %u, snd_nxt 0x%x, rcv_nxt 0x%x",
+ __func__, toep->tid, ftxp->mss, sndbuf, ftxp->snd_nxt,
+ ftxp->rcv_nxt);
} else {
flowc->mnemval[4].mnemonic = FW_FLOWC_MNEM_SNDBUF;
flowc->mnemval[4].val = htobe32(512);
flowc->mnemval[5].mnemonic = FW_FLOWC_MNEM_MSS;
flowc->mnemval[5].val = htobe32(512);
+
+ CTR2(KTR_CXGBE, "%s: tid %u", __func__, toep->tid);
}
txsd->tx_credits = howmany(flowclen, 16);
More information about the svn-src-all
mailing list