You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
928 B
27 lines
928 B
Re-enable rx fifo buffer checks.
|
|
|
|
LTIBName: linux-2.6.25-m547x-8x-fec-rxfifo-check
|
|
Acked-by: Kurt Mahan <kmahan@freescale.com>
|
|
Signed-off-by: Shrek Wu <b16972@freescale.com>
|
|
--- a/drivers/net/fec/fec.c
|
|
+++ b/drivers/net/fec/fec.c
|
|
@@ -941,9 +941,9 @@ void fec_interrupt_fec_rx_handler(struct
|
|
{
|
|
struct fec_priv *fp = netdev_priv(dev);
|
|
struct sk_buff *skb;
|
|
+ int i;
|
|
|
|
fp->fecpriv_rxflag = 1;
|
|
-/*
|
|
// Some buffers can be missed
|
|
if(!(fp->fecpriv_rxdesc[fp->fecpriv_current_rx].statCtrl & MCD_FEC_END_FRAME))
|
|
{
|
|
@@ -961,7 +961,7 @@ void fec_interrupt_fec_rx_handler(struct
|
|
return;
|
|
}
|
|
}
|
|
-*/
|
|
+
|
|
for (; fp->fecpriv_rxdesc[fp->fecpriv_current_rx].statCtrl & MCD_FEC_END_FRAME; fp->fecpriv_current_rx = (fp->fecpriv_current_rx + 1) & FEC_RX_INDEX_MASK) {
|
|
if( (fp->fecpriv_rxdesc[fp->fecpriv_current_rx].length <= FEC_MAXBUF_SIZE) &&
|
|
(fp->fecpriv_rxdesc[fp->fecpriv_current_rx].length > 4)) { /* --tym-- */
|
|
|