-
Notifications
You must be signed in to change notification settings - Fork 475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed conditions for ENCAP_MAPPERS and DECAP_MAPPERS #735
Fixed conditions for ENCAP_MAPPERS and DECAP_MAPPERS #735
Conversation
…R_DECAP_MAPPERS tunnel attributes to attach to tunnel different types of mappers Signed-off-by: Iurii Gordynskyi <Iurii.Gordynskyi@cavium.com>
In current conditions for tunnel encap and decap mappers only SAI_TUNNEL_MAP_TYPE_OECN_TO_UECN and SAI_TUNNEL_MAP_TYPE_UECN_OECN_TO_OECN mappers can be attached to tunnel. |
I approved only for code change, but FYI, if you remove those conditions, then those 2 attributes will be mandatory every time tunnel will be created |
i am not sure we want to make these attributes always mandatory. perhaps then we should remove the mandatory clause and give a default of empty list ? (but then we will miss the check that if user modes are defined, a map must be attached) |
@itaibaz If we leave the code as is how the mappers of the types other than ECN related can be attached to the tunnel? We're trying to figure out how to connect bridge-to-vni mappers to the tunnel and looks like with the current definitions we can't do this. |
in SAI_TUNNEL_ATTR_ENCAP_MAPPERS and SAI_TUNNEL_ATTR_DECAP_MAPPERS definitions Signed-off-by: Iurii Gordynskyi <Iurii.Gordynskyi@cavium.com>
@itaibaz I have pushed changes according to your comment. Could you please review? |
BTW, there are other inconsistencies in attributes definitions:
|
@IGordynskyi Yes seems the attribute conditions have not been updated to accommodate the newer tunnel types and other changes which have happened in this file over time. |
@karthik-krishnamurthy should that be fixed in scope of this PR? |
Merged |
Thanks! |
…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>
* 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>
* Removing condition in bridge port bridge id attribute (#706) (#707) * Fix condition in bridge port bridge id attribute * Updating based on comments * Fix indentation * Remove whitespace * Fix tagging mode flags/comments (#708) (#709) * Fix tagging mode flags/comments * Using validonly flag * Add validonly and range tags to Doxygen (#717) * merge CRM commits to v1.2 (#726) * add SAI_SWITCH_ATTR_AVAILABLE_ACL_{TABLE,TABLE_GROUP} (#721) SAI_SWITCH_ATTR_AVAILABLE_ACL_TABLE counts the available entires for ACL TABLE objects SAI_SWITCH_ATTR_AVAILABLE_ACL_TABLE_GROUP counts the available entries for ACL TABLE GROUP objects * add SAI_SWITCH_ATTR_AVAILABLE_NEXT_HOP_GROUP_ENTRY (#722) * ACL CRM changes (#731) (#733) * Critical Resource Monitoring related changed for ACLs * Adapt to new gcc and doxygen (#725) * Fixed conditions for ENCAP_MAPPERS and DECAP_MAPPERS (#735) (#743) * 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> * Add return flag in notification data structure. (#745) * Add return flag in notification data structure. Add return flag in notification data structure to indicate app behavior on every deadlock situation. * Update saiqueue.h * Update saiqueue.h * Update saiqueue.h * Update saiserializetest.c * Update saiserializetest.c * Update saiserializetest.c * Update saiqueue.h * Update saivlan.h (#752) Updated attribute comment * Added SAI_OBJECT_TYPE_BRIDGE_PORT support in ACL * Keep SAI_OBJECT_TYPE_BRIDGE_PORT along with SAI_OBJECT_TYPE_PORT in saiacl.h
…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>
Fixed conditions for SAI_TUNNEL_ATTR_ENCAP_MAPPERS and SAI_TUNNEL_ATTR_DECAP_MAPPERS tunnel attributes to attach to tunnel different types of mappers