-
Notifications
You must be signed in to change notification settings - Fork 691
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
Refactor reentrant flag to be set during channel creation. #1738
base: dev
Are you sure you want to change the base?
Conversation
…nnelImpl` to remove ambiguity between public and private calls.
… of when starting capture as it is determined by the PF_RING_REENTRANT flag. - Added ability to choose if `openSingleChannelImpl` will open w/reenterant flag.
int res = openSingleRxChannel(ringName.c_str(), &m_PfRingDescriptors[i]); | ||
// todo: Shouldn't we use the reentrant mode here? We are opening multiple channels? | ||
// todo: Potentially only open in reenterant mode if creating N > 1 channels? | ||
int res = openSingleRxChannelImpl(ringName.c_str(), &m_PfRingDescriptors[i]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@seladb Can you please check this code?
Why is the implementation opening multiple Rx channels in non-reentrant mode here, when the other multiple channel function opens them in reentrant mode?
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #1738 +/- ##
==========================================
- Coverage 83.21% 83.20% -0.01%
==========================================
Files 282 282
Lines 48732 48732
Branches 10354 10552 +198
==========================================
- Hits 40550 40548 -2
- Misses 7052 7056 +4
+ Partials 1130 1128 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Split of #1668
This PR aims to standardize
m_ReentrantMode
to be set during the channel opening phase instead of the capture initialization phase as it is determined by the opening flags. The currently used implementation essentially assumes the what the reentrant mode is based on the function being called to start the capture, instead of recording the correct value.