It doesn't look like you're setting the dl_type to 0x0800 in your flow. If you don't set that, OVS will normalize the flow to remove L3 and L4 information, since it doesn't know what you intend.
--Justin On Aug 11, 2012, at 10:55 AM, cloudbengo <cloudbe...@gmail.com> wrote: > Hi, > > From "ovs-ofctl snoop" output below, seems that when a FLOW_MOD arrives, OVS > drops ip match field when adding a new flow, only L2 info is kept. I use > "ovs-ofctl dump-flows" to list all flows, all of them don't include L3 info. > I use wireshark to observe at controller side, and see that FLOW_MOD messages > controller sends out, include ip match field. Why those info are dropped? > Thanks very much. > $ sudo ovs-ofctl snoop br0 > OFPT_PACKET_IN (xid=0x0): total_len=66 in_port=7 (via no_match) data_len=66 > buffer=0x000005b5 > priority:0,tunnel:0,in_port:0000,tci(0) > mac(52:54:00:a3:cf:f1->00:08:e3:ff:fd:90) type:0800 proto:6 tos:0 ttl:64 > ip(10.111.10.228->91.189.89.22) port(56934->80) tcp_csum:5a6 > 2012-08-11T17:43:06Z|00004|ofp_util|INFO|normalization changed ofp_match, > details: > 2012-08-11T17:43:06Z|00005|ofp_util|INFO| pre: > priority=0,in_port=7,vlan_tci=0x0000,dl_src=52:54:00:a3:cf:f1,dl_dst=00:08:e3:ff:fd:90,nw_src=10.111.10.228,nw_dst=91.189.89.22 > 2012-08-11T17:43:06Z|00006|ofp_util|INFO|post: > priority=0,in_port=7,vlan_tci=0x0000,dl_src=52:54:00:a3:cf:f1,dl_dst=00:08:e3:ff:fd:90 > OFPT_FLOW_MOD (xid=0x0): ADD > priority=0,in_port=7,vlan_tci=0x0000,dl_src=52:54:00:a3:cf:f1,dl_dst=00:08:e3:ff:fd:90 > cookie:0x20000000000000 idle:5 actions=output:1 > > Best, > Robin > _______________________________________________ > discuss mailing list > discuss@openvswitch.org > http://openvswitch.org/mailman/listinfo/discuss _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss