anchao commented on code in PR #8062:
URL: https://github.com/apache/nuttx/pull/8062#discussion_r1069156779


##########
net/tcp/tcp_callback.c:
##########
@@ -94,10 +94,156 @@ tcp_data_event(FAR struct net_driver_s *dev, FAR struct 
tcp_conn_s *conn,
   return flags;
 }
 
+/****************************************************************************
+ * Name: tcp_ofoseg_data_event
+ *
+ * Description:
+ *   Handle out-of-order segment to readahead poll.
+ *
+ * Assumptions:
+ * - This function must be called with the network locked.
+ *
+ ****************************************************************************/
+
+#ifdef CONFIG_NET_TCP_OUT_OF_ORDER
+static uint16_t tcp_ofoseg_data_event(FAR struct net_driver_s *dev,
+                                      FAR struct tcp_conn_s *conn,
+                                      uint16_t flags)
+{
+  struct tcp_ofoseg_s *seg;

Review Comment:
   Done



##########
net/tcp/tcp.h:
##########
@@ -144,6 +149,23 @@ struct tcp_poll_s
   FAR struct devif_callback_s *cb; /* Needed to teardown the poll */
 };
 
+/* Out-of-order segments */
+
+struct tcp_ofoseg_s
+{
+  uint32_t     left;  /* Left edge of segment */
+  uint32_t     right; /* Right edge of segment */
+  struct iob_s *data; /* Out-of-order buffering */

Review Comment:
   Done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to