netmap/pkt-gen error

Luigi Rizzo rizzo at iet.unipi.it
Tue Aug 28 14:23:26 UTC 2012


On Tue, Aug 28, 2012 at 06:56:07AM -0700, Khan wrote:
> hi again,
> i tired with v9.1RC1 but i still get the same error.
> 
> does Netmap support Broadcom interfaces??
> the supported interfaces on man page of netmap
> are em, ixgbe,re (only intel cards)..

correct, netmap at the moment only supports em, ixgbe, igb, and re
(most of them are intel, but re is RealTek). On linux the forcedeth
(nvidia) is also supported.

> Is there some work going on regarding other nic's.

i think the best option is if you add support for that yourself.
It is relatively easy, but you need a bit of familiarity with
the specific hardware (this is the reason i did all the above
drivers -- all the intels have very similar programming model,
and i am familiar with the realtek), and of course some motivation.

> How can i still use pkt-gen to send/receive pkts.?
> any idea on how to run on virtualbox machine that
> might have an em driver??

it does work, both on qemu and virtualbox. Chances are that you'll
be limited by the backend driver (the one on the host OS).

cheers
luigi
> /BR
> Ahmed
> Masters Student @
> Mid Sweden University
> 
> 
> ________________________________
>  From: Kurt Jaeger <lists at c0mplx.org>
> To: Khan <afridi_ahmad29 at yahoo.com> 
> Cc: freebsd-current at freebsd.org 
> Sent: Tuesday, August 28, 2012 12:36 PM
> Subject: Re: netmap/pkt-gen error
>  
> Hi!
> 
> > i am running FreeBSD 9.0R with netmap already in it.
> > i compiled the pkt-gen.c with gcc in tools/tools/netmap.
> > after i do ./pkt-gen -i eth0 -f tx -n 500111222 -l 60 -w 5
> > 
> > i get an error:
> > -Unable to open /dev/netmap
> > -Unable to register bge0 (renamed to eth0).
> [...]
> > any idea on the errors/ help.
> 
> man netmap (on 9.1-RC1 or 8.3) says:
> 
> SUPPORTED INTERFACES
> ? ?  netmap supports the following interfaces: em(4), ixgbe(4), re(4),
> 
> so it seems the interface card bge is not supported by netmap and
> you should probably try 9.1-RC1 instead of 9.0.
> 
> On 9.0 I did not find the netmap man page.
> 
> -- 
> pi at opsec.eu? ? ? ? ? ? +49 171 3101372? ? ? ? ? ? ? ? ? ? ? ?  8 years to go !
> _______________________________________________
> freebsd-current at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"


More information about the freebsd-current mailing list