[ovs-discuss] Finding a rule

Ben Pfaff blp at ovn.org
Thu Aug 11 16:19:59 UTC 2016


You're doing something wrong.  The classifier finds a matching rule.
There's no need to "check" anything afterward.

The classifier doesn't have any provision for finding a "different"
rule.

On Thu, Aug 11, 2016 at 05:51:40PM +0200, Amrane Ait Zeouay wrote:
> No, I'm working with classifier to find the rule. So when the classifier
> found the rule I need to check that rule. But the problem is when i want
> the classifier to give me another rule different from the highest rule that
> matches the flow.
> Thank you.
> On 11 Aug 2016 5:45 pm, "Ben Pfaff" <blp at ovn.org> wrote:
> 
> > On Thu, Aug 11, 2016 at 01:14:38PM +0200, Amrane Ait Zeouay wrote:
> > > I'm working on Openvswitch version 2.5.0 for adding new fields, And I
> > found
> > > a problem with my implemntation in the function "find_match_wc()" file
> > > lib/classifier.c, I want to know when the condition "OVS_UNLIKELY(!wc)"
> > is
> > > used, and this condition too "!cmap_node_next(inode)" and the last one
> > for
> > > looking for a rule using find_match(), because one time it was going from
> > > "OVS_UNLIKELY(!wc)" and another time it went from
> > "!cmap_node_next(inode)"
> > > and this time is skipping everything and going for that "finding_match()"
> >
> > You don't need to modify the classifier code to add a new field.
> >



More information about the discuss mailing list