The present invention relates to a method for managing a plurality of
multi-field classification rules. The method includes providing a first
table that includes a plurality of entries corresponding to a plurality
of rules relating to an ingress context and providing a second table that
includes a plurality of entries corresponding to a plurality of rules
relating to an egress context. The method also includes utilizing the
first table and the second table to identify any rules relating to the
ingress context and any rules relating to the egress context that match a
search key.