PERFORCE change 144246 for review
Julian Elischer
julian at FreeBSD.org
Sun Jun 29 00:00:20 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=144246
Change 144246 by julian at julian_trafmon1 on 2008/06/29 00:00:05
Wierd, somehow some of these udbinfo entries didn't get converted.
Affected files ...
.. //depot/projects/vimage-commit2/src/sys/netinet/udp_usrreq.c#4 edit
Differences ...
==== //depot/projects/vimage-commit2/src/sys/netinet/udp_usrreq.c#4 (text+ko) ====
@@ -148,7 +148,7 @@
udp_zone_change(void *tag)
{
- uma_zone_set_max(udbinfo.ipi_zone, maxsockets);
+ uma_zone_set_max(V_udbinfo.ipi_zone, maxsockets);
}
static int
@@ -165,16 +165,16 @@
udp_init(void)
{
- INP_INFO_LOCK_INIT(&udbinfo, "udp");
+ INP_INFO_LOCK_INIT(&V_udbinfo, "udp");
LIST_INIT(&udb);
- udbinfo.ipi_listhead = &udb;
- udbinfo.ipi_hashbase = hashinit(UDBHASHSIZE, M_PCB,
- &udbinfo.ipi_hashmask);
- udbinfo.ipi_porthashbase = hashinit(UDBHASHSIZE, M_PCB,
- &udbinfo.ipi_porthashmask);
- udbinfo.ipi_zone = uma_zcreate("udpcb", sizeof(struct inpcb), NULL,
+ V_udbinfo.ipi_listhead = &udb;
+ V_udbinfo.ipi_hashbase = hashinit(UDBHASHSIZE, M_PCB,
+ &V_udbinfo.ipi_hashmask);
+ V_udbinfo.ipi_porthashbase = hashinit(UDBHASHSIZE, M_PCB,
+ &V_udbinfo.ipi_porthashmask);
+ V_udbinfo.ipi_zone = uma_zcreate("udpcb", sizeof(struct inpcb), NULL,
NULL, udp_inpcb_init, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE);
- uma_zone_set_max(udbinfo.ipi_zone, maxsockets);
+ uma_zone_set_max(V_udbinfo.ipi_zone, maxsockets);
EVENTHANDLER_REGISTER(maxsockets_change, udp_zone_change, NULL,
EVENTHANDLER_PRI_ANY);
}
More information about the p4-projects
mailing list