lwIP | Add GRETH/GRETH_GBIT driver (!40)

Matteo Concas (@matteo.concas) gitlab at rtems.org
Thu Apr 30 17:56:29 UTC 2026




Matteo Concas commented on a discussion on rtemslwip/greth/include/lwipbspopts.h: https://gitlab.rtems.org/rtems/pkg/rtems-lwip/-/merge_requests/40#note_149330

 > +#undef LWIP_IPV6
 > +#define LWIP_IPV4 1
 > +
 > +#define GRETH 1
 > +
 > +#define TCP_WND     65535
 > +#define TCP_SND_BUF 65535
 > +#define TCP_SNDLOWAT                                          \
 > +  LWIP_MIN(                                                   \
 > +    LWIP_MAX( ( ( TCP_SND_BUF ) / 2 ), ( 2 * TCP_MSS ) + 1 ), \
 > +    ( 0xFFFFU - ( 4 * TCP_MSS ) - 1 )                         \
 > +  )
 > +#define LWIP_TCP_SACK_OUT 1
 > +#define TCP_QUEUE_OOSEQ   1
 > +
 > +#define IP_FORWARD 1

I tuned the driver for throughput. Admittedly I had bigger SoCs like GR765 in mind when I settled on these numbers so memory wise they're not very efficient.

I'll redo this file to do checks and have default values instead of redefining things. I wasn't sure about what belonged to the `config.ini` file versus what belonged to this file so I added what is basically the base config for the driver.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-lwip/-/merge_requests/40#note_149330
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/20260430/07b61c14/attachment.htm>


More information about the bugs mailing list