zhhyu7 commented on PR #22288: URL: https://github.com/apache/nuttx/pull/22288#issuecomment-7164272094
> @zhhyu7 @GUIDINGLI @xiaoxiang781216 > > This breaks virtio-net. Before this, the quota limited the driver in two ways, and the driver was not adapted: > > * `virtio_net_rxfill()` is called on every receive and loops `bufnum` times. The RX quota used to stop it; now it fills the whole RX ring and uses up the IOB pool. After that ARP, ICMP and TCP allocations fail. > * `virtio_net_send()` returns `-ENOMEM` when the TX ring is full, so the upper half drops the packet instead of retrying it as `-EBUSY`. > > On rv-virt with virtio-net, the node's first ping to the host gets no reply (100% loss), and IP forwarding between two virtio-net interfaces fails the same way. It works again with `rxfill` limited to `bufnum` buffers in flight and `-EBUSY` returned on a full TX ring. > > Do you have a follow-up for virtio-net, or should I open a PR? @raiden00pl I've checked, and there is indeed a patch for this issue in the local repository, but it doesn't match the current baseline of the main Apache branch, so it can't be cherry-picked directly. I'll modify the corresponding patch first, and the link to the fix PR is: https://github.com/apache/nuttx/pull/22322 . Do you have an environment to test this and see if it solves the problem? I'm sorry that I missed the patch, which caused this problem. -- 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]
