From owner-freebsd-net@freebsd.org Mon Sep 19 21:18:06 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 B4829BE1BE4 for ; Mon, 19 Sep 2016 21:18:06 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:130:3ffc::401:25]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6CEC9953 for ; Mon, 19 Sep 2016 21:18:06 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 10FB925D3A02; Mon, 19 Sep 2016 21:18:03 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 40CDDC77244; Mon, 19 Sep 2016 21:18:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id DMESELu1Jr8p; Mon, 19 Sep 2016 21:18:02 +0000 (UTC) Received: from [10.111.64.116] (unknown [IPv6:fde9:577b:c1a9:4410:da1:7913:9d7d:3bf6]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id A1CC0C76FF8; Mon, 19 Sep 2016 21:18:01 +0000 (UTC) From: "Bjoern A. Zeeb" To: "KrishnamRaju ErapaRaju" Cc: "freebsd-net@freebsd.org" Subject: Re: unable to use BPF Just-In-Time compiler Date: Mon, 19 Sep 2016 21:17:57 +0000 Message-ID: <315A03D6-4E89-4C23-8E37-BC52643B5DC6@lists.zabbadoz.net> In-Reply-To: <3f462411-c691-f3b8-35f4-f1904c4b84aa@FreeBSD.org> References: <3F7A8F51-D404-4FEF-910C-8E51DD5061AD@lists.zabbadoz.net> <3f462411-c691-f3b8-35f4-f1904c4b84aa@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Mailer: MailMate (2.0BETAr6056) 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 21:18:06 -0000 On 19 Sep 2016, at 16:04, Jung-uk Kim wrote: > On 09/17/2016 17:11, Bjoern A. Zeeb wrote: >> 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/058= 603.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. > > "options BPF_JITTER" works. I don't know why the OP thinks that it > doesn't work, though. Ok, let=E2=80=99s see; if you boot your own kernel, what does sysctl net.bpf_jitter.enable say? /bz