anchao opened a new pull request, #7890: URL: https://github.com/apache/nuttx/pull/7890
## Summary 1. mm/iob: revert "modify iob to support header padding and alignment features" we don't need to implement l2 isolation through io_head, iob offload will use io_offset ``` ------------------------------------------------------------- Layout of different NICs implementation: iob_data (aligned by CONFIG_IOB_ALIGNMENT) | | io_offset(CONFIG_NET_LL_GUARDSIZE) | | ------------------------------------------------- Ethernet | Reserved | ETH_HDRLEN | io_len | ---------------------------------|--------------- 8021Q | Reserved | ETH_8021Q_HDRLEN | io_len | ---------------------------------|--------------- ipforward | Reserved | io_len | ------------------------------------------------- -------------------------------------------------------------------- ``` 2. mm/iob: decoupling iob_s and io_data 3. mm/iob: add support of shared iob add reference count to each iob entry to support shared iob, multiple iob entries could share the io_data to avoid unnecessary iob_alloc and memory copies ``` --------- --------- Shared entries | iob_s | | iob_s | --------- --------- \ / (io_parent) \ / (io_parent) \ / -------------------------------------------------- Origin entry | iob_s | io_data (shared with shadow entries) | -------------------------------------------------- io_refs(3) ``` 4. net/devif/iobsend: add support of iob shared to avoid unnecessary iob copying Iperf passthrough on NuttX simulator: enable CONFIG_NET_TCP_WRITE_BUFFERS, ``` ---------------------------------------- | Protocol | Client | | |--------------------------------------| | TCP | 230 | Mbits/sec | | TCP(Shared) | 300 | Mbits/sec | ---------------------------------------- ``` 5. net/tcp: update only if packet and device length are different ## Impact N/A ## Testing iperf test -- 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