Your question deserves a more detailed answer, but here's an easy part.

On Thu, Oct 10, 2013 at 02:54:19AM +0200, Luigi Rizzo wrote:
> Perhaps a simple example could help me -- e.g. say you have these
> four flow entries, how many hash tables are created with megaflows ?
> 
>         (1) nw_src=1.2.3.0/24 ...
>         (2) nw_src=1.2.4.0/24 ...
>         (3) nw_dst=5.6.7.0/24 ...
>         (4) nw_src=1.2.5.0/24 ...

Two, one for flows 1, 2, and 4 (since they match on the same bits of the
same field), and one for flow 3 (which matches on a different field
entirely).

The megaflows kernel design is similar to the userspace classifier.  The
main difference is that overlapping flows aren't allowed, so that any
match that is found can be accepted.
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to