From e5578551dad567597b7d377f63e8a8efa08fd192 Mon Sep 17 00:00:00 2001 From: maulik_patel_marvell Date: Wed, 9 Nov 2022 19:15:43 -0800 Subject: [PATCH] [SWSS] Innovium platform specific changes in PFC Detect lua script (#2493) What I did Update pfc_detect_innovium.lua Why I did it pfc_detect_innovium.lua changes for master and 202111 --- orchagent/pfc_detect_innovium.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orchagent/pfc_detect_innovium.lua b/orchagent/pfc_detect_innovium.lua index 8deedeaa4f4f..a948bd6fad3c 100644 --- a/orchagent/pfc_detect_innovium.lua +++ b/orchagent/pfc_detect_innovium.lua @@ -79,7 +79,7 @@ for i = n, 1, -1 do -- redis.call('HSET', counters_table_name .. ':' .. KEYS[i], 'K7_debug_3', 'YES') - if (occupancy_bytes > 0 and packets - packets_last == 0 and pfc_rx_packets - pfc_rx_packets_last > 0) or + if (occupancy_bytes > 0 and packets - packets_last == 0 and pfc_rx_packets - pfc_rx_packets_last > 0 and (pfc_duration - pfc_duration_last) > poll_time * 0.8) or -- DEBUG CODE START. Uncomment to enable (debug_storm == "enabled") or -- DEBUG CODE END.