issue: 4409248 Fix RoCE LAG warning
User description
We cannot disable RoCE LAG (deprecated option in OFED 5.1).
Change type
What kind of change does this PR introduce?
- [ ] Bugfix
- [ ] Feature
- [ ] Code style update
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] CI related changes
- [ ] Documentation content changes
- [ ] Tests
- [ ] Other
Check list
- [ ] Code follows the style de facto guidelines of this project
- [ ] Comments have been inserted in hard to understand places
- [ ] Documentation has been updated (if necessary)
- [ ] Test has been added (if possible)
PR Type
Bug fix, Enhancement
Description
-
Removed deprecated RoCE LAG disable path references.
-
Simplified
print_roce_lag_warningsfunction signature and logic. -
Updated RoCE LAG warning messages for clarity and relevance.
-
Adjusted related function calls to match updated signature.
Changes walkthrough 📝
| Relevant files | |||||||
|---|---|---|---|---|---|---|---|
| Enhancement |
|
Need help?
Type /help how to ...in the comments thread for any questions about PR-Agent usage.Check out the documentation for more information.
bot:retest
bot:retest
bot:retest
Could you please update the description to detail more about the "why"?
/review
/describe
/improve
PR Reviewer Guide 🔍
Here are some key observations to aid the review process:
| ⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪ |
| 🧪 No relevant tests |
| 🔒 No security concerns identified |
⚡ Recommended focus areas for reviewPossible Issue
print_roce_lag_warnings is invoked without the bond_roce_lag_path argument in some cases, which may lead to incorrect behavior or missing information in the warning logs. |
PR Description updated to latest commit (https://github.com/Mellanox/libxlio/commit/d6567d8866ba21553600b46ba1df1ff6c479050d)
PR Code Suggestions ✨
| Category | Suggestion | Impact |
| Possible issue |
Add bounds check for safe accessVerify that src/core/dev/net_device_val.cpp [1482-1483]
Suggestion importance[1-10]: 9__ Why: Adding a bounds check ensures that the code does not attempt to access elements of | High |
Validate pointer before function callEnsure that src/core/dev/net_device_val.cpp [1534]
Suggestion importance[1-10]: 8__ Why: Validating the pointer returned by | Medium | |
| General |
Improve clarity of warning messageClarify the warning message to provide more actionable information about the issue
Suggestion importance[1-10]: 6__ Why: Enhancing the warning message with more actionable information improves user understanding and usability. While this change is not critical, it contributes to better communication of issues to the user. | Low |
bot:retest
@tomerdbz please review in your convenient time
bot:retest
@tomerdbz REMINDER - i think you approved it in VMA but not in XLIO?