From owner-freebsd-net@freebsd.org Mon Sep 19 16:04:55 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 71280BE0ED4 for ; Mon, 19 Sep 2016 16:04:55 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 121563BB; Mon, 19 Sep 2016 16:04:54 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Subject: Re: unable to use BPF Just-In-Time compiler To: "Bjoern A. Zeeb" , KrishnamRaju ErapaRaju References: <3F7A8F51-D404-4FEF-910C-8E51DD5061AD@lists.zabbadoz.net> Cc: "freebsd-net@freebsd.org" From: Jung-uk Kim Message-ID: <3f462411-c691-f3b8-35f4-f1904c4b84aa@FreeBSD.org> Date: Mon, 19 Sep 2016 12:04:49 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <3F7A8F51-D404-4FEF-910C-8E51DD5061AD@lists.zabbadoz.net> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Jh2pwJfk92uibXleF3TF2m8MvO4rOMPDF" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Sep 2016 16:04:55 -0000 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 To: "Bjoern A. Zeeb" , KrishnamRaju ErapaRaju Cc: "freebsd-net@freebsd.org" Message-ID: <3f462411-c691-f3b8-35f4-f1904c4b84aa@FreeBSD.org> Subject: Re: unable to use BPF Just-In-Time compiler References: <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--