Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gomemif improvemets #228

Merged
merged 3 commits into from
Aug 22, 2024
Merged

Gomemif improvemets #228

merged 3 commits into from
Aug 22, 2024

Conversation

mohsinkazmi
Copy link
Contributor

@mohsinkazmi mohsinkazmi commented Jul 24, 2024

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

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>
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>
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>
@sknat sknat merged commit 3c7c8a4 into FDio:master Aug 22, 2024
10 checks passed
@mohsinkazmi mohsinkazmi deleted the gomemif-improvemets branch August 22, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[extras] The gomemif library struggles with high throughput when using interrupt mode.
2 participants