PERFORCE change 132754 for review
Steve Wise
swise at FreeBSD.org
Mon Jan 7 14:56:04 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=132754
Change 132754 by swise at 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);
More information about the p4-projects
mailing list