Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Separate RX network descriptors for TX network descriptors #1189

Open
thirtytwobits opened this issue Sep 14, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@thirtytwobits
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Some ethernet drivers have distinct memory pools for rx and tx DMA buffers. Implementing a zero-copy NetworkInterface is complicated by this library's assumption that all memory descriptors are homogenous.

Describe the solution you'd like
Have separate buffer allocators for tx and rx. For example: vNetworkInterfaceAllocateRAMTo[TX|RX]Buffers and vRelease[TX|RX]NetworkBufferAndDescriptor in a BufferAllocation_3.c.

Describe alternatives you've considered
Marking buffers as being tx or rx buffers may increase backwards compatibility for this change but it will also complicate implementations; introducing "if tx else" branching instructions in applications instead of just linking tx and rx buffer handling paths through the code at compile-time.

Additional context
This problem encountered when using newer NXP GMAC IP in the S32K family of MCUs.

@aggarg aggarg added the enhancement New feature or request label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants