DragonFly BSD
DragonFly kernel List (threaded) for 2011-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Changing pf to use kmalloc instead of zalloc

From: Jan Lentfer <Jan.Lentfer@xxxxxx>
Date: Fri, 21 Jan 2011 21:32:32 +0100

Sepherosa Ziehau schrieb:
If I understand the code correctly, you are setting the
pf_pool_limits[].pp to NULL in pfattach(), since you commented out the
ZONE_CREATE parts, well, all xxx_pl is by default NULL.  So the ioctl
actually hi the pf_pool_limits[].pp == NULL, and EINVAL is returned.

kmalloc also has its own limit, you could use kmalloc_raise_limit() to
configure it.

Thanks for the hint. I updated my branch and now everything seems to work on a quick run on my test VM.

I would appreciate very much if someone could take an in-depth look (Sam, Venkatesh ? :) ). It's still very dirty (need to remove the objcache leftover etc), but I hope it's good enough to get some feedback.



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