Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jul 2023 12:24:45 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: dis/advantages of compiling in-kernel over kldload
Message-ID:  <CANCZdfrTSTaKYjtXqqCrKnyw3j1QPPSkPaj0L3Y=JwHO%2BS-VWA@mail.gmail.com>
In-Reply-To: <ZK7u00XORTTe-2kK@int21h>
References:  <ZK7mnohS12eEYoV2@int21h> <CANCZdfo1z9xq2%2BZNoYmudxkrR9=c_9Eg9NOECKU8kwgoGi7pbA@mail.gmail.com> <ZK7pqlDKY4JBkvek@int21h> <CANCZdfqYSgGMT=JE8h16n0zVYbrWYYgggJwsJK4Z2QFoE8Es4g@mail.gmail.com> <ZK7u00XORTTe-2kK@int21h>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Wed, Jul 12, 2023, 12:20 PM void <void@f-m.fm> wrote:

> On Wed, Jul 12, 2023 at 12:04:21PM -0600, Warner Losh wrote:
> >
> >Yes. /etc/rc.d/pf doesn't check /etc/pf.conf. Its pf_start() routine will
> >only
> >run if pf_enable=YES in /etc/rc.conf (or related file, which pf.conf is
> not)
>
> Thanks for clarifying.
> Is there advantage to compiling it in-kernel? Or disadvantage?
>

Depends. If you build everything, then you get "tied" modules that are only
for a specific kernel. If you run the released modules, then there can be a
small performance hit that don't matter too much unless you are out of
CPU.... the release modules withh work with a range of kernels.

Warner

>

[-- Attachment #2 --]
<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 12, 2023, 12:20 PM void &lt;<a href="mailto:void@f-m.fm">void@f-m.fm</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Jul 12, 2023 at 12:04:21PM -0600, Warner Losh wrote:<br>
&gt;<br>
&gt;Yes. /etc/rc.d/pf doesn&#39;t check /etc/pf.conf. Its pf_start() routine will<br>
&gt;only<br>
&gt;run if pf_enable=YES in /etc/rc.conf (or related file, which pf.conf is not)<br>
<br>
Thanks for clarifying.<br>
Is there advantage to compiling it in-kernel? Or disadvantage?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Depends. If you build everything, then you get &quot;tied&quot; modules that are only for a specific kernel. If you run the released modules, then there can be a small performance hit that don&#39;t matter too much unless you are out of CPU.... the release modules withh work with a range of kernels.</div><div dir="auto"><br></div><div dir="auto">Warner</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfrTSTaKYjtXqqCrKnyw3j1QPPSkPaj0L3Y=JwHO%2BS-VWA>