On Nov 6, 2014, at 9:36 AM, Pravin Shelar <pshe...@nicira.com> wrote:

>> I think that all of the flows added to the tnl-ports classifier have
>> the same wildcard pattern.  I don't know why a classifier is the best
>> choice; wouldn't an hmap work?
>> 

The lookup should be RCU, so hmap would not work. cmap would though.

> Yes, I can use simple hash table. But with classifier, I can directly
> use classifier API which lookup ports using incoming packet flow and
> generate wildcards. So it is cleaner. Do you think is is more
> expensive to use classifier here compared to hmap or cmap?


The lookup should not be any more expensive than a hand rolled cmap,
so I think the benefit of using the existing lookup API is worth it.

  Jarno

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

Reply via email to