Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Sep 2018 14:11:23 -0700
From:      John-Mark Gurney <jmg@funkthat.com>
To:        Vincenzo Maffione <v.maffione@gmail.com>
Cc:        "freebsd-net@freebsd.org" <net@freebsd.org>, Luigi Rizzo <rizzo@iet.unipi.it>
Subject:   Re: vale and netmap module questions
Message-ID:  <20180901211123.GZ45503@funkthat.com>
In-Reply-To: <CA%2B_eA9gH_uzxV_YLBH1XdM-ygPUxXzD_W9_b45jTmeY-t0bQKg@mail.gmail.com>
References:  <20180901014953.GV45503@funkthat.com> <CA%2B_eA9gH_uzxV_YLBH1XdM-ygPUxXzD_W9_b45jTmeY-t0bQKg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Vincenzo Maffione wrote this message on Sat, Sep 01, 2018 at 22:25 +0200:
> Il giorno sab 1 set 2018 alle ore 03:50 John-Mark Gurney <jmg@funkthat.com>
> ha scritto:
> 
> > First, does vale work for anyone?  At least one of the documented
> > commands in vale(4) does not work.
> >
> > After manually building the netmap module and loading it:
> > # tcpdump -ni vale-a:1
> > 313.748851 nm_open [947] invalid bridge name vale-a:1
> > tcpdump: netmap open: cannot access vale-a:1: Invalid argument
> 
> That name is invalid. See netmap(4).

Are there plans to update the documentation then?  It seems like
vale(4) should be a more authoratative reference for vale's naming
than netmap(4)...

> > If I run tcpdump with a more correct looking name of vale1:a, I get a
> > null deref panic in ifunit_ref.  Full trace is at the end.
> 
> Yes, this is a known bug, already posted to this mailing list. Don't build
> netmap as a module, but link it in the kernel image and it will work.
> (Add "dev netmap" to the kernel config).
> 
> > Second, is there a good reason why the netmap module is still
> > disconnected from being built as a module?  I guess not working
> > would be one, but I figure the above might be an aarch64 specific
> > problem, and not a general issue.
> 
> On x86_64 netmap is not built as a module, so everything works fine. I
> don't see any reason why it should be a module in aarch64.

Well, sys/modules/netmap exists... If it isn't planned on ever being
made to work, it should be removed so people don't get confused, or
at least marked broken so it doesn't get built...

I built it manually because it was quicker than recompiling an entire
kernel and rebooting...

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."



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