Ran into the same issue, but managed to fix it by increasing CONFIG_ETH_NXP_ENET_QOS_TX_BUFFER_DESCRIPTORS and CONFIG_ETH_NXP_ENET_QOS_RX_BUFFER_DESCRIPTORS to a value higher than 5. The default is 4 hence why it fails by default. As the HTTP server seems to require at least 5 buffer descriptors in the driver.
My educated guess (though I haven’t looked too deeply into the internals) is that these descriptors act like storage pools or slots for the Ethernet MAC driver to queue complete Ethernet frames or fragments. When the number of available descriptors is too low, the driver is unable to buffer or transmit frames correctly, leading to errors like TX packet too large.
These options can be set by either:
A) Using menuconfig:
Go to Device Drivers → Ethernet drivers → NXP ENET QOS Ethernet Module Driver
Then change:
B) Or, by adding the following lines to your prj.conf:
CONFIG_ETH_NXP_ENET_QOS_TX_BUFFER_DESCRIPTORS=16
CONFIG_ETH_NXP_ENET_QOS_RX_BUFFER_DESCRIPTORS=16
After that, the web server should run fine.
Hope this helps anyone else searching for answers on why the sample doesn’t work out of the box.