[Bug 211836] Kernel panic with net.isr enabled
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Aug 15 16:03:50 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211836
--- Comment #10 from Andrey V. Elsukov <ae at 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.
More information about the freebsd-net
mailing list