Module Name:    src
Committed By:   gutteridge
Date:           Sat Dec 28 02:58:59 UTC 2019

Modified Files:
        src/sys/arch/mips/cavium/dev: if_cnmac.c

Log Message:
Fix typos in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/mips/cavium/dev/if_cnmac.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mips/cavium/dev/if_cnmac.c
diff -u src/sys/arch/mips/cavium/dev/if_cnmac.c:1.14 src/sys/arch/mips/cavium/dev/if_cnmac.c:1.15
--- src/sys/arch/mips/cavium/dev/if_cnmac.c:1.14	Fri Jun  7 07:41:22 2019
+++ src/sys/arch/mips/cavium/dev/if_cnmac.c	Sat Dec 28 02:58:59 2019
@@ -1,8 +1,8 @@
-/*	$NetBSD: if_cnmac.c,v 1.14 2019/06/07 07:41:22 martin Exp $	*/
+/*	$NetBSD: if_cnmac.c,v 1.15 2019/12/28 02:58:59 gutteridge Exp $	*/
 
 #include <sys/cdefs.h>
 #if 0
-__KERNEL_RCSID(0, "$NetBSD: if_cnmac.c,v 1.14 2019/06/07 07:41:22 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_cnmac.c,v 1.15 2019/12/28 02:58:59 gutteridge Exp $");
 #endif
 
 #include "opt_octeon.h"
@@ -20,7 +20,7 @@ __KERNEL_RCSID(0, "$NetBSD: if_cnmac.c,v
 #endif
 
 /*
- * If no free send buffer is available, free all the sent buffer and bail out.
+ * If no free send buffer is available, free all the sent buffers and bail out.
  */
 #define OCTEON_ETH_SEND_QUEUE_CHECK
 
@@ -1099,7 +1099,7 @@ octeon_eth_start(struct ifnet *ifp)
 
 	/*
 	 * Performance tuning
-	 * presend iobdma request
+	 * pre-send iobdma request
 	 */
 	octeon_eth_send_queue_flush_prefetch(sc);
 
@@ -1131,7 +1131,7 @@ octeon_eth_start(struct ifnet *ifp)
 
 		/*
 		 * If no free send buffer is available, free all the sent
-		 * buffer and bail out.
+		 * buffers and bail out.
 		 */
 		if (octeon_eth_send_queue_is_full(sc)) {
 			SET(ifp->if_flags, IFF_OACTIVE);
@@ -1421,7 +1421,7 @@ octeon_eth_recv_check(struct octeon_eth_
 		return 1;
 	}
 
-#if 0 /* XXX Performance tunig (Jumbo-frame is not supported yet!) */
+#if 0 /* XXX Performance tuning (Jumbo-frame is not supported yet!) */
 	if (__predict_false(octeon_eth_recv_check_jumbo(sc, word2)) != 0) {
 		/* XXX jumbo frame */
 		if (ratecheck(&sc->sc_rate_recv_check_jumbo_last,
@@ -1438,10 +1438,10 @@ octeon_eth_recv_check(struct octeon_eth_
 		if ((word2 & PIP_WQE_WORD2_NOIP_OPECODE) ==
 				PIP_WQE_WORD2_RE_OPCODE_LENGTH) {
 			/* No logging */
-			/* XXX inclement special error count */
+			/* XXX increment special error count */
 		} else if ((word2 & PIP_WQE_WORD2_NOIP_OPECODE) ==
 				PIP_WQE_WORD2_RE_OPCODE_PARTIAL) {
-			/* Not an erorr. it's because of overload */
+			/* Not an error, it's because of overload */
 		} else {
 
 			if (ratecheck(&sc->sc_rate_recv_check_code_last,
@@ -1469,7 +1469,7 @@ octeon_eth_recv(struct octeon_eth_softc 
 	/* XXX XXX XXX */
 	/*
 	 * Performance tuning
-	 * presend iobdma request
+	 * pre-send iobdma request
 	 */
 	if (sc->sc_soft_req_cnt > sc->sc_soft_req_thresh) {
 		octeon_eth_send_queue_flush_prefetch(sc);

Reply via email to