odp-util: Use FLOW_MAX_MPLS_LABELS when parsing MPLS ODP keys.
authorJarno Rajahalme <jarno@ovn.org>
Mon, 29 Feb 2016 19:13:28 +0000 (11:13 -0800)
committerJarno Rajahalme <jarno@ovn.org>
Mon, 29 Feb 2016 19:13:28 +0000 (11:13 -0800)
commitab83c8c571df1fde72f7b75375ecc389d9e82c3e
tree46a0783d76170b5a9872344304765e41b9f9b443
parent35666f1c4e490f1c3ba9788d314c28172a28d771
odp-util: Use FLOW_MAX_MPLS_LABELS when parsing MPLS ODP keys.

Even though the number of supported MPLS labels may vary between a
datapath and the OVS userspace, it is better to use the
FLOW_MAX_MPLS_LABELS than a hard-coded '3' as the maximum number of
labels to scan.

Requested-by: Ben Pfaff <blp@ovn.org>
Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
lib/odp-util.c