-
Notifications
You must be signed in to change notification settings - Fork 183
pktgen_perf: add vm parameter to _pin_vm_threads call #4398
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
base: master
Are you sure you want to change the base?
Conversation
WalkthroughA helper function Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
generic/tests/pktgen_perf.py (1)
48-57: Excellent bug fix! Update the docstring to document the new parameter.This change fixes a critical scoping issue. Previously,
_pin_vm_threadsrelied on closure to accessvmfrom the outerrunfunction scope, which would have beenNone(line 115) at the time of the call. Now it correctly receives the initialized VM object as an explicit parameter.The docstring should be updated to document the new
vmparameter.Apply this diff to update the docstring:
def _pin_vm_threads(vm, node): """ pin guest vcpu and vhost threads to cpus of a numa node repectively + :param vm: the VM object to pin threads for :param node: which numa node to pin """
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
generic/tests/pktgen_perf.py(2 hunks)
🔇 Additional comments (1)
generic/tests/pktgen_perf.py (1)
69-69: LGTM!The call site correctly passes the VM object that was initialized at line 63, fixing the closure scoping issue.
|
JOB LOG : /root/avocado/job-results/job-2025-11-07T03.44-575c0a8/job.log @PaulYuuu could you help review this small fix ? thanks a lot. |
Signed-off-by: Wenli Quan <[email protected]>
b7d7e7d to
16b6325
Compare
ID : 4678
Summary by CodeRabbit