Why are you moving the data to match on it?  Just match on it in nw_dst
directly.

On Mon, May 15, 2017 at 07:30:08AM +0000, Ali Volkan Atli wrote:
> 
> 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 [[email protected]]
> Sent: Saturday, May 13, 2017 8:56 AM
> To: Ali Volkan Atli
> Cc: [email protected]
> 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".
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to