]> git.baikalelectronics.ru Git - kernel.git/commitdiff
bnxt_en: Disable aRFS if running on 212 firmware
authorMichael Chan <michael.chan@broadcom.com>
Sun, 15 Aug 2021 20:15:36 +0000 (16:15 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Aug 2021 10:31:41 +0000 (11:31 +0100)
212 firmware broke aRFS, so disable it.  Traffic may stop after ntuple
filters are inserted and deleted by the 212 firmware.

Fixes: ae10ae740ad2 ("bnxt_en: Add new hardware RFS mode.")
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c

index dd2d2a5fef15b558f26ac60f528dc0c9789e9713..207ef7dc9bff8d7a2a4acbc4bd7c9949e4eee6b3 100644 (file)
@@ -10792,6 +10792,9 @@ static bool bnxt_rfs_supported(struct bnxt *bp)
                        return true;
                return false;
        }
+       /* 212 firmware is broken for aRFS */
+       if (BNXT_FW_MAJ(bp) == 212)
+               return false;
        if (BNXT_PF(bp) && !BNXT_CHIP_TYPE_NITRO_A0(bp))
                return true;
        if (bp->flags & BNXT_FLAG_NEW_RSS_CAP)