aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/stmmac
diff options
context:
space:
mode:
authorGiuseppe Cavallaro <peppe.cavallaro@st.com>2010-02-04 12:33:21 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-04 12:33:21 -0500
commit1b924032533033a4dae1a239981677bdae21949b (patch)
tree0a2dc38d02ef30ceecc651253598fe312b756099 /drivers/net/stmmac
parentae06b8330aefb0338017c427d5694fc8ea9144c8 (diff)
stmmac: fix 'lenght' typo in comments and code
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/stmmac')
-rw-r--r--drivers/net/stmmac/common.h2
-rw-r--r--drivers/net/stmmac/dwmac100.c2
-rw-r--r--drivers/net/stmmac/dwmac1000_dma.c4
-rw-r--r--drivers/net/stmmac/stmmac_ethtool.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/stmmac/common.h b/drivers/net/stmmac/common.h
index 7267bcd43d06..2a58172e986a 100644
--- a/drivers/net/stmmac/common.h
+++ b/drivers/net/stmmac/common.h
@@ -44,7 +44,7 @@ struct stmmac_extra_stats {
44 unsigned long rx_toolong; 44 unsigned long rx_toolong;
45 unsigned long rx_collision; 45 unsigned long rx_collision;
46 unsigned long rx_crc; 46 unsigned long rx_crc;
47 unsigned long rx_lenght; 47 unsigned long rx_length;
48 unsigned long rx_mii; 48 unsigned long rx_mii;
49 unsigned long rx_multicast; 49 unsigned long rx_multicast;
50 unsigned long rx_gmac_overflow; 50 unsigned long rx_gmac_overflow;
diff --git a/drivers/net/stmmac/dwmac100.c b/drivers/net/stmmac/dwmac100.c
index 82dde774d4c5..ac48ed787040 100644
--- a/drivers/net/stmmac/dwmac100.c
+++ b/drivers/net/stmmac/dwmac100.c
@@ -265,7 +265,7 @@ static int dwmac100_get_rx_frame_status(void *data,
265 ret = discard_frame; 265 ret = discard_frame;
266 266
267 if (unlikely(p->des01.rx.length_error)) { 267 if (unlikely(p->des01.rx.length_error)) {
268 x->rx_lenght++; 268 x->rx_length++;
269 ret = discard_frame; 269 ret = discard_frame;
270 } 270 }
271 if (unlikely(p->des01.rx.mii_error)) { 271 if (unlikely(p->des01.rx.mii_error)) {
diff --git a/drivers/net/stmmac/dwmac1000_dma.c b/drivers/net/stmmac/dwmac1000_dma.c
index 68245508e2de..39d436a2da68 100644
--- a/drivers/net/stmmac/dwmac1000_dma.c
+++ b/drivers/net/stmmac/dwmac1000_dma.c
@@ -230,7 +230,7 @@ static int dwmac1000_coe_rdes0(int ipc_err, int type, int payload_err)
230 230
231 /* bits 5 7 0 | Frame status 231 /* bits 5 7 0 | Frame status
232 * ---------------------------------------------------------- 232 * ----------------------------------------------------------
233 * 0 0 0 | IEEE 802.3 Type frame (lenght < 1536 octects) 233 * 0 0 0 | IEEE 802.3 Type frame (length < 1536 octects)
234 * 1 0 0 | IPv4/6 No CSUM errorS. 234 * 1 0 0 | IPv4/6 No CSUM errorS.
235 * 1 0 1 | IPv4/6 CSUM PAYLOAD error 235 * 1 0 1 | IPv4/6 CSUM PAYLOAD error
236 * 1 1 0 | IPv4/6 CSUM IP HR error 236 * 1 1 0 | IPv4/6 CSUM IP HR error
@@ -331,7 +331,7 @@ static int dwmac1000_get_rx_frame_status(void *data,
331 } 331 }
332 if (unlikely(p->des01.erx.length_error)) { 332 if (unlikely(p->des01.erx.length_error)) {
333 DBG(KERN_ERR "GMAC RX: length_error error\n"); 333 DBG(KERN_ERR "GMAC RX: length_error error\n");
334 x->rx_lenght++; 334 x->rx_length++;
335 ret = discard_frame; 335 ret = discard_frame;
336 } 336 }
337#ifdef STMMAC_VLAN_TAG_USED 337#ifdef STMMAC_VLAN_TAG_USED
diff --git a/drivers/net/stmmac/stmmac_ethtool.c b/drivers/net/stmmac/stmmac_ethtool.c
index 0abeff6193a1..c021eaa3ca69 100644
--- a/drivers/net/stmmac/stmmac_ethtool.c
+++ b/drivers/net/stmmac/stmmac_ethtool.c
@@ -62,7 +62,7 @@ static const struct stmmac_stats stmmac_gstrings_stats[] = {
62 STMMAC_STAT(rx_toolong), 62 STMMAC_STAT(rx_toolong),
63 STMMAC_STAT(rx_collision), 63 STMMAC_STAT(rx_collision),
64 STMMAC_STAT(rx_crc), 64 STMMAC_STAT(rx_crc),
65 STMMAC_STAT(rx_lenght), 65 STMMAC_STAT(rx_length),
66 STMMAC_STAT(rx_mii), 66 STMMAC_STAT(rx_mii),
67 STMMAC_STAT(rx_multicast), 67 STMMAC_STAT(rx_multicast),
68 STMMAC_STAT(rx_gmac_overflow), 68 STMMAC_STAT(rx_gmac_overflow),