nx-match: Enable senders of NXM fields to specify length.
authorJesse Gross <jesse@nicira.com>
Thu, 7 May 2015 01:04:11 +0000 (18:04 -0700)
committerJesse Gross <jesse@nicira.com>
Thu, 25 Jun 2015 18:08:57 +0000 (11:08 -0700)
commitdc3eb9539f17f3b9a2ea9221a86221196b5c002e
treebe5b9529eb6d4ceeeb9a8708228372561d49fa7e
parent11b8d04900417e722bb9cfad6021870bdee37fd6
nx-match: Enable senders of NXM fields to specify length.

Currently when an NXM field is encoded, the caller must specify
the length of the data being provided. However, this data is
always placed into a field of standard length. In order to
support variable length options, the length field must also
alter the size in the header. The previous implementation
already required callers to pass in the exact (fixed) size of
the field or it would not work properly, so there is no danger
that this will change the behavior for non-variable length
fields.

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