ip: Prioritize drain and timeout netmsgs
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 8 Sep 2014 12:01:54 +0000 (20:01 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 8 Sep 2014 12:01:54 +0000 (20:01 +0800)
sys/netinet/ip_input.c

index 88c6f81..0fbeab9 100644 (file)
@@ -390,9 +390,11 @@ ip_init(void)
 
                        TAILQ_INIT(&fragq->ipq[i]);
                        netmsg_init(&fragq->timeo_netmsg, NULL,
-                           &netisr_adone_rport, 0, ipfrag_timeo_dispatch);
+                           &netisr_adone_rport, MSGF_PRIORITY,
+                           ipfrag_timeo_dispatch);
                        netmsg_init(&fragq->drain_netmsg, NULL,
-                           &netisr_adone_rport, 0, ipfrag_drain_dispatch);
+                           &netisr_adone_rport, MSGF_PRIORITY,
+                           ipfrag_drain_dispatch);
                }
        }