From owner-freebsd-net@freebsd.org Sat Sep 17 21:11:34 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 B2B12BDE150 for ; Sat, 17 Sep 2016 21:11:34 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (bird.sbone.de [46.4.1.90]) (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 72240B0B for ; Sat, 17 Sep 2016 21:11:33 +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 426D625D3891; Sat, 17 Sep 2016 21:11:25 +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 630EDD1F8E3; Sat, 17 Sep 2016 21:11:24 +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 5VI85CwO7jGO; Sat, 17 Sep 2016 21:11:22 +0000 (UTC) Received: from [192.168.124.1] (unknown [IPv6:fde9:577b:c1a9:4410:404f:7e6f:a0ae:232b]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 5B6DFD1F880; Sat, 17 Sep 2016 21:11:21 +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: Sat, 17 Sep 2016 21:11:19 +0000 Message-ID: <3F7A8F51-D404-4FEF-910C-8E51DD5061AD@lists.zabbadoz.net> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; format=flowed 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: Sat, 17 Sep 2016 21:11:34 -0000 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/058603.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-unsubscribe@freebsd.org"