Thanks Jesse. Priorities might be same but match criteria is different. Hence I thought it would work. Anyways I will try with dl_vlan match.
Thanks Ravi -----Original Message----- From: Jesse Gross [mailto:je...@nicira.com] Sent: Monday, February 13, 2012 2:05 PM To: Kerur, Ravi Cc: dev@openvswitch.org Subject: Re: [ovs-dev] Q on sending packets from the system running ovs On Mon, Feb 13, 2012 at 1:43 PM, Jesse Gross <je...@nicira.com> wrote: > On Mon, Feb 13, 2012 at 1:09 PM, <ravi.ke...@telekom.com> wrote: >> Hello, >> >> >> >> I am trying to send simple vlan packets via a C program and wanted a vlan >> specific action executed before sending out on wire. I have configured >> following flows in ovs >> >> >> >> root@rkerur-ThinkPad-T400:~/mpls_vlan_0209/openvswitch# ovs-ofctl dump-flows >> br0 >> >> NXST_FLOW reply (xid=0x4): >> >> cookie=0x0, duration=4685.567s, table=0, n_packets=110, n_bytes=5808, >> >> idle_timeout=50000,idle_age=27,priority=65535,arp actions=NORMAL >> >> >> >> cookie=0x0, duration=4685.566s, table=0, n_packets=0, n_bytes=0, >> >> idle_timeout=50000,idle_age=4685,priority=65535,dl_type=0x8100 >> >> actions=strip_vlan,output:1 >> >> >> >> I basically assuming generated vlan packets from the program would match the >> second flow entry and strip vlan before sending it. From the stats >> (n_packets=0) looks like it's not matched. What's coming out from tcpdump >> capture is > > Both flows match the packet and have the same priority, so OpenFlow > says that the behavior is undefined. In this case, presumably it's > matching the first flow. Justin also pointed out that OpenFlow also specifies that vlan packets should be matched using the dl_vlan field. Since vlan tags are handled separately, dl_type=0x8100 would actually match QinQ packets not singly tagged ones. _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev