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

Abierto
#1,189 0 comentarios 4 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
15/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
c
Área
networking

Línea de trabajo

The request concerns the buffer allocation API for the TCP stack, and the proposed new file is BufferAllocation_3.c, which does not exist yet; the existing allocator behaviour is what needs reading first. The issue has no comments and no linked work, so a maintainer decision on the TX/RX split is needed before any code. Done would mean an agreed API design for separate TX and RX allocate and release functions, not an implementation.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement

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.

Lenguaje dominante
C
Estrellas
215
Forks
222
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de FreeRTOS/FreeRTOS-Plus-TCP

Todos los issues de FreeRTOS/FreeRTOS-Plus-TCP

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.