Skip to content

System.Native: read the full ethtool speed on OpenHarmony - #135866

Closed
springmin wants to merge 1 commit into
dotnet:mainfrom
springmin:pr/ohos-ifaddrs
Closed

springmin wants to merge 1 commit into
dotnet:mainfrom
springmin:pr/ohos-ifaddrs

Conversation

@springmin

Copy link
Copy Markdown
Contributor

ethtool_cmd_speed() is not provided by the OpenHarmony UAPI headers
(TARGET_ANDROID already has its own path). Inline the computation
((speed_hi << 16) | speed) on TARGET_OPENHARMONY so link speeds above
65535 Mbps are reported correctly; Android is untouched.

Test: NetworkInterface.GetAllNetworkInterfaces() reports the expected speed (e.g. 100000 for 100G) on OHOS.

Ported from the OpenHarmony runtime integration branch.
@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Oct 15, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

springmin added a commit to springmin/runtime-ohos that referenced this pull request Oct 15, 2026
Third open N-series PR, fired on the merge-one-replenish-one policy after N2
landed: 4+ OHOS-only diff on pal_interfaceaddresses.c, rebased to the current
tip. In flight is back at the cap with N3/N4/N5/N8.
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @karelz, @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

@springmin

Copy link
Copy Markdown
Contributor Author

Superseded by #136194, which consolidates the remaining native-libs fixes and includes device validation (hello world, child process start, network interfaces, RSA/TLS through the OpenSSL shim).

Note

This comment was drafted with AI assistance (agent tooling) under the author's direction.

@springmin springmin closed this Oct 21, 2026
springmin added a commit to springmin/runtime-ohos that referenced this pull request Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-System.Net community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant