https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211836

--- Comment #7 from Andrey V. Elsukov <a...@freebsd.org> ---
So, it looks like this is enough to fix the panic:

Index: sys/net/netisr.c
===================================================================
--- sys/net/netisr.c    (revision 304101)
+++ sys/net/netisr.c    (working copy)
@@ -1014,7 +1014,7 @@ netisr_queue_internal(u_int proto, struct mbuf *m,

        dosignal = 0;
        error = 0;
-       nwsp = DPCPU_ID_PTR(cpuid, nws);
+       nwsp = DPCPU_ID_PTR(nws_array[cpuid % nws_count], nws);
        npwp = &nwsp->nws_work[proto];
        NWS_LOCK(nwsp);
        error = netisr_queue_workstream(nwsp, proto, npwp, m, &dosignal);

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to