stmmac: fix 'lenght' typo in comments and code
authorGiuseppe Cavallaro <peppe.cavallaro@st.com>
Thu, 4 Feb 2010 17:33:21 +0000 (09:33 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Feb 2010 17:33:21 +0000 (09:33 -0800)
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/stmmac/common.h
drivers/net/stmmac/dwmac100.c
drivers/net/stmmac/dwmac1000_dma.c
drivers/net/stmmac/stmmac_ethtool.c

index 7267bcd..2a58172 100644 (file)
@@ -44,7 +44,7 @@ struct stmmac_extra_stats {
        unsigned long rx_toolong;
        unsigned long rx_collision;
        unsigned long rx_crc;
        unsigned long rx_toolong;
        unsigned long rx_collision;
        unsigned long rx_crc;
-       unsigned long rx_lenght;
+       unsigned long rx_length;
        unsigned long rx_mii;
        unsigned long rx_multicast;
        unsigned long rx_gmac_overflow;
        unsigned long rx_mii;
        unsigned long rx_multicast;
        unsigned long rx_gmac_overflow;
index 82dde77..ac48ed7 100644 (file)
@@ -265,7 +265,7 @@ static int dwmac100_get_rx_frame_status(void *data,
                ret = discard_frame;
 
        if (unlikely(p->des01.rx.length_error)) {
                ret = discard_frame;
 
        if (unlikely(p->des01.rx.length_error)) {
-               x->rx_lenght++;
+               x->rx_length++;
                ret = discard_frame;
        }
        if (unlikely(p->des01.rx.mii_error)) {
                ret = discard_frame;
        }
        if (unlikely(p->des01.rx.mii_error)) {
index 6824550..39d436a 100644 (file)
@@ -230,7 +230,7 @@ static int dwmac1000_coe_rdes0(int ipc_err, int type, int payload_err)
 
        /* bits 5 7 0 | Frame status
         * ----------------------------------------------------------
 
        /* bits 5 7 0 | Frame status
         * ----------------------------------------------------------
-        *      0 0 0 | IEEE 802.3 Type frame (lenght < 1536 octects)
+        *      0 0 0 | IEEE 802.3 Type frame (length < 1536 octects)
         *      1 0 0 | IPv4/6 No CSUM errorS.
         *      1 0 1 | IPv4/6 CSUM PAYLOAD error
         *      1 1 0 | IPv4/6 CSUM IP HR error
         *      1 0 0 | IPv4/6 No CSUM errorS.
         *      1 0 1 | IPv4/6 CSUM PAYLOAD error
         *      1 1 0 | IPv4/6 CSUM IP HR error
@@ -331,7 +331,7 @@ static int dwmac1000_get_rx_frame_status(void *data,
        }
        if (unlikely(p->des01.erx.length_error)) {
                DBG(KERN_ERR "GMAC RX: length_error error\n");
        }
        if (unlikely(p->des01.erx.length_error)) {
                DBG(KERN_ERR "GMAC RX: length_error error\n");
-               x->rx_lenght++;
+               x->rx_length++;
                ret = discard_frame;
        }
 #ifdef STMMAC_VLAN_TAG_USED
                ret = discard_frame;
        }
 #ifdef STMMAC_VLAN_TAG_USED
index 0abeff6..c021eaa 100644 (file)
@@ -62,7 +62,7 @@ static const struct  stmmac_stats stmmac_gstrings_stats[] = {
        STMMAC_STAT(rx_toolong),
        STMMAC_STAT(rx_collision),
        STMMAC_STAT(rx_crc),
        STMMAC_STAT(rx_toolong),
        STMMAC_STAT(rx_collision),
        STMMAC_STAT(rx_crc),
-       STMMAC_STAT(rx_lenght),
+       STMMAC_STAT(rx_length),
        STMMAC_STAT(rx_mii),
        STMMAC_STAT(rx_multicast),
        STMMAC_STAT(rx_gmac_overflow),
        STMMAC_STAT(rx_mii),
        STMMAC_STAT(rx_multicast),
        STMMAC_STAT(rx_gmac_overflow),