Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch 0de8783 (lib/dpif-netdev: Integrate megaflow classifier.) broke exact match cache lookup, but it went undetected since there are no separate stats for EMC. This patch fixes the problem by changing the struct netdev_flow_key 'len' member to cover only the 'mf' member, not the whole netdev_flow_key, and ignoring the 'len' field in netdev_flow_key_equal. Comparison is still accurate, as the miniflow 'map' field encodes the length in the number of 1-bits, and the map is included in the comparison. Reported-by: Alex Wang <alexw@nicira.com> Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com> Acked-by: Daniele Di Proietto <ddiproietto@vmware.com>
- Loading branch information
Jarno Rajahalme
committed
Oct 18, 2014
1 parent
10173ce
commit caeb490
Showing
1 changed file
with
16 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters