Skip to content

Conversation

@vnarapar
Copy link
Contributor

@vnarapar 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

@vnarapar vnarapar requested a review from smuppand December 3, 2025 09:31
shift 2
;;
*)

Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

@vnarapar vnarapar force-pushed the Ethernet_fix branch 2 times, most recently from 6601b16 to 10d5312 Compare December 16, 2025 11:40
- 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>
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
Copy link
Contributor

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)
Copy link
Contributor

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?

@smuppand
Copy link
Contributor

@vnarapar Would you like to close this PR?

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.

2 participants