Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jan 2013 00:09:00 +1100
From:      Lawrence Stewart <lstewart@freebsd.org>
To:        "Eggert, Lars" <lars@netapp.com>
Cc:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: static kernel with mod_cc?
Message-ID:  <50F554EC.6070303@freebsd.org>
In-Reply-To: <D4D47BCFFE5A004F95D707546AC0D7E91F62A96A@SACEXCMBX01-PRD.hq.netapp.com>

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

Hi Lars,

On 01/15/13 23:47, Eggert, Lars wrote:
> Hi,
> 
> mod_cc(4) says:
> 
> Algorithm modules can be compiled into the kernel or loaded as kernel
> modules using the kld(4) facility.
> 
> Maybe I'm dense, but I can't figure out how to statically compile
> mod_cc modules into the kernel? (I'm using a PAE kernel w/o
> modules.)
> 
> Hints appreciated.

You're not dense - the build glue to allow an algorithm to be specified
in a kernel config file doesn't exist. It probably should.

The hacky way to achieve what you want would be to edit
</path/to/src>/sys/conf/files and manually add a line like so below the
cc_newreno.c line:

netinet/cc/cc_<algo>.c          optional inet | inet6

That will compile the module into the kernel, assuming "options INET" or
"options INET6" is in your kernel config file.

Cheers,
Lawrence


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50F554EC.6070303>