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-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org