Date: Mon, 7 Jan 2008 22:56:03 GMT From: Steve Wise <swise@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 132754 for review Message-ID: <200801072256.m07Mu33d081922@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=132754 Change 132754 by swise@swise:vic10:iwarp on 2008/01/07 22:55:26 krping server side works! fixed incorrect data length in send_mpa_reply(). Affected files ... .. //depot/projects/iwarp/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_iwch_cm.c#6 edit Differences ... ==== //depot/projects/iwarp/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_iwch_cm.c#6 (text+ko) ==== @@ -644,7 +644,7 @@ } m_set_priority(m, CPL_PRIORITY_DATA); req = (struct tx_data_wr *)mbuf_put(m, sizeof(*req)); - mpa = (struct mpa_message *) mbuf_put(m, mpalen); + mpa = (struct mpa_message *)mbuf_put(m, mpalen); memset(mpa, 0, sizeof(*mpa)); memcpy(mpa->key, MPA_KEY_REP, sizeof(mpa->key)); mpa->flags = (ep->mpa_attr.crc_enabled ? MPA_CRC : 0) | @@ -655,7 +655,7 @@ memcpy(mpa->private_data, pdata, plen); set_arp_failure_handler(m, arp_failure_discard); - len = m->m_len; + len = mpalen; req->wr_hi = htonl(V_WR_OP(FW_WROPCODE_OFLD_TX_DATA)); req->wr_lo = htonl(V_WR_TID(ep->hwtid)); req->len = htonl(len);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801072256.m07Mu33d081922>