Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/cavium/dev Fix typos in comments.



details:   https://anonhg.NetBSD.org/src/rev/98abb4abbc69
branches:  trunk
changeset: 967932:98abb4abbc69
user:      gutteridge <gutteridge%NetBSD.org@localhost>
date:      Sat Dec 28 02:58:59 2019 +0000

description:
Fix typos in comments.

diffstat:

 sys/arch/mips/cavium/dev/if_cnmac.c |  18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diffs (72 lines):

diff -r 9d7f141c90d5 -r 98abb4abbc69 sys/arch/mips/cavium/dev/if_cnmac.c
--- a/sys/arch/mips/cavium/dev/if_cnmac.c       Sat Dec 28 00:38:08 2019 +0000
+++ b/sys/arch/mips/cavium/dev/if_cnmac.c       Sat Dec 28 02:58:59 2019 +0000
@@ -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 @@
 #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 @@
 
        /*
         * Performance tuning
-        * presend iobdma request
+        * pre-send iobdma request
         */
        octeon_eth_send_queue_flush_prefetch(sc);
 
@@ -1131,7 +1131,7 @@
 
                /*
                 * 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 @@
                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 @@
                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 @@
        /* 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);



Home | Main Index | Thread Index | Old Index