FDio / govpp

Go toolset for the VPP.
Apache License 2.0
193 stars 82 forks source link

Gomemif improvemets #228

Closed mohsinkazmi closed 3 weeks ago

mohsinkazmi commented 1 month ago

Packet reader function does not consider the length of the packet array to accommodate the number of receiving packets. It results in crash, if receiving packets are more than packet array length. This issue has been fixed.

Previously, nested iterations over interfaces and queues were used to handle receive interrupts. It has been replaced that approach with a lookup-based solution.

Previously, packets could starve in the receive queue if rx_burst read fewer packets than were enqueued. The fix ensures the queue remains interrupted, allowing the event handler to continue processing until all packets in the receive queue have been read.

fixes #85