Re: Changing pf to use kmalloc instead of zalloc

看板DFBSD_kernel作者時間15年前 (2011/01/22 05:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/7 (看更多)
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. tia Jan
文章代碼(AID): #1DEVGIBi (DFBSD_kernel)
討論串 (同標題文章)
文章代碼(AID): #1DEVGIBi (DFBSD_kernel)