Hi, Ben,

Thank you for the clarification. Just one more question, are there any
documentations that I could refer to for datapath flow mask generation?
Thanks!

An Wang

On Tue, May 26, 2015 at 9:09 PM, Ben Pfaff <[email protected]> wrote:

> On Thu, May 21, 2015 at 01:26:01PM -0400, an wang wrote:
> > 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 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
> ),
> > 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
> ),
> > 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?
>
> OVS 2.3 doesn't configure any prefix fields by default, so you have to
> set the "prefixes" column in the OVSDB Flow_Table table.
>
> OVS 2.4 uses IPV4 source and destination fields as prefixes by default.
>
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to