Skip to content

Conversation

@Shaigai21
Copy link

From inc/saiacl.h:

/*
 * By default, Byte Counter would be created and following
 * use of the below attributes would result in an error.
 *
 * - Both packet count and byte count set to disable
 * - Only Byte count used which is set to disable
 */

According to the comment above, default value for enabling byte count is true.

But for SAI_ACL_COUNTER_ATTR_ENABLE_BYTE_COUNT it is set to false:

/**
 * @brief Enable/disable byte count
 *
 * @type bool
 * @flags CREATE_ONLY
 * @default false
 */
SAI_ACL_COUNTER_ATTR_ENABLE_BYTE_COUNT,

According to notes above, Byte Counter should be created by default.

Signed-off-by: Mastah <blackmastah21@gmail.com>
@Shaigai21 Shaigai21 changed the title saiacl.h: change default attr value to true Change default value of ACL Counter attribute Jan 20, 2026
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.

1 participant