Skip to content
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

Check if SAI features are supported before initiliazing the acess to … #18

Merged
merged 2 commits into from
May 11, 2016
Merged

Conversation

krambn
Copy link
Contributor

@krambn krambn commented May 10, 2016

Initialize function pointers to NULL if feature is not supported

common_get_attribute[SAI_OBJECT_TYPE_PRIORITY_GROUP] = sai_buffer_api->get_ingress_priority_group_attr;
common_get_attribute[SAI_OBJECT_TYPE_LAG_MEMBER] = sai_lag_api->get_lag_member_attribute;
common_get_attribute[SAI_OBJECT_TYPE_VLAN_MEMBER] = sai_vlan_api->get_vlan_member_attribute;
common_get_attribute[SAI_OBJECT_TYPE_POLICER] = (sai_policer_api) ? sai_policer_api->get_policer_attribute : NULL ;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra space between NULL and ;

@kcudnik
Copy link
Collaborator

kcudnik commented May 11, 2016

Ack

@kcudnik kcudnik merged commit 85eb6bd into sonic-net:master May 11, 2016
jianyuewu pushed a commit to jianyuewu/sonic-sairedis that referenced this pull request Feb 7, 2025
…et#18)

* Add aclshow utility to view ACL info and counters
* Change db access from redis module to sswsdk
* Add aclshow to the setup.py
* Rename sswsdk->swsssdk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants