lwIP | Draft: MR for GRETH lwIP Port GSoC 2025 (!22)
Prithvi Tambewagh (@prithvi77)
gitlab at rtems.org
Fri Jun 13 16:29:08 UTC 2025
Prithvi Tambewagh commented: https://gitlab.rtems.org/rtems/pkg/rtems-lwip/-/merge_requests/22#note_124593
Today I have added function for buffer initialization, can you please have a look and provide feedback? Some key things I considered :
1. I used same struct `emac_bd` for both transmit and receive descriptors since they share same fields
2. I added fields `num_tx_bd` and `num_rx_bd` in struct `greth_netif_struct` for setting number of buffer descriptors for tx and rx separately (analogus struct to struct `tms570_netif_state`)
3. I increased size of `buffptr` in `emac_bd` struct from 8 bit to 32 bit since thats what was used in GRETH Legacy Driver
4. For Non-Gigabit MACs, I have allocated maximum possible packet buffer memory using `malloc(GRETH_MAXBUF_LEN)`
5. Used variables `all_txbd_size` and `all_rxbd_size` for total memory required for tx and tx buffer descriptors respectively
--
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-lwip/-/merge_requests/22#note_124593
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250613/8effbc60/attachment.htm>
More information about the bugs
mailing list