File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -2031,7 +2031,9 @@ class DashMeterCounterContext : public BaseCounterContext
20312031 sai_object_key_t object_key;
20322032 object_key.key .meter_bucket_entry .eni_id = rid;
20332033 object_key.key .meter_bucket_entry .switch_id = m_switchId;
2034- for (uint32_t i = 0 ; i < m_meterBucketsPerEni; ++i) {
2034+ // Bulk fetch stats for ENI meter classes/buckets 1 - max capable.
2035+ // 0 is not a valid meter class and is used to represent traffic that is not metered
2036+ for (uint32_t i = 1 ; i <= m_meterBucketsPerEni; ++i) {
20352037 object_key.key .meter_bucket_entry .meter_class = i;
20362038 ctx.object_keys .push_back (object_key);
20372039 }
Original file line number Diff line number Diff line change 3030EAPOL
3131ECN
3232EIO
33+ ENI
3334ETERM
3435ecmp
3536ECMP
You can’t perform that action at this time.
0 commit comments