dpif-netdev: Store miniflow length in exact match cache
authorDaniele Di Proietto <ddiproietto@vmware.com>
Sat, 6 Sep 2014 08:10:43 +0000 (08:10 +0000)
committerJarno Rajahalme <jrajahalme@nicira.com>
Wed, 17 Sep 2014 22:15:09 +0000 (15:15 -0700)
commit0023a1cb45400262820cc69c9dbd15fc8a95eb48
tree43b9ccf8e10ba5b2f9ddf216d2ab70d66fec66ca
parent79df317f0b3e31212d62d1af7b0dcbb2b908075d
dpif-netdev: Store miniflow length in exact match cache

This optimization is done to avoid calling count_1bits(), which, if
the popcnt istruction is not available might is slow. popcnt may not
be available because:

- We are running on old hardware
- (more likely) We're using a generic build (i.e. packaged OVS from a
  distro), not tuned for the specific CPU

Signed-off-by: Daniele Di Proietto <ddiproietto@vmware.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
lib/dpif-netdev.c