Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet IPv6 UDP uses the IPv4 pcb tables, and therefore...



details:   https://anonhg.NetBSD.org/src/rev/79e5e3c96939
branches:  trunk
changeset: 792468:79e5e3c96939
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sat Jan 04 14:18:12 2014 +0000

description:
IPv6 UDP uses the IPv4 pcb tables, and therefore the stats, so need
to create the percpu UDPv4 counters even in a v6-only system.

diffstat:

 sys/netinet/udp_usrreq.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r df0aa9cc1b1d -r 79e5e3c96939 sys/netinet/udp_usrreq.c
--- a/sys/netinet/udp_usrreq.c  Sat Jan 04 13:24:35 2014 +0000
+++ b/sys/netinet/udp_usrreq.c  Sat Jan 04 14:18:12 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: udp_usrreq.c,v 1.192 2014/01/02 18:29:01 pooka Exp $   */
+/*     $NetBSD: udp_usrreq.c,v 1.193 2014/01/04 14:18:12 pooka Exp $   */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.192 2014/01/02 18:29:01 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.193 2014/01/04 14:18:12 pooka Exp $");
 
 #include "opt_inet.h"
 #include "opt_compat_netbsd.h"
@@ -231,6 +231,7 @@
 {
 
        in_pcbinit(&udbtable, udbhashsize, udbhashsize);
+       udpstat_percpu = percpu_alloc(sizeof(uint64_t) * UDP_NSTATS);
 
        MOWNER_ATTACH(&udp_tx_mowner);
        MOWNER_ATTACH(&udp_rx_mowner);
@@ -252,7 +253,6 @@
 {
 
        sysctl_net_inet_udp_setup(NULL);
-       udpstat_percpu = percpu_alloc(sizeof(uint64_t) * UDP_NSTATS);
 
        udp_init_common();
 }



Home | Main Index | Thread Index | Old Index