-
Notifications
You must be signed in to change notification settings - Fork 25
Ethernet: Added force link speed on eth interface via ethtool #222
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: main
Are you sure you want to change the base?
Conversation
vnarapar
commented
Dec 3, 2025
- Add --interface/-i and --speed/-s options
- Default link speed to 1000 Mbps when no speed is provided
- Force link speed on eth interface via ethtool
- Update README to document new CLI
| shift 2 | ||
| ;; | ||
| *) | ||
|
|
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.
Better to add log_warn for unknown args
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.
Added
6601b16 to
10d5312
Compare
- Add --interface/-i and --speed/-s options - Default link speed to 1000 Mbps when no speed is provided - Force link speed on eth interface via ethtool - Update README to document new CLI Signed-off-by: Vamsee Narapareddi <vnarapar@qti.qualcomm.com>
10d5312 to
6af1dfe
Compare
| log_info "---- Testing interface: $iface ----" | ||
| model=$(get_machine_model) | ||
|
|
||
| if [ "$model" = "Monaco EVK" ] || [ "$model" = "Lemans EVK" ] || [ "$model" = "Lemans Ride Rev3" ] || [ "$model" = "QCS8300 Ride" ] || [ "$model" = "Robotics RB3gen2" ]; then |
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.
Can this be made more generic instead of being specific to SoC?
| user_iface="$2" | ||
| shift 2 | ||
| ;; | ||
| --speed|-s) |
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.
I'm considering how a user would know which port speed to provide. Wouldn't it be better to fetch the information from ethtool and set the speed based on the model, instead of letting the user choose?
|
@vnarapar Would you like to close this PR? |