raiden00pl commented on PR #22288: URL: https://github.com/apache/nuttx/pull/22288#issuecomment-7162500101
@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? -- 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]
