diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c index 289b58a6e063..5fd29b831c4c 100644 --- a/sys/netinet/tcp_reass.c +++ b/sys/netinet/tcp_reass.c @@ -106,8 +106,8 @@ tcp_reass_zone_change(void *tag) /* Set the zone limit and read back the effective value. */ V_tcp_reass_maxseg = nmbclusters / 16; - uma_zone_set_max(V_tcp_reass_zone, V_tcp_reass_maxseg); - V_tcp_reass_maxseg = uma_zone_get_max(V_tcp_reass_zone); + V_tcp_reass_maxseg = uma_zone_set_max(V_tcp_reass_zone, + V_tcp_reass_maxseg); } void @@ -120,8 +120,8 @@ tcp_reass_init(void) V_tcp_reass_zone = uma_zcreate("tcpreass", sizeof (struct tseg_qent), NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE); /* Set the zone limit and read back the effective value. */ - uma_zone_set_max(V_tcp_reass_zone, V_tcp_reass_maxseg); - V_tcp_reass_maxseg = uma_zone_get_max(V_tcp_reass_zone); + V_tcp_reass_maxseg = uma_zone_set_max(V_tcp_reass_zone, + V_tcp_reass_maxseg); EVENTHANDLER_REGISTER(nmbclusters_change, tcp_reass_zone_change, NULL, EVENTHANDLER_PRI_ANY); } diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c index 50916680851e..441c2695b07b 100644 --- a/sys/netinet/tcp_syncache.c +++ b/sys/netinet/tcp_syncache.c @@ -268,8 +268,8 @@ syncache_init(void) /* Create the syncache entry zone. */ V_tcp_syncache.zone = uma_zcreate("syncache", sizeof(struct syncache), NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0); - uma_zone_set_max(V_tcp_syncache.zone, V_tcp_syncache.cache_limit); - V_tcp_syncache.cache_limit = uma_zone_get_max(V_tcp_syncache.zone); + V_tcp_syncache.cache_limit = uma_zone_set_max(V_tcp_syncache.zone, + V_tcp_syncache.cache_limit); } #ifdef VIMAGE