Make it more obvious that OVS_KEY_ATTR_MPLS may be an array
authorSimon Horman <horms@verge.net.au>
Thu, 2 May 2013 01:49:49 +0000 (10:49 +0900)
committerJesse Gross <jesse@nicira.com>
Thu, 2 May 2013 02:34:05 +0000 (19:34 -0700)
commit20131cefeb4c033e1c3cfaea03e06c6b86a6d98d
tree02406216066aa28f23585ebe5ff9826a3139005d
parentb82b19e93801a26b155f0191c70aba2fbbbdad42
Make it more obvious that OVS_KEY_ATTR_MPLS may be an array

Note that OVS_KEY_ATTR_MPLS may be an array of ovs_key_mpls
and that the acceptable length may be restricted by the implementation.

Currently the user-space datapath and proposed kernel datapath
implementation restrict the length to a single element.

Also update the mpls_top_lse name of the element of struct ovs_key_mpls,
as it is an array of LSEs and thus not necessarily just the top LSE.

As requested by Jesse Gross

Cc: Jesse Gross <jesse@nicira.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Jesse Gross <jesse@nicira.com>
include/linux/openvswitch.h
lib/odp-util.c