You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/11/20 05:19:21 UTC

[GitHub] [incubator-nuttx] anchao commented on a diff in pull request #7616: net/l2/l3/l4: add support of iob offload

anchao commented on code in PR #7616:
URL: https://github.com/apache/incubator-nuttx/pull/7616#discussion_r1027227037


##########
arch/sim/src/sim/up_netdriver.c:
##########
@@ -72,6 +72,19 @@
 
 #include "up_internal.h"
 
+#if CONFIG_IOB_BUFSIZE > (MAX_NETDEV_PKTSIZE + \
+                          CONFIG_NET_GUARDSIZE + \
+                          CONFIG_NET_LL_GRUARDSIZE)
+# define SIM_NETDEV_IOB_OFFLOAD

Review Comment:
   Done



##########
arch/sim/src/sim/up_netdriver.c:
##########
@@ -72,6 +72,19 @@
 
 #include "up_internal.h"
 
+#if CONFIG_IOB_BUFSIZE > (MAX_NETDEV_PKTSIZE + \
+                          CONFIG_NET_GUARDSIZE + \
+                          CONFIG_NET_LL_GRUARDSIZE)
+# define SIM_NETDEV_IOB_OFFLOAD
+#endif
+
+#ifdef SIM_NETDEV_IOB_OFFLOAD
+# define devif_poll devif_iob_poll
+# define ipv4_input ipv4_iob_input
+# define ipv6_input ipv6_iob_input
+# define pkt_input  pkt_iob_input

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-unsubscribe@nuttx.apache.org

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