Repository navigation
Conversation
Signed-off-by: ghoker143 <[email protected]>
|
This patch helped me fix my problem with lack of traffic through modem on my Xunison Exigo D50 5G. It has Quectel RM500Q-AE modem, and i'm using Quectel packages, but it works. For me modem works on PCIe and uses MHI. It creates rmnet_mhi0 and rmnet_mhi0.1: "Tested-by: LS3434, Xunison Exigo D50, RM500Q-AE, pcie_mhi, rmnet_mhi0.1" |
kuncy7
added a commit
to kuncy7/openwrt-nss-edma
that referenced
this pull request
Sep 26, 2026
Carry netifd PR #71 (open upstream since March) until it lands. netifd reads any interface name with a dot as a VLAN on the part before it, so the data device of a Quectel PCIe modem, rmnet_mhi0.1 - created by the driver, not a VLAN - became "VLAN 1 on rmnet_mhi0", which the modem's netdev cannot carry. The proto's link-up notify then failed with "Unknown error", netifd released rmnet_mhi0 again and the modem passed no traffic at all, with or without the NSS offload. With the patch netifd checks if_nametoindex() first and takes a name that already exists in the kernel as a plain device; a VLAN it has to create (br-lan.10, wan.35) does not exist yet and still goes the VLAN way. Confirmed on an Xunison D50 with an RM500Q on pcie_mhi (modem up, rmnet_rx offload active); on a GL-B3000 the LAN, the WAN and a VLAN created by netifd come up as before. Link: openwrt/netifd#71 Co-Authored-By: Claude Opus 5.5 <[email protected]>
kuncy7
added a commit
to kuncy7/openwrt-nss-edma
that referenced
this pull request
Oct 10, 2026
Carry netifd PR #71 (open upstream since March) until it lands. netifd reads any interface name with a dot as a VLAN on the part before it, so the data device of a Quectel PCIe modem, rmnet_mhi0.1 - created by the driver, not a VLAN - became "VLAN 1 on rmnet_mhi0", which the modem's netdev cannot carry. The proto's link-up notify then failed with "Unknown error", netifd released rmnet_mhi0 again and the modem passed no traffic at all, with or without the NSS offload. With the patch netifd checks if_nametoindex() first and takes a name that already exists in the kernel as a plain device; a VLAN it has to create (br-lan.10, wan.35) does not exist yet and still goes the VLAN way. Confirmed on an Xunison D50 with an RM500Q on pcie_mhi (modem up, rmnet_rx offload active); on a GL-B3000 the LAN, the WAN and a VLAN created by netifd come up as before. Link: openwrt/netifd#71 Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
netifd's __device_get() treats any interface name containing a '.' as a
VLAN-style device by immediately dispatching to get_vlan_device_chain().
Modern externally-managed interfaces such as the rmnet mux links created
by ModemManager for QMI QMAP multiplexing (e.g. qmapmux0.0, qmapmux0.1)
are legitimate kernel netdevices that happen to contain a dot. When
ModemManager calls notify_proto with such an ifname, netifd incorrectly
tries to resolve it as a VLAN device:
ubus call network.device status '{"name":"qmapmux0.0"}'
=> { "type": "VLAN", "present": false }
This causes notify_proto to fail with "Unknown error" and the interface
never comes up under netifd control.
Fix: before dispatching to get_vlan_device_chain(), probe the kernel with
if_nametoindex(). If the full dotted name already exists as a real netdev,
skip the VLAN path and fall through to the normal device lookup / creation
path. This preserves all existing VLAN behaviour: when eth0.10 does not
yet exist in the kernel, if_nametoindex("eth0.10") returns 0 and netifd
still creates it as a VLAN device as before.