PERFORCE change 128378 for review

Kip Macy kmacy at FreeBSD.org
Tue Oct 30 18:23:10 PDT 2007


http://perforce.freebsd.org/chv.cgi?CH=128378

Change 128378 by kmacy at 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));


More information about the p4-projects mailing list