Fix for the issue. PINDSW-4577. Storm prevention done for all paths
authorVineet Roy <a0131726@ti.com>
Thu, 10 Dec 2020 12:19:07 +0000 (17:49 +0530)
committerSivaraj R <sivaraj@ti.com>
Wed, 16 Dec 2020 07:42:15 +0000 (01:42 -0600)
1. This fix makes sure that storm prevention is not done for cut-through packets
2. Without this fix, the rate of cut-through packets gets throttled

packages/ti/drv/icss_emac/firmware/icss_dualemac/src/emac_MII_Rcv.asm

index 747178a39a44ca4f26886c180098778a147d0de8..6b8651257d50d6359e93cf59c6297b245ec04199 100755 (executable)
@@ -511,6 +511,10 @@ FB_BROADCAST_CHECK_CT:
 
 FB_SKIP_VLAN_FLTR:
     .endif
+
+    ;PINDSW-4577: Fix to avoid cut-through packets from going via Storm Prevention
+    ;Storm prevention is done only if host receive flag is set
+    QBBC    FB_CONT_CT_CHECK, MII_RCV.rx_flags , host_rcv_flag_shift
     
     ; Storm Prevention
     QBBC    FB_STORM_NOT_MC, R22, RX_MC_FRAME