* Copyright (c) 2003 Jeffrey Hsu
* All rights reserved.
*
- * $DragonFly: src/sys/netinet/ip_demux.c,v 1.9 2004/03/22 06:38:17 hsu Exp $
+ * $DragonFly: src/sys/netinet/ip_demux.c,v 1.10 2004/03/23 22:30:49 hsu Exp $
*/
#include "opt_inet.h"
lwkt_port_t port;
int cpu;
- if (ip_mthread_enable == 0)
- return (&netisr_cpu[0].td_msgport);
-
if (m->m_pkthdr.len < sizeof(struct ip)) {
ipstat.ips_tooshort++;
return (NULL);
}
KKASSERT(port->mp_putport != NULL);
+ if (ip_mthread_enable == 0)
+ return (&netisr_cpu[0].td_msgport);
+
return (port);
}