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

--- Comment #10 from Andrey V. Elsukov <a...@freebsd.org> ---
(In reply to Babak Farrokhi from comment #9)
> Created attachment 173703 [details]
> textdump after applying patch from @ae
> 
> Panicked again after patch

Ok, this is yet another case :)
Can you test this patch instead? It should cover both (all) cases.
The NETISR_DISPATCH_HYBRID case looks not quite correct, but it is better than
panic...

Index: sys/net/netisr.c
===================================================================
--- sys/net/netisr.c    (revision 304101)
+++ sys/net/netisr.c    (working copy)
@@ -810,10 +810,12 @@ netisr_select_cpuid(struct netisr_proto *npp, u_in
                 * dispatch.  In the queued case, fall back on the SOURCE
                 * policy.
                 */
-               if (*cpuidp != NETISR_CPUID_NONE)
+               if (*cpuidp != NETISR_CPUID_NONE) {
+                       *cpuidp = nws_array[ *cpuidp % nws_count ];
                        return (m);
+               }
                if (dispatch_policy == NETISR_DISPATCH_HYBRID) {
-                       *cpuidp = curcpu;
+                       *cpuidp = nws_array[ curcpu % nws_count ];
                        return (m);
                }
                policy = NETISR_POLICY_SOURCE;

-- 
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