This is kind of like asking "in what scenarios may one use a variable" in a programming language.
You can use registers to store values that later tables match. On Fri, Sep 09, 2016 at 10:09:40PM +0530, madhu wrote: > Hi Ben, > > Thanks for the reply. > > To be precise we are trying to implement Service Function Chaining. > > The flows included in the below mail are in the compute node openvswitch > controlled by opendaylight controller. > > If my understanding is correct load:0x2->NXM_NX_REG0[] stores hexadecimal > value 2 in the NXM register. > > What I am not able to understand is in what scenarios one may use NXM > register to store values. > > Any explanation about the use of NXM registers will be helpfull. > > Thanks, > Madhu Chakravarthy. > > On 09-09-2016 21:20, Ben Pfaff wrote: > >On Fri, Sep 09, 2016 at 05:54:41PM +0530, madhu wrote: > >>I am trying to understand the open flow rules written to the openvswitch. > >> > >>I am using openvswitch with openflow version 1.3. In that I see flow rules > >>like below > >> > >>cookie=0x0, duration=133278.833s, table=0, n_packets=37283, > >>n_bytes=15219696, tun_id=0x5a,in_port=1 > >>actions=load:0x2->NXM_NX_REG0[],goto_table:20 > >>cookie=0x0, duration=133156.937s, table=0, n_packets=47834, n_bytes=4333742, > >>tun_id=0x65,in_port=1 actions=load:0x2->NXM_NX_REG0[],goto_table:20 > >>cookie=0x0, duration=133285.759s, table=0, n_packets=1673, n_bytes=647400, > >>tun_id=0x61,in_port=1 actions=load:0x2->NXM_NX_REG0[],goto_table:20 > >> > >>What is the use of load:0x2->NXM_NX_REG0[] and where to use this action. > >ovs-ofctl(8) explains OpenFlow actions. > > > >It's hard to guess what this is for without context. What added the > >actions to the flow table? > > > _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss