[ovs-discuss] help - Datapath megaflow issues

awang10 at masonlive.gmu.edu awang10 at masonlive.gmu.edu
Mon May 25 17:34:41 UTC 2015


?
Hi, All,

I'm trying to figure out how datapath mega flows are generated. So I did a very simple experiment on openvswitch 2.3.0. I inserted a rule ovs-ofctl add-flow br0 in_port=2,ip,nw_dst=192.168.2.2/16,actions=output:1<http://192.168.2.2/16,actions=output:1> to the userspace flow table. And I used ovs-appctl dpif/dump-flows br0 to check the flows in datapath flow table and this is what I observed.

skb_priority(0),recirc_id(0),in_port(3),eth(src=00:c0:95:e0:0e:ad,dst=00:00:39:d3:34:3b),eth_type(0x0800),ipv4(src=192.168.2.1/255.255.255.255,dst=192.168.2.2/255.255.255.255,proto=6/0xff,tos=0x10/0,ttl=62/0,frag=no/0xff<http://192.168.2.1/255.255.255.255,dst=192.168.2.2/255.255.255.255,proto=6/0xff,tos=0x10/0,ttl=62/0,frag=no/0xff>), packets:26670724, bytes:1762573766, used:0.000s, flags:SR., actions:2
skb_priority(0),recirc_id(0),in_port(3),eth(src=00:c0:95:e0:0e:ad,dst=00:50:56:49:01:29),eth_type(0x0800),ipv4(src=192.168.2.1/255.255.255.255,dst=192.168.2.2/255.255.255.255,proto=6/0xff,tos=0x10/0,ttl=63/0,frag=no/0xff<http://192.168.2.1/255.255.255.255,dst=192.168.2.2/255.255.255.255,proto=6/0xff,tos=0x10/0,ttl=63/0,frag=no/0xff>), packets:9469993, bytes:586123740, used:0.000s, flags:SF., actions:2

Somehow it seems that the ip dst field is not wildcarded at all. And I've repeated the experiment for several times using different prefix and I obtained the same result. Could anyone please explain why this happened and how wildcarded flows are supported in the datapath?

p.s. I configured the dpdk openvswitch, not sure whether that's why the wildcard doesn't work in datapath.

I'd really appreciate your help!
?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20150525/0d88e519/attachment-0002.html>


More information about the discuss mailing list