]> git.proxmox.com Git - ovs.git/commit
nx-match: Support variable length header lookup.
authorJesse Gross <jesse@nicira.com>
Thu, 7 May 2015 00:59:24 +0000 (17:59 -0700)
committerJesse Gross <jesse@nicira.com>
Thu, 25 Jun 2015 18:08:57 +0000 (11:08 -0700)
commit899bb63d41d0de38749304d51ea259ec529271b1
treeecc9afea9601a8d6d90f2384ea9b0cd6c6e88a48
parentf047e8468984c35177fb0932116f302b29221550
nx-match: Support variable length header lookup.

Currently we treat the entire NXM/OXM header, including length,
as an ID to define a field. However, this does not allow for
multiple lengths of a particular field.

If a field has been marked as variable, we should ignore the length
when looking up the field and only use the class and field. We
continue to use the length for non-variable fields to ensure that
we don't accept something that can never match.

Signed-off-by: Jesse Gross <jesse@nicira.com>
lib/nx-match.c