network - UDP currently only going to one proto thread
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 14 Sep 2010 01:40:54 +0000 (18:40 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 14 Sep 2010 01:40:54 +0000 (18:40 -0700)
* Adjust udp_addrcpu() to always return cpu 0 for now, the UDP
  implementation currently only operates on protocol thread 0.

sys/netinet/ip_demux.c

index 3b659f7..998deed 100644 (file)
@@ -90,10 +90,14 @@ tcp_addrcpu(in_addr_t faddr, in_port_t fport, in_addr_t laddr, in_port_t lport)
        return (INP_MPORT_HASH_TCP(faddr, laddr, fport, lport));
 }
 
+/*
+ * Not implemented yet, use protocol thread 0
+ */
 int
 udp_addrcpu(in_addr_t faddr, in_port_t fport, in_addr_t laddr, in_port_t lport)
 {
-       return (INP_MPORT_HASH_UDP(faddr, laddr, fport, lport));
+       /*return (INP_MPORT_HASH_UDP(faddr, laddr, fport, lport));*/
+       return 0;
 }
 
 /*