patch-2.0.4 linux/drivers/net/arcnet.c

Next file: linux/drivers/pci/pci.c
Previous file: linux/drivers/net/3c59x.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.3/linux/drivers/net/arcnet.c linux/drivers/net/arcnet.c
@@ -17,6 +17,14 @@
          
 	**********************
 	
+	v2.54 (96/07/05)
+	  - Under some situations, Stage 5 autoprobe was a little bit too
+	    picky about the TXACK flag.
+	  - D_EXTRA removed from default debugging flags.  Hey, it's stable,
+	    right?
+	  - Removed redundant "unknown protocol ID" messages and made remaining
+	    ones D_EXTRA.
+	
 	v2.53 (96/06/06)
 	  - arc0e and arc0s wouldn't initialize in newer kernels, which
 	    don't like dev->open==NULL or dev->stop==NULL.
@@ -184,7 +192,7 @@
 */
 
 static const char *version =
- "arcnet.c: v2.53 96/06/06 Avery Pennarun <apenwarr@foxnet.net>\n";
+ "arcnet.c: v2.54 96/07/05 Avery Pennarun <apenwarr@foxnet.net>\n";
 
  
 
@@ -341,7 +349,7 @@
 #endif
 
 #ifndef ARCNET_DEBUG
-#define ARCNET_DEBUG (D_NORMAL|D_EXTRA)
+#define ARCNET_DEBUG (D_NORMAL)
 #endif
 int arcnet_debug = ARCNET_DEBUG;
 
@@ -976,7 +984,7 @@
 		ioaddr=*port;
 		status=inb(STATUS);
 		
-		if ((status & 0x9F)
+		if ((status & 0x9D)
 			!= (NORXflag|RECONflag|TXFREEflag|RESETflag))
 		{
 			BUGMSG2(D_INIT_REASONS,"(status=%Xh)\n",status);
@@ -2240,7 +2248,7 @@
 #endif
 	case ARC_P_LANSOFT: /* don't understand.  fall through. */
 	default:
-		BUGMSG(D_NORMAL,"received unknown protocol %d (%Xh) from station %d.\n",
+		BUGMSG(D_EXTRA,"received unknown protocol %d (%Xh) from station %d.\n",
 			arcsoft[0],arcsoft[0],saddr);
 		lp->stats.rx_errors++;
 		lp->stats.rx_crc_errors++;
@@ -2733,8 +2741,6 @@
 	case ARC_P_NOVELL_EC:
 		return htons(ETH_P_802_3);
 	default:
-		BUGMSG(D_NORMAL,"received packet of unknown protocol id %d (%Xh)\n",
-				head->protocol_id,head->protocol_id);
 		lp->stats.rx_errors++;
 		lp->stats.rx_crc_errors++;
 		return 0;
@@ -3196,8 +3202,6 @@
 	case ARC_P_ARP_RFC1051:	return htons(ETH_P_ARP);
 	case ARC_P_ATALK:   return htons(ETH_P_ATALK); /* untested appletalk */
 	default:
-		BUGMSG(D_NORMAL,"received packet of unknown protocol id %d (%Xh)\n",
-			head->protocol_id,head->protocol_id);
 		lp->stats.rx_errors++;
 		lp->stats.rx_crc_errors++;
 		return 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov