How to build a out-of-box network module with RSS

Rajesh Kumar rajfbsd at gmail.com
Sun Mar 22 13:20:36 UTC 2020


Ok. Thanks for your inputs Konstantin.

I will do some more tests to see how I can use that and will update the
thread if I could figure out.

On Sun, Mar 22, 2020 at 5:09 PM Konstantin Belousov <kib at freebsd.org> wrote:

> On Sun, Mar 22, 2020 at 02:05:02PM +0530, Rajesh Kumar wrote:
> > Hi Konstantin,
> >
> > > Set KERNBUILDDIR env (or make) variable to the full path of the
> > > build directory for your custom kernel.
> >
> > Thanks for your inputs. I tried setting the KERNBUILDDIR, but seems still
> > it's not taking the opt_rss.h properly. Not sure I am missing something.
> >
> > I built and installed the custom kernel from a directory
> "freebsd_12_kern"
> > with the sys/amd64/conf/GENERIC added with the PCBGROUP and RSS
> options.  I
> > see the following obj directory
> >
> > */usr/obj/root/freebsd_12_kern/amd64.amd64/sys/GENERIC* -> where
> opt_rss.h
> > file has RSS defined.
> >
> > After that, I tried to build my network module from another directory
> > "freebsd_12_dev" as below
> >
> > *freebsd_12_dev/sys/modules/netgbe # make KERNBUILDDIR=
> > /usr/obj/root/freebsd_12_kern/amd64.amd64/sys/GENERIC *
> >
> > which generates the following object module directory
> >
> > */usr/obj/root/freebsd_12_dev/amd64.amd64/sys/modules/netgbe* -> where
> > opt_rss.h file has RSS NOT defined.
> opt_rss.h must not be generated in the module build directory.  The point
> of KERNBUILDDIR is that it is taken from the kernel config dir.
>
> >
> > Am I missing something? or doing something wrong?
> No idea.
>
> >
> > Thanks,
> > Rajesh
> >
> > On Sun, Mar 22, 2020 at 10:50 AM Rajesh Kumar <rajfbsd at gmail.com> wrote:
> >
> > > Hi,
> > >
> > > Any thoughts about how to build a out-of-box network module with RSS
> > > enabled?
> > >
> > > Thanks,
> > > Rajesh.
> > >
> > > On Fri, Mar 20, 2020 at 11:34 AM Rajesh Kumar <rajfbsd at gmail.com>
> wrote:
> > >
> > >> Hi,
> > >>
> > >> I am writing a network driver. I am trying to test with RSS feature. I
> > >> see the default kernel config doesn't have RSS included.  So, I built
> a
> > >> custom kernel with the following options set and installed the kernel
> with
> > >> a different name
> > >>
> > >> options PCBGROUP
> > >> options RSS
> > >>
> > >> After booting to the custom kernel, I am trying to build my network
> > >> module with opt_rss.h in my makefile.  But I don't see  "#define RSS
> 1" in
> > >> opt_rss.h in my module object directory.  But I see it defined the
> custom
> > >> kernel OBJ directory.
> > >>
> > >> So, should I build my network modules as inbuilt module to have it
> work
> > >> with RSS? Or anyway I can build my module out-of-box with RSS?
> > >>
> > >> Please let me know if any details needed.
> > >>
> > >> Thanks,
> > >> Rajesh.
> > >>
> > >
> > _______________________________________________
> > freebsd-drivers at freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-drivers
> > To unsubscribe, send any mail to "
> freebsd-drivers-unsubscribe at freebsd.org"
>


More information about the freebsd-drivers mailing list