classifier: Check all rules of equal priority when inserting.
authorJesse Gross <jesse@nicira.com>
Fri, 19 Mar 2010 16:08:16 +0000 (12:08 -0400)
committerJesse Gross <jesse@nicira.com>
Fri, 19 Mar 2010 16:34:53 +0000 (12:34 -0400)
commitca9ca7537065f2d1b627ed9111e44c2c227258a7
treeb78271470f539bcfac9282bd0c914437f6976ced
parentd7676fc647aa195912bfa3c92acffda371d1e06d
classifier: Check all rules of equal priority when inserting.

When adding a new classifier rule we check if there is a rule
of the same priority first and overwrite it before inserting a
new rule.  Previously we would stop looking if we found one rule
in the correct bucket with the same priority, even if it didn't
match.  This keeps going until we either find a matching rule or
we run out of equal priority rules.

Reported-by: Tetsuo NAKAGAWA <nakagawa@mxc.nes.nec.co.jp>
lib/classifier.c