Skip to content

Conversation

@zhhyu7
Copy link
Contributor

@zhhyu7 zhhyu7 commented Dec 5, 2025

Summary

When the setinterface interface is called, it indicates that the underlying USB link has been successfully established. At this point, the status of the network card needs to be updated to RUNNING by calling the netdev_carrier_on interface. It is similar to the logic after a Wi-Fi network card is connected to a hotspot. Otherwise, an incorrect network card status may cause packets to fail to be successfully sent.

Impact

N/A

Testing

sim:usbdev
Establish a cdcecm network card connection with HOST Linux and send/receive packets.

@github-actions github-actions bot added Area: USB Size: XS The size of the change in this PR is very small labels Dec 5, 2025
Copy link
Contributor

@acassis acassis left a comment

Choose a reason for hiding this comment

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

@zhhyu7 please include more details in the commit log message what is the problem and calling the netdev_carrier_on() fixes the issue. This way someone reading your commit in the future will be a better understating about the issue

When the setinterface interface is called, it indicates that the underlying
USB link has been successfully established. At this point, the status of the
network card needs to be updated to RUNNING by calling the netdev_carrier_on
interface. It is similar to the logic after a Wi-Fi network card is
connected to a hotspot. Otherwise, an incorrect network card status may
cause packets to fail to be successfully sent.

Signed-off-by: zhanghongyu <[email protected]>
@zhhyu7
Copy link
Contributor Author

zhhyu7 commented Dec 8, 2025

@zhhyu7 please include more details in the commit log message what is the problem and calling the netdev_carrier_on() fixes the issue. This way someone reading your commit in the future will be a better understating about the issue

Done.

@linguini1
Copy link
Contributor

linguini1 commented Dec 8, 2025

Can you provide any logs from your testing? And fill out the impact section (something like "bug fix for CDCECM in scenario where ....")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: USB Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants