]> git.karo-electronics.de Git - linux-beck.git/commitdiff
bnx2x: Remove unnecessary internal mem config
authorAriel Elior <ariele@broadcom.com>
Wed, 12 Feb 2014 16:19:51 +0000 (18:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Feb 2014 00:15:41 +0000 (19:15 -0500)
Latest FW performs this autonomously, makes this code surplus.

Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_fw_defs.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c

index 84aecdf06f7a7cc807993952eedd01d483e739f7..95dc365435483ed9298389b88f965130d48eb7d0 100644 (file)
@@ -87,7 +87,6 @@
        (IRO[156].base + ((vfId) * IRO[156].m1))
 #define CSTORM_VF_TO_PF_OFFSET(funcId) \
        (IRO[150].base + ((funcId) * IRO[150].m1))
-#define TSTORM_ACCEPT_CLASSIFY_FAILED_OFFSET (IRO[204].base)
 #define TSTORM_APPROXIMATE_MATCH_MULTICAST_FILTERING_OFFSET(pfId) \
        (IRO[203].base + ((pfId) * IRO[203].m1))
 #define TSTORM_ASSERT_LIST_INDEX_OFFSET        (IRO[102].base)
index 1b3dda49590a28f2db3f5263587db2f7978d587f..38f04018110b063872e6b78b03a20063a7553669 100644 (file)
@@ -6005,18 +6005,6 @@ static void bnx2x_init_internal_common(struct bnx2x *bp)
 {
        int i;
 
-       if (IS_MF_SI(bp))
-               /*
-                * In switch independent mode, the TSTORM needs to accept
-                * packets that failed classification, since approximate match
-                * mac addresses aren't written to NIG LLH
-                */
-               REG_WR8(bp, BAR_TSTRORM_INTMEM +
-                           TSTORM_ACCEPT_CLASSIFY_FAILED_OFFSET, 2);
-       else if (!CHIP_IS_E1(bp)) /* 57710 doesn't support MF */
-               REG_WR8(bp, BAR_TSTRORM_INTMEM +
-                           TSTORM_ACCEPT_CLASSIFY_FAILED_OFFSET, 0);
-
        /* Zero this manually as its initialization is
           currently missing in the initTool */
        for (i = 0; i < (USTORM_AGG_DATA_SIZE >> 2); i++)