From owner-p4-projects@FreeBSD.ORG Wed Oct 31 01:23:10 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 11EAA16A420; Wed, 31 Oct 2007 01:23:10 +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 CAEA116A419 for ; Wed, 31 Oct 2007 01:23:09 +0000 (UTC) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id BCAC213C4A5 for ; Wed, 31 Oct 2007 01:23:09 +0000 (UTC) (envelope-from kmacy@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 l9V1N9Cn077976 for ; Wed, 31 Oct 2007 01:23:09 GMT (envelope-from kmacy@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l9V1N9jF077973 for perforce@freebsd.org; Wed, 31 Oct 2007 01:23:09 GMT (envelope-from kmacy@freebsd.org) Date: Wed, 31 Oct 2007 01:23:09 GMT Message-Id: <200710310123.l9V1N9jF077973@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to kmacy@freebsd.org using -f From: Kip Macy To: Perforce Change Reviews Cc: Subject: PERFORCE change 128378 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: Wed, 31 Oct 2007 01:23:10 -0000 http://perforce.freebsd.org/chv.cgi?CH=128378 Change 128378 by kmacy@kmacy:storage:toestack on 2007/10/31 01:22:23 make sure mbuf length gets set for offload operations Affected files ... .. //depot/projects/toestack/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c#6 edit Differences ... ==== //depot/projects/toestack/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c#6 (text+ko) ==== @@ -351,12 +351,11 @@ { struct cpl_act_open_req *req; struct inpcb *inp = sotoinpcb(so); - struct toe_mbuf *tm = (struct toe_mbuf *)m; m_set_priority((struct mbuf *)m, mkprio(CPL_PRIORITY_SETUP, so)); req = mtod(m, struct cpl_act_open_req *); - m->m_len += sizeof(*req); + m->m_pkthdr.len = m->m_len = sizeof(*req); req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_ACT_OPEN_REQ, atid));