Skip to content

Commit

Permalink
Fixed conditions for ENCAP_MAPPERS and DECAP_MAPPERS (opencomputeproj…
Browse files Browse the repository at this point in the history
…ect#735)

* Fixed conditions for SAI_TUNNEL_ATTR_ENCAP_MAPPERS and SAI_TUNNEL_ATTR_DECAP_MAPPERS tunnel attributes
to attach to tunnel different types of mappers

Signed-off-by: Iurii Gordynskyi <Iurii.Gordynskyi@cavium.com>

* Removed the mandatory clause and gave a default of empty list
in SAI_TUNNEL_ATTR_ENCAP_MAPPERS and SAI_TUNNEL_ATTR_DECAP_MAPPERS definitions

Signed-off-by: Iurii Gordynskyi <Iurii.Gordynskyi@cavium.com>
  • Loading branch information
Iurii authored and Iurii Gordynskyi committed Dec 5, 2017
1 parent 0d945a0 commit 1758ea6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions inc/saitunnel.h
Original file line number Diff line number Diff line change
Expand Up @@ -548,9 +548,9 @@ typedef enum _sai_tunnel_attr_t
* @brief Tunnel encap mappers
*
* @type sai_object_list_t
* @flags MANDATORY_ON_CREATE | CREATE_ONLY
* @flags CREATE_ONLY
* @objects SAI_OBJECT_TYPE_TUNNEL_MAP
* @condition SAI_TUNNEL_ATTR_ENCAP_ECN_MODE == SAI_TUNNEL_ENCAP_ECN_MODE_USER_DEFINED
* @default empty
*/
SAI_TUNNEL_ATTR_ENCAP_MAPPERS,

Expand All @@ -569,9 +569,9 @@ typedef enum _sai_tunnel_attr_t
* @brief Tunnel decap mappers
*
* @type sai_object_list_t
* @flags MANDATORY_ON_CREATE | CREATE_ONLY
* @flags CREATE_ONLY
* @objects SAI_OBJECT_TYPE_TUNNEL_MAP
* @condition SAI_TUNNEL_ATTR_DECAP_ECN_MODE == SAI_TUNNEL_DECAP_ECN_MODE_USER_DEFINED
* @default empty
*/
SAI_TUNNEL_ATTR_DECAP_MAPPERS,

Expand Down

0 comments on commit 1758ea6

Please sign in to comment.