bce: Remove debug stuffs from polling code
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 10 Aug 2012 06:20:49 +0000 (14:20 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 10 Aug 2012 08:47:42 +0000 (16:47 +0800)
sys/dev/netif/bce/if_bce.c

index fd5d57b..ea252de 100644 (file)
@@ -5207,11 +5207,6 @@ bce_poll(struct ifnet *ifp, enum poll_cmd cmd, int count)
 
                status_attn_bits = sblk->status_attn_bits;
 
-               DBRUNIF(DB_RANDOMTRUE(bce_debug_unexpected_attention),
-                       if_printf(ifp,
-                       "Simulating unexpected status attention bit set.");
-                       status_attn_bits |= STATUS_ATTN_BITS_PARITY_ERROR);
-
                /* Was it a link change interrupt? */
                if ((status_attn_bits & STATUS_ATTN_BITS_LINK_STATE) !=
                    (sblk->status_attn_bits_ack & STATUS_ATTN_BITS_LINK_STATE))
@@ -5229,15 +5224,8 @@ bce_poll(struct ifnet *ifp, enum poll_cmd cmd, int count)
                if ((status_attn_bits & ~STATUS_ATTN_BITS_LINK_STATE) !=
                     (sblk->status_attn_bits_ack &
                      ~STATUS_ATTN_BITS_LINK_STATE)) {
-                       DBRUN(1, sc->unexpected_attentions++);
-
                        if_printf(ifp, "Fatal attention detected: 0x%08X\n",
                                  sblk->status_attn_bits);
-
-                       DBRUN(BCE_FATAL,
-                       if (bce_debug_unexpected_attention == 0)
-                               bce_breakpoint(sc));
-
                        bce_init(sc);
                        return;
                }