[ovs-discuss] Where is OpenFlow action "mod_dl_dst" implemented?

Ben Pfaff blp at nicira.com
Mon Nov 12 15:14:12 UTC 2012


OpenFlow is implemented in userspace.  Packet forwarding is implemented
in the kernel.

On Mon, Nov 12, 2012 at 08:18:58AM +0100, LIU Binghan wrote:
> Hi Ben,
> 
> The packet with Mac address 00:00:00:00:00:00 is the one that I
> generate from VMs. It is just like normal packets but with special MAC
> address. Actually, I just want to know that the OpenFlow protocol is
> implemented in kernel space or user space? Sorry for misunderstanding.
> 
> BRs,
> Binghan
> 
> On 12 Nov 2012, at 04:04, Ben Pfaff wrote:
> 
> > On Sun, Nov 11, 2012 at 06:53:22PM +0100, LIU Binghan wrote:
> >> First , I just use the simple rule "#ovs-ofctl add-flow br0 "priority=65535 in_port=1, output:2". The performance is good.
> > 
> > OK.
> > 
> >> However when I specify the action below,
> >> 
> >> #ovs-ofctl add-flow br0 "priority=65535 dl_type=0x0800 dl_dst=00:00:00:00:00:00 nw_dst=192.168.1.5 actions= mod_dl_dst:08:00:27:72:ed:0a,output:2"
> >> 
> >> The throughput is only 10% as the previous one. 
> > 
> > That doesn't make any sense.
> > 
> >> So, I want to know where is  this mod_dl_dst function is implentmented. 
> > 
> > I don't think that's a good place to start, although it shouldn't be
> > hard for you to find it yourself with some "grep"s.
> > 
> > I think that, instead, you should tell us more details about what you
> > are doing.  For example, why does your flow have destination MAC address
> > 00:00:00:00:00:00?
> 



More information about the discuss mailing list