Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Sep 2016 12:04:49 -0400
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>, KrishnamRaju ErapaRaju <Krishna2@chelsio.com>
Cc:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: unable to use BPF Just-In-Time compiler
Message-ID:  <3f462411-c691-f3b8-35f4-f1904c4b84aa@FreeBSD.org>
In-Reply-To: <3F7A8F51-D404-4FEF-910C-8E51DD5061AD@lists.zabbadoz.net>
References:  <BN4PR12MB0818CC41AAD82420B3C3EB3A94F00@BN4PR12MB0818.namprd12.prod.outlook.com> <3F7A8F51-D404-4FEF-910C-8E51DD5061AD@lists.zabbadoz.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--Jh2pwJfk92uibXleF3TF2m8MvO4rOMPDF
Content-Type: multipart/mixed; boundary="9Fa5DFnEjQkN87SMh9eHWgPlX5ipfdtAm";
 protected-headers="v1"
From: Jung-uk Kim <jkim@FreeBSD.org>
To: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>,
 KrishnamRaju ErapaRaju <Krishna2@chelsio.com>
Cc: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Message-ID: <3f462411-c691-f3b8-35f4-f1904c4b84aa@FreeBSD.org>
Subject: Re: unable to use BPF Just-In-Time compiler
References: <BN4PR12MB0818CC41AAD82420B3C3EB3A94F00@BN4PR12MB0818.namprd12.prod.outlook.com>
 <3F7A8F51-D404-4FEF-910C-8E51DD5061AD@lists.zabbadoz.net>
In-Reply-To: <3F7A8F51-D404-4FEF-910C-8E51DD5061AD@lists.zabbadoz.net>

--9Fa5DFnEjQkN87SMh9eHWgPlX5ipfdtAm
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 09/17/2016 17:11, Bjoern A. Zeeb wrote:
> On 15 Sep 2016, at 5:32, KrishnamRaju ErapaRaju wrote:
>=20
>> 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
>=20
> I think you want
>=20
> device         bpf_jitter
>=20
> The options line to my understanding only turns it on by default.

"options BPF_JITTER" works.  I don't know why the OP thinks that it
doesn't work, though.

Jung-uk Kim

>> make buildkernel KERNCONF=3DMYKERNEL
>> make installkernel KERNCONF=3DMYKERNEL
>> 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.


--9Fa5DFnEjQkN87SMh9eHWgPlX5ipfdtAm--

--Jh2pwJfk92uibXleF3TF2m8MvO4rOMPDF
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJX4AymAAoJEHyflib82/FGOwIIAIKa9kaKm1jpUpXF0JqL7G9j
cSbWtMwLJf7dIfoJmUux4tn5F6S0cMfS0OLV+YZQA3t/8uOOpWrRp8vv+gCtcgFJ
evDnqiCIxexw5gsAWPc5NiMNZzwMNN6TgR8+MEGhbeQOq9s9ZNkCizRtcYXUdk5I
NObuqTOSrgI8xpc8N0GXNEFBWdf4TwSq7zJh9UoiMDv570UL2i3giqYSadsLxLlJ
ef/bWySu8TbEzjQnBd3fdzyt4xRdqqQ6J+VxTVxeVxf/nU15Y8dtilhK0Ac0PAMH
zIH5uH4zXGo0BCW5KbJaBETGKIQGuQO0owDToQeu+LW99xxsiu8B6NLnQ7wYtgY=
=10nd
-----END PGP SIGNATURE-----

--Jh2pwJfk92uibXleF3TF2m8MvO4rOMPDF--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3f462411-c691-f3b8-35f4-f1904c4b84aa>