Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jul 2014 10:04:00 +0800
From:      upyzl <zj262144@gmail.com>
To:        freebsd-net@freebsd.org
Subject:   netmap: how to manage SW & NIC ring at same em0?
Message-ID:  <CAMijcFFSLs__=a-KWgCrZ1Li5w7XWex=exrod%2Bc9ZBD=z=k1uA@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi all, I'm a newbie on netmap development using FreeBSD 10 release
x64("device netmap" added and recompiled)

I'm study on develop openflow-based datapath(software switch
function/module) by netmap-bridge

my understanding:
./bridge -i em0 -i em0   ---   would be using SW ring for em0, and if
there's a packet send to em0, it should forward to host stack;
./bridge -i em0 -i em1   ---   normal bridge using netmap framework (NIC
ring)
(above in /usr/src/tools/tools/netmap)

but in openflow, there's an required action "Forward: local", when a packet
matched(I implemented matching flow by modified bridge.c->process_rings()
), the packeted should send to host stack, as SW ring does

it is a possible scene:
a ICMP packet arrived in em0, forward to em1;
a TCP packet arrived in em0, forward to host stack;

I want to know whether is a method to implement it?
or could give me any advice...
or in fact I'm wrong in understanding?

Thanks in advance



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMijcFFSLs__=a-KWgCrZ1Li5w7XWex=exrod%2Bc9ZBD=z=k1uA>