-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* gomemif: fix the packet reader function 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 patch fixes this issue. Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com> * gomemif: improve the memif interface interrupt handling Previously, nested iterations over interfaces and queues were used to handle receive interrupts. This patch replaces that approach with a lookup-based solution. Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com> * gomemif: fix packet starvation in receive queue Previously, packets could starve in the receive queue if `rx_burst` read fewer packets than were enqueued. This patch ensures the queue remains interrupted, allowing the event handler to continue processing until all packets in the receive queue have been read. Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com> --------- Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
- Loading branch information
1 parent
ff1a1f9
commit 3c7c8a4
Showing
3 changed files
with
37 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters