Supply correct "how" argument to the uma_zcreate().
This commit is contained in:
parent
7a5baabe06
commit
04fdc6c689
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=231829
@ -3097,11 +3097,11 @@ ngb_mod_event(module_t mod, int event, void *data)
|
||||
MTX_DEF);
|
||||
#endif
|
||||
ng_qzone = uma_zcreate("NetGraph items", sizeof(struct ng_item),
|
||||
NULL, NULL, NULL, NULL, UMA_ALIGN_CACHE, 0);
|
||||
NULL, NULL, NULL, NULL, UMA_ALIGN_CACHE, M_WAITOK);
|
||||
uma_zone_set_max(ng_qzone, maxalloc);
|
||||
ng_qdzone = uma_zcreate("NetGraph data items",
|
||||
sizeof(struct ng_item), NULL, NULL, NULL, NULL,
|
||||
UMA_ALIGN_CACHE, 0);
|
||||
UMA_ALIGN_CACHE, M_WAITOK);
|
||||
uma_zone_set_max(ng_qdzone, maxdata);
|
||||
/* Autoconfigure number of threads. */
|
||||
if (numthreads <= 0)
|
||||
|
Loading…
Reference in New Issue
Block a user