PetervdPerk-NXP commented on issue #6835:
URL: 
https://github.com/apache/incubator-nuttx/issues/6835#issuecomment-1212832599

   > So, the hardware can check the checksum for receiving, but can't generate 
checksum for sending? In this case, we may need add new option to disable the 
checksum for one direction like CONFIG_NET_UDP_CHECKSUMS.
   
   TX Checksum is done in the MAC as well, a solution for that is just to 
enable NET_ARCH_CHKSUM for TX only and make a dummy function, since MAC itself 
will fill the dummy bytes with the checksum.
   
   > But, the process can directly handle in either irq handler and work 
callback before pass the data to TCP/IP stack. What I can't understand is why 
we need TCP/IP stack callback to netdev.
   
   Most of it can be done in the IRQ handler, but the reference that the 
TCP/UDP checksum was correct gets lost then, hence the need for callback. I 
guess we can also just drop the packet when we see this but then the TCP/UDP 
wouldn't know that a corrupted packet has been received.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to