Hi Jesse,

I tried setting different priority still same results.

Following flows entries are programmed

root@rkerur-ThinkPad-T400:~# ovs-ofctl dump-flows br0
NXST_FLOW reply (xid=0x4):
 cookie=0x0, duration=27.143s, table=0, n_packets=0, n_bytes=0,
idle_timeout=50000,idle_age=27,priority=100,dl_vlan=1, 
actions=strip_vlan,output:1
 cookie=0x0, duration=27.144s, table=0, n_packets=0, n_bytes=0,
idle_timeout=50000,idle_age=27,priority=10,arp actions=NORMAL


After couple of vlan packets sent, no flow matched.
 
root@ravi-ThinkPad-T400:~# ovs-ofctl dump-flows br0
NXST_FLOW reply (xid=0x4):
 cookie=0x0, duration=55.596s, table=0, n_packets=0, n_bytes=0,
idle_timeout=50000,idle_age=55,priority=100,dl_vlan=1,
actions=strip_vlan,output:1
 cookie=0x0, duration=55.597s, table=0, n_packets=0, n_bytes=0,
idle_timeout=50000,idle_age=55,priority=10,arp actions=NORMAL
root@ravi-ThinkPad-T400:~#

Assuming flows with same priority behavior is undefined, it is still unclear to 
me why a vlan/ipv4 packet would match dl_type=0x0806 in the previous config?

Tcpdump show packets are sent out so looks like default action is to send out 
the packet. 

08:26:12.372765 00:27:13:67:b9:9b > 00:1f:9e:2a:7f:dd, ethertype
802.1Q (0x8100), length 512: vlan 1, p 0, ethertype IPv4, (tos 0x0,
ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 494)
   10.117.46.200.3840 > 10.117.46.193.3840: [no cksum] UDP, length 466
       0x0000:  0001 0800 4500 01ee 0000 0000 4011 0691  ....E.......@...
       0x0010:  0a75 2ec4 0a75 2ec1 0f00 0f00 01da 0000  .u...u..........
       0x0020:  4345 4645 4544 4641 4345 4645 4544 4641  CEFEEDFACEFEEDFA
       0x0030:  4345 4645 4544 4641 4345 4645 4544 4641  CEFEEDFACEFEEDFA
       0x0040:  4345 4645 4544 4641 4345 4645 4544 4641  CEFEEDFACEFEEDFA
...

I tried programming more exact match with

oot@ravi-ThinkPad-T400:~# ovs-ofctl add-flow br0
priority=100,idle_timeout=50000,dl_vlan=1,nw_proto=1,nw_src=10.117.46.200/32,nw_dst=10.117.46.193/32,actions=strip_vlan,1


2012-02-14T16:30:59Z|00001|ofp_util|INFO|normalization changed
ofp_match, details:
2012-02-14T16:30:59Z|00002|ofp_util|INFO| pre:
priority=100,dl_vlan=1,nw_src=10.117.46.200,nw_dst=10.117.46.193,nw_proto=1
2012-02-14T16:30:59Z|00003|ofp_util|INFO|post: priority=100,dl_vlan=1
root@ravi-ThinkPad-T400:~#
root@ravi-ThinkPad-T400:~#

After sending packets still nothing.

root@ravi-ThinkPad-T400:~# ovs-ofctl dump-flows br0
NXST_FLOW reply (xid=0x4):
 cookie=0x0, duration=8.379s, table=0, n_packets=0, n_bytes=0,
idle_timeout=50000,idle_age=8,priority=100,dl_vlan=1
actions=strip_vlan,output:1
 cookie=0x0, duration=14.668s, table=0, n_packets=0, n_bytes=0,
idle_timeout=50000,idle_age=14,priority=10,arp actions=NORMAL

Is it the right way to send vlan packets and expect vlan actions to take 
effect? Inputs appreciated.

Thanks
Ravi
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to