Skip to content

Commit ecd8810

Browse files
authored
update portStatIds for cisco (sonic-net#2876)
What I did Update portStatIds for cisco Why I did it test_pfcwd_status.py failed with error 'E Failed: FLEX DB does not properly reflect Pfcwd status', script expect 3 entries for each port, but it only got 2 entries. The port level entry is missing.
1 parent f129499 commit ecd8810

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

orchagent/orchdaemon.cpp

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,25 @@ bool OrchDaemon::init()
674674
}
675675
} else if (platform == CISCO_8000_PLATFORM_SUBSTRING)
676676
{
677-
static const vector<sai_port_stat_t> portStatIds;
677+
static const vector<sai_port_stat_t> portStatIds =
678+
{
679+
SAI_PORT_STAT_PFC_0_RX_PKTS,
680+
SAI_PORT_STAT_PFC_1_RX_PKTS,
681+
SAI_PORT_STAT_PFC_2_RX_PKTS,
682+
SAI_PORT_STAT_PFC_3_RX_PKTS,
683+
SAI_PORT_STAT_PFC_4_RX_PKTS,
684+
SAI_PORT_STAT_PFC_5_RX_PKTS,
685+
SAI_PORT_STAT_PFC_6_RX_PKTS,
686+
SAI_PORT_STAT_PFC_7_RX_PKTS,
687+
SAI_PORT_STAT_PFC_0_TX_PKTS,
688+
SAI_PORT_STAT_PFC_1_TX_PKTS,
689+
SAI_PORT_STAT_PFC_2_TX_PKTS,
690+
SAI_PORT_STAT_PFC_3_TX_PKTS,
691+
SAI_PORT_STAT_PFC_4_TX_PKTS,
692+
SAI_PORT_STAT_PFC_5_TX_PKTS,
693+
SAI_PORT_STAT_PFC_6_TX_PKTS,
694+
SAI_PORT_STAT_PFC_7_TX_PKTS,
695+
};
678696

679697
static const vector<sai_queue_stat_t> queueStatIds =
680698
{

0 commit comments

Comments
 (0)