From owner-p4-projects@FreeBSD.ORG Mon Jan 7 22:56:04 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 26B8816A41A; Mon, 7 Jan 2008 22:56:04 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DAC9216A469 for ; Mon, 7 Jan 2008 22:56:03 +0000 (UTC) (envelope-from swise@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id BA6F013C45B for ; Mon, 7 Jan 2008 22:56:03 +0000 (UTC) (envelope-from swise@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m07Mu3sJ081925 for ; Mon, 7 Jan 2008 22:56:03 GMT (envelope-from swise@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m07Mu33d081922 for perforce@freebsd.org; Mon, 7 Jan 2008 22:56:03 GMT (envelope-from swise@FreeBSD.org) Date: Mon, 7 Jan 2008 22:56:03 GMT Message-Id: <200801072256.m07Mu33d081922@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to swise@FreeBSD.org using -f From: Steve Wise To: Perforce Change Reviews Cc: Subject: PERFORCE change 132754 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jan 2008 22:56:04 -0000 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);