From owner-freebsd-net@freebsd.org Tue Sep 20 06:34:12 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 E4825BE1E96 for ; Tue, 20 Sep 2016 06:34:12 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: from mail-pa0-x22b.google.com (mail-pa0-x22b.google.com [IPv6:2607:f8b0:400e:c03::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B0C6DC5A for ; Tue, 20 Sep 2016 06:34:12 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: by mail-pa0-x22b.google.com with SMTP id oz2so3757666pac.2 for ; Mon, 19 Sep 2016 23:34:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=6IOsy1KTjF8DnwFOujLFen7b8R+GlDpcx+/4NK9Axwo=; b=Jn8/EhWBZh4L0vMk0Hs0IJiFKUAn44c2ozIOermr72I8G2be5yu24eeQYPj5Z/5mmD tvG3pLUufYDRQW65riUi1dGDAPgW7uIdQZVHTbnhuDbYlwIiQYCRUnHjWrVgmCYD8rOV Lg+L8IiEwMkcrewYvcF+jxotHsago91i6BH1tAOSJ1yLf6+DPBdySkrRkzz09bYgfV0b 8wmoVuAtX7vPV1raRmvGEkJ9a71101Ga9TirikH91Lzh4/eAGAU1DTcOKWlr2bUo5deD g7k/wkVG+Ac1RJ2C1XJRjROTw7p7UL05Eyyg9j5L6+IIeFWaLO0NZJ0emqbeDM4CxWSw wXxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=6IOsy1KTjF8DnwFOujLFen7b8R+GlDpcx+/4NK9Axwo=; b=gjozjQMFq/dtMT5xiERBKjUHPmR7KjSHdDoW4v7nZ6coKNcNGtK4rvQLDGYTaYpZCf MR0Plm3FXfatmx9ZWmy272qgGrZ+6UU/yTeQ/BLHAxK47H8X4BjhVA2BoACVputFk7Fb vIpVmJ6+UyRTSEXSnMkqU/muUEFMpEzQ83FJe17RU5DFyvCsgp9bMuznHEBKU1I5yqS0 ZI/3qHWQvd3FQ1GpRMb3NHy98PXFulVTn6jhXLmbPGS0/PWz4pbtvlcR+uUOd3gP+0Xa qVPkYSwIK7NQyT6Q+tBIJN7eSWwhs+S3bKEP9qpl+0D94tTFh7jk4qfKea90Fgh63Apl zHfw== X-Gm-Message-State: AE9vXwNgpc7p2X4gKguFUERKE3eMdT+bPn5kIJPNK1xJaPHUAJjKAPfgsPylJMFURtvjSw== X-Received: by 10.66.185.14 with SMTP id ey14mr53684942pac.71.1474353252191; Mon, 19 Sep 2016 23:34:12 -0700 (PDT) Received: from ox ([2601:641:c000:7b00:fc84:de9a:4729:79c7]) by smtp.gmail.com with ESMTPSA id d5sm75947945pfa.44.2016.09.19.23.34.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Sep 2016 23:34:10 -0700 (PDT) Sender: Navdeep Parhar Date: Mon, 19 Sep 2016 23:34:02 -0700 From: Navdeep Parhar To: KrishnamRaju ErapaRaju Cc: "Bjoern A. Zeeb" , "freebsd-net@freebsd.org" Subject: Re: unable to use BPF Just-In-Time compiler Message-ID: <20160920063402.GA15975@ox> Mail-Followup-To: KrishnamRaju ErapaRaju , "Bjoern A. Zeeb" , "freebsd-net@freebsd.org" References: <3F7A8F51-D404-4FEF-910C-8E51DD5061AD@lists.zabbadoz.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) 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: Tue, 20 Sep 2016 06:34:13 -0000 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-lists@lists.zabbadoz.net] > Sent: Sunday, September 18, 2016 2:41 AM > To: KrishnamRaju ErapaRaju > 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-unsubscribe@freebsd.org" > _______________________________________________ > 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"