ether_vlanencap

2012-08-13 Thread Venkat Duvvuru
Hi, I'm trying to insert vlan tag into the packet using "ether_vlanencap" but the packet is getting corrupted in the mbuf and m_len is also showing a wrong length. Am I doing something wrong here? Can I directly pass mbuf pointer and vlan tag to this api for inserting the vlan tag? /Venkat ___

Re: ixgbe rx & tx locks

2012-08-13 Thread Jack Vogel
After looking at the code again I think this is just what's happening, mq_start will schedule the task when it can't get the lock (due to the interrupt already holding it presumeably), so you get the tasklet code in contention with the interrupt. Anyone with a clever notion of how to do things bet

Re: ixgbe rx & tx locks

2012-08-13 Thread Jack Vogel
Hmmm, this is odd, because the interrupt vector is not being re-enabled unless you are not scheduling the task, and when you are the interrupt isn't enabled til the end Something funny going on. You could get contention due to mq_start however, you sure about where its coming from? Jack On

ixgbe rx & tx locks

2012-08-13 Thread Vijay Singh
Folks, I've been looking into lock contention on the ixgbe rx & tx locks. I have collected this data: debug.lock.prof.stats: max wait_max total wait_total countavg wait_avg cnt_hold cnt_lock name 263 304 1329357 858873 322010 4 2 0 45210

Re: ipfw meets netmap (6.5 Mpps in userspace)

2012-08-13 Thread Luigi Rizzo
On Mon, Aug 13, 2012 at 03:54:41PM +0300, ?zkan KIRIK wrote: > does igb driver supported by netmap ? if yes, how multiqueue support works? yes igb is supported, and multiqueue is supported (ipfw-user just reads from all queues). Note that igb is a 1Gbit/card peaking at 1.488 Mpps, which is much sl

Re: ipfw meets netmap (6.5 Mpps in userspace)

2012-08-13 Thread Özkan KIRIK
does igb driver supported by netmap ? if yes, how multiqueue support works? On Mon, Aug 13, 2012 at 4:08 PM, Luigi Rizzo wrote: > On Mon, Aug 13, 2012 at 02:42:43PM +0200, Olivier Cochard-Labb? wrote: >> On Mon, Aug 13, 2012 at 1:17 PM, Luigi Rizzo wrote: >> > I just finished a netmap-enabled ve

Re: ipfw meets netmap (6.5 Mpps in userspace)

2012-08-13 Thread Luigi Rizzo
On Mon, Aug 13, 2012 at 02:42:43PM +0200, Olivier Cochard-Labb? wrote: > On Mon, Aug 13, 2012 at 1:17 PM, Luigi Rizzo wrote: > > I just finished a netmap-enabled version of ipfw/dummynet, which > > runs in userspace and is able to process over 6 million packets per > > second (Mpps) with simple ru

Re: ipfw meets netmap (6.5 Mpps in userspace)

2012-08-13 Thread Olivier Cochard-Labbé
On Mon, Aug 13, 2012 at 1:17 PM, Luigi Rizzo wrote: > I just finished a netmap-enabled version of ipfw/dummynet, which > runs in userspace and is able to process over 6 million packets per > second (Mpps) with simple rulesets, and over 2.2 Mpps through > dummynet pipes (tested on an i7-3400 connec

Current problem reports assigned to freebsd-net@FreeBSD.org

2012-08-13 Thread FreeBSD bugmaster
Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker

ipfw meets netmap (6.5 Mpps in userspace)

2012-08-13 Thread Luigi Rizzo
I just finished a netmap-enabled version of ipfw/dummynet, which runs in userspace and is able to process over 6 million packets per second (Mpps) with simple rulesets, and over 2.2 Mpps through dummynet pipes (tested on an i7-3400 connected to VALE ports; VALE is a software switch part of netmap).