[Bug 263783] USB MBIM: Support for LTE/4G USB modems (MBIM)

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 12 Dec 2024 01:05:55 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263783

--- Comment #47 from Pierre Pronchery <khorben@defora.org> ---
(In reply to mike from comment #46)
Thanks for testing!
It is progress indeed. For the moment I do not see what can cause the panic
(maybe related to VNET again?) but I will let you know as soon as I figure
anything out on my side.

In the meantime you can try to add this in the code:

 static int
 umb_add_inet_config
 {
 [...]
 mtx_unlock(&sc->sc_mutex);
+CURVNET_SET_QUIET(vnet0);
 rv = in_control(NULL, SIOCAIFADDR, (caddr_t)&ifra, ifp, curthread);
+CURVNET_RESTORE();
 mtx_lock(&sc->sc_mutex);
 [...]
 }

If this solves the problem, I suspect there will be another panic when the link
goes up and down; basically for the other two calls of in_control(). The same
procedure will apply.

Let me know if you would like me to provide a tentative patch instead.

HTH,
-- khorben

-- 
You are receiving this mail because:
You are the assignee for the bug.