[ovs-discuss] load:OXM_OF_ETH_DST[25..32]->NXM_NX_REG0[0..7] problem

Ali Volkan Atli Volkan.Atli at argela.com.tr
Mon May 15 07:30:08 UTC 2017


Thank you Ben

Actually, I resolved the suffix issue as below, briefly I loaded the suffix (i.e. nw_dst=0.0.0.2/0.0.0.255) into NXM_NX_REG0[0..7], then match reg0 in table1. I do not know if it's a better method, but it works. First, I had tried to load the suffix directly into reg0 (nw_dst=0.0.0.2/0.0.0.255->NXM_NX_REG0[0..7]) but I could not achieve.

...
var=$(printf 'table=0,priority=0,dl_type=0x0800,nw_dst=0.0.0.2/0.0.0.255,actions=load:2->NXM_NX_REG0[0..7],goto_table=1')
sudo ovs-ofctl add-flow -OOpenFlow13 E$edge $var
var=$(printf 'table=0,priority=0,dl_type=0x0800,nw_dst=0.0.0.3/0.0.0.255,actions=load:3->NXM_NX_REG0[0..7],goto_table=1')
sudo ovs-ofctl add-flow -OOpenFlow13 E$edge $var

var=$(printf 'table=1,reg0=2,actions=output=1')
sudo ovs-ofctl add-flow -OOpenFlow13 E$edge $var
var=$(printf 'table=1,reg0=3,actions=output=2')
sudo ovs-ofctl add-flow -OOpenFlow13 E$edge $var
...

- Volkan
________________________________________
From: Ben Pfaff [blp at ovn.org]
Sent: Saturday, May 13, 2017 8:56 AM
To: Ali Volkan Atli
Cc: discuss at openvswitch.org
Subject: Re: [ovs-discuss] load:OXM_OF_ETH_DST[25..32]->NXM_NX_REG0[0..7] problem

On Fri, May 12, 2017 at 07:12:32PM +0000, Ali Volkan Atli wrote:
> table=0,priority=0,dl_type=0x0800,actions=load:OXM_OF_ETH_DST[25..32]->NXM_NX_REG0[0..7],goto_table=1

This should be "move", not "load".


More information about the discuss mailing list