Repository navigation
Streams: name the wired Ethernet link when a start is refused - #990
Merged
chrisgleissner merged 5 commits intoOct 15, 2026
Merged
Conversation
chrisgleissner
marked this pull request as ready for review
October 14, 2026 19:21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #989.
Summary
PUT /v1/streams/{stream}:startreported "No Operational Network Interface" when the wired Ethernet port had no link or no IP address, even while WiFi was up and carrying the request. The call now fails with "Wired Ethernet link is down or has no IP address", and the route description says that the streams leave through the wired port only. Two other statements in the stream and info route documentation that do not match the firmware are corrected.Verified on an Ultimate 64 Elite with Ethernet and WiFi on one subnet. The new manual suite
stream-wired-linkfails onmasterwith the old message and passes on this branch.Testing found two further defects. They are tracked separately and are not changed here:
404 Network Host Resolve Erroron a unit with both interfaces. Fixed by Streams: resolve a unicast destination on the wired port #993, which builds on this PR.Error message when the wired port has no address
The FPGA stream generators send only through interface 0, the RMII port. On every target that builds
data_streamer.cc, the RMII interface is registered before the WiFi interface (init priority 51 against 52), so interface 0 is always the wired port.DataStreamer::startStreamrefuses when that interface has no link or no IP address. It returnedSSRET_NO_NETWORK, whose text is "No Operational Network Interface". That text is wrong whenever WiFi is up.A new result code,
SSRET_NO_ETHERNET_LINK, carries the text "Wired Ethernet link is down or has no IP address". It keeps HTTP 500, so a client that tests the status code sees no change.SSRET_NO_NETWORKstays for the case where no network interface exists at all. Changing the text ofSSRET_NO_NETWORKinstead was rejected because that code still reports that case.Two places are left unchanged on purpose:
debug_streamer_u2p.ccmakes the same check. The U2+ and U2+L start that stream from the menu only, and the result code is never shown there, so changing it would have no observable effect.Documentation corrections
Each of these was checked against the firmware on the device.
streams:startsaid that any multicast group is accepted. The firmware treats only 232.0.0.0 to 239.255.255.255 as multicast. A group from 224 to 231 is answered with 200, but the stream is addressed to the gateway, and a listener that joined the group receives nothing. The description now gives the range. Add runtime VIC palette stream metadata #871 widens the range in the firmware, so this sentence needs updating if Add runtime VIC palette stream metadata #871 is merged after this PR.GET /v1/infosaid that the Ident Service on UDP port 64 returns the same information. The Ident answer has nogit_commit_hashand no MAC addresses, and itsproductstring includes the versions. The sentence now says "most of this information".Test
tests/e2e/network/stream_wired_link_test.py, registered as the manual suitestream-wired-link:The suite also handles three other cases:
The settings are changed in memory only. The suite is manual because three effects last until the device restarts, and its description says to power-cycle afterwards:
Results on an Ultimate 64 Elite (FPGA 126, core 1.50), with Ethernet 192.168.1.13 and WiFi 192.168.1.70 on one subnet. Each build was loaded over JTAG.
stream-wired-linkmaster125da1fexpected HTTP 500 'Wired Ethernet link is down or has no IP address', got HTTP 500 ['No Operational Network Interface']Builds:
u64andu64iibuild completely. Theu2,u2plandu2plusapplications compile and link; their updater steps stop on prebuilt files that a software-only build does not produce.make openapi_checkandmake openapi_testpass.Not verified on hardware: the U64 Elite II and the C64 Ultimate, which run the same
data_streamer.cc.Commit history
The first commit also contained the unicast fix. A later commit moves that fix to #993, so the branch adds that fix and then removes it. Squashing on merge keeps that pair out of
master.