Use "options BPF_JITTER" in your kernconf. If this is new code you must include opt_bpf.h in it. If it's part of a module then the module's makefile must have opt_bpf.h in its SRCS. When in doubt take a look at all the obt_bpf.h in your obj tree after the buildkernel and see if they have "#define BPF_JITTER 1" or not. Remove all opt_bpf.h files in the obj tree and retry buildkernel if all else fails.
Regards, Navdeep On Mon, Sep 19, 2016 at 10:41:38AM +0000, KrishnamRaju ErapaRaju wrote: > Thanks for your response Bjeorn. > > I added "device bpf_jitter" line as you suggested, but not luck. > Still no code under BPF_JITTER macro is executing. > > Please help me enabling JIT compiler. > > Thanks, > Krishna. > -----Original Message----- > From: Bjoern A. Zeeb [mailto:bzeeb-li...@lists.zabbadoz.net] > Sent: Sunday, September 18, 2016 2:41 AM > To: KrishnamRaju ErapaRaju <krish...@chelsio.com> > Cc: freebsd-net@freebsd.org > Subject: Re: unable to use BPF Just-In-Time compiler > > On 15 Sep 2016, at 5:32, KrishnamRaju ErapaRaju wrote: > > > Hi, > > > > I want to use BPF JIT Kernel APIs in FreeBSD(like: bpf_jitter(), > > etc..), for implementing TCP connection packet filtering. > > > > I have followed below instructions as specified in: > > https://lists.freebsd.org/pipermail/freebsd-current/2005-December/0586 > > 03.html > > > > STEPS followed: > > --------------------- > > cp /usr/src/sys/amd64/conf/GENERIC /usr/src/sys/amd64/conf/MYKERNEL > > > > And added below line in MYKERNEL config file. > > options BPF_JITTER > > I think you want > > device bpf_jitter > > The options line to my understanding only turns it on by default. > > > > > make buildkernel KERNCONF=MYKERNEL > > make installkernel KERNCONF=MYKERNEL > > reboot > > > > But after reboot the flag BPF_JITTER is not getting enabled(all the > > code inside "#ifdef BPF_JITTER" is not getting executed). > > > > Am I missing something? > > > > Also it looks like there are not many updates to BPF JIT code since > > 2005, is it stable? anyone using it? > > > > Thanks, > > Krishna. > > _______________________________________________ > > freebsd-net@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-net > > To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org" > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org" _______________________________________________ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"