Skip to content

Fix issue with update ACL TABLE CRM error#498

Closed
JaredLius wants to merge 9 commits intosonic-net:masterfrom
leoli-nps:master
Closed

Fix issue with update ACL TABLE CRM error#498
JaredLius wants to merge 9 commits intosonic-net:masterfrom
leoli-nps:master

Conversation

@JaredLius
Copy link
Copy Markdown
Contributor

What I did
Fix issue with update ACL TABLE CRM error

Why I did it
when execute command "crm show resource all", it display wrong used count on acl_table. the ingress used acl_table was counted to egress used. from the code, when it call function gCrmOrch->incCrmAclUsedCounter, the second parameter is the acl stage, but the code use a variable attr.value.s32 which has been modified, it is not equal to acl stage any more.

How I verified it
I make a new swss_1.0.0_amd64.deb, and update it to switch. after reboot, when execute "crm show resource all", it can display the acl_table used count correctly.

Details if related

}

gCrmOrch->incCrmAclUsedCounter(CrmResourceType::CRM_ACL_GROUP, (sai_acl_stage_t) group_attr.value.s32, SAI_ACL_BIND_POINT_TYPE_PORT);
sai_acl_stage_t acl_stage = ingress ? SAI_ACL_STAGE_INGRESS : SAI_ACL_STAGE_EGRESS;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This was a bug that was fixed and merged recently. Can you check the latest code?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I have checked the latest code on master branch, but did not see the fix code. Could you please tell me in which commit it merged? thank you.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@lguohan
Copy link
Copy Markdown
Contributor

lguohan commented May 17, 2018

retest this please

@lguohan
Copy link
Copy Markdown
Contributor

lguohan commented May 18, 2018

test failure, please fix.

@lguohan
Copy link
Copy Markdown
Contributor

lguohan commented Jul 12, 2018

retest this please

@stcheng
Copy link
Copy Markdown
Contributor

stcheng commented Nov 1, 2018

retest this please

@JaredLius JaredLius closed this Nov 1, 2018
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
* update

* update

* address comments

* address comments

* add import sys

* handle request timeout
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this pull request Mar 1, 2023
When sflow is configured using CLI or other supported mechanisms, the orch-agent invokes
the SAI API set_port_attribute(). For the sflow feature, his API is used to set the SAI_PORT_ATTR_INGRESS_SAMPLEPACKET_ENABLE attribute of a netdev port. The value stored for this attribute is a samplepacket object, which essentially contains various sampling attributes (sampling rate, sampler group etc.) associated with the port.

When sampling is disabled on a port, the SAI_PORT_ATTR_INGRESS_SAMPLEPACKET_ENABLE attribute is set to a null object.
When sampling is enabled on a port, the SAI_PORT_ATTR_INGRESS_SAMPLEPACKET_ENABLE attribute is set to a valid samplepacket object.

For sonic-vs, in the absence of a real ASIC programming, the 'tc' command is used instead to configure the sampling parameters inside the kernel. In this PR we invoke the appropriate 'tc' command, based on the requested config actions (disable or enable or update).

Signed-off-by: Rakesh Datta <rakesh.datta@dell.com>
jianyuewu pushed a commit to jianyuewu/sonic-swss that referenced this pull request Dec 24, 2025
add extra parameter to linkToDbNative , which is default to "NOTICE" to allow daemons to set their own log level easily.
Example:
Logger::linkToDbNative("portsyncd"); // by default "NOTICE"
Logger::linkToDbNative("portsyncd", "INFO"); //explicit "INFO"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants