Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178167319
D3619.1796168934.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
879 B
Referenced Files
None
Subscribers
None
D3619.1796168934.diff
View Options
Index: head/sys/dev/cxgbe/tom/t4_ddp.c
===================================================================
--- head/sys/dev/cxgbe/tom/t4_ddp.c
+++ head/sys/dev/cxgbe/tom/t4_ddp.c
@@ -405,6 +405,19 @@
}
tp = intotcpcb(inp);
+
+ /*
+ * For RX_DDP_COMPLETE, len will be zero and rcv_nxt is the
+ * sequence number of the next byte to receive. The length of
+ * the data received for this message must be computed by
+ * comparing the new and old values of rcv_nxt.
+ *
+ * For RX_DATA_DDP, len might be non-zero, but it is only the
+ * length of the most recent DMA. It does not include the
+ * total length of the data received since the previous update
+ * for this DDP buffer. rcv_nxt is the sequence number of the
+ * first received byte from the most recent DMA.
+ */
len += be32toh(rcv_nxt) - tp->rcv_nxt;
tp->rcv_nxt += len;
tp->t_rcvtime = ticks;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 1, 11:48 PM (18 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42134413
Default Alt Text
D3619.1796168934.diff (879 B)
Attached To
Mode
D3619: Clarify how to determine the amount of received DDP data.
Attached
Detach File
Event Timeline