-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
Is it platform specific
generic
Importance or Severity
Critical
Description of the bug
Support to count and display ECN marked packets is added to -show queue wredcounter' CLI via PR -sonic-net/sonic-utilities#2807
However, for this to work, the minigraph/config_db needs to have additional parameters in FLEX_COUNTER_TABLE.
Note - This support is ONLY available post SAI 12.x.
@saksarav-nokia , @vmittal-msft for viz.
Existing table:
{
"ACL": {
"FLEX_COUNTER_STATUS": "enable",
"POLL_INTERVAL": "10000"
},
"BUFFER_POOL_WATERMARK": {
"FLEX_COUNTER_STATUS": "enable"
},
"PFCWD": {
"FLEX_COUNTER_STATUS": "enable"
},
"PG_DROP": {
"FLEX_COUNTER_STATUS": "enable"
},
"PG_WATERMARK": {
"FLEX_COUNTER_STATUS": "enable"
},
"PORT": {
"FLEX_COUNTER_STATUS": "enable"
},
"PORT_BUFFER_DROP": {
"FLEX_COUNTER_STATUS": "enable"
},
"QUEUE": {
"FLEX_COUNTER_STATUS": "enable"
},
"QUEUE_WATERMARK": {
"FLEX_COUNTER_STATUS": "enable"
},
"RIF": {
"FLEX_COUNTER_STATUS": "enable"
}
}
New table:
{
"ACL": {
"FLEX_COUNTER_STATUS": "enable",
"POLL_INTERVAL": "10000"
},
"BUFFER_POOL_WATERMARK": {
"FLEX_COUNTER_STATUS": "enable"
},
"PFCWD": {
"FLEX_COUNTER_STATUS": "enable"
},
"PG_DROP": {
"FLEX_COUNTER_STATUS": "enable"
},
"PG_WATERMARK": {
"FLEX_COUNTER_STATUS": "enable"
},
"PORT": {
"FLEX_COUNTER_STATUS": "enable"
},
"PORT_BUFFER_DROP": {
"FLEX_COUNTER_STATUS": "enable"
},
"QUEUE": {
"FLEX_COUNTER_STATUS": "enable"
},
"QUEUE_WATERMARK": {
"FLEX_COUNTER_STATUS": "enable"
},
"RIF": {
"FLEX_COUNTER_STATUS": "enable"
},
**"WRED_ECN_QUEUE": {
"FLEX_COUNTER_STATUS": "enable"
},
"WRED_ECN_PORT": {
"FLEX_COUNTER_STATUS": "enable"
}**
}
Steps to Reproduce
ECN test:
- Check for default Kmin, Kmax parameters configured.
- For BRCM-DNX chassis, disable PFC_WD and CREDIT_WD.
- Send pause on the egress.
- Send packets in range of Kmin and Kmax.
- Start capture on egress port.
- Stop the pause on egress.
- Analyze the captured packets for the ECN marking.
Run the ECN test and check the CLI output - show queue wredcounter -n
Actual Behavior and Expected Behavior
Actual behavior:
The counters are shown as zero.
Expected behavior:
The counters should increment.
Workaround:
The minigraph/config_db should have additional parameter defined above. Once added, config_reload on the DUT and repeat the test.
There should be some mechanism to have the WRED_ECN_QUEUE & WRED_ECN_PORT to the FLEX_COUNTER_TABLE in the config_db/minigraph.
Relevant log output
Output of show version
, show techsupport
Attach files (if any)
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status