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

Do not read bytes ACL stat for Yuba Asic #185

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

NStetskovych
Copy link
Contributor

Read only pakcet stats in HwAclCounterTest for Yuba Asic

Signed-off-by: Nadiia Stetskovych <nstetsko@cisco.com>
@@ -167,17 +167,23 @@ class HwAclCounterTest : public HwLinkStateDependentTest {
EXPECT_EVENTUALLY_GE(aclPktCountAfter, aclPktCountBefore + 1);
// At most we should get a pkt bump of 2
EXPECT_EVENTUALLY_LE(aclPktCountAfter, aclPktCountBefore + 2);
EXPECT_EVENTUALLY_GE(
aclBytesCountAfter, aclBytesCountBefore + sizeOfPacketSent);
if (getAsic()->getAsicType() != cfg::AsicType::ASIC_TYPE_YUBA) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead, we should add a hw asic (HwAsic.h) feature and use that to guard this.

I will have Vasant fix this internally for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants