equal
deleted
inserted
replaced
1989 |
1989 |
1990 dirty_tx++; |
1990 dirty_tx++; |
1991 tx_left--; |
1991 tx_left--; |
1992 } |
1992 } |
1993 |
1993 |
|
1994 /* EtherCAT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/ |
|
1995 |
1994 #ifndef RTL8139_NDEBUG |
1996 #ifndef RTL8139_NDEBUG |
1995 if (tp->cur_tx - dirty_tx > NUM_TX_DESC) { |
1997 if (dev != rtl_ecat_dev.dev && tp->cur_tx - dirty_tx > NUM_TX_DESC) { |
1996 printk (KERN_ERR "%s: Out-of-sync dirty pointer, %ld vs. %ld.\n", |
1998 printk (KERN_ERR "%s: Out-of-sync dirty pointer, %ld vs. %ld.\n", |
1997 dev->name, dirty_tx, tp->cur_tx); |
1999 dev->name, dirty_tx, tp->cur_tx); |
1998 dirty_tx += NUM_TX_DESC; |
2000 dirty_tx += NUM_TX_DESC; |
1999 } |
2001 } |
2000 #endif /* RTL8139_NDEBUG */ |
2002 #endif /* RTL8139_NDEBUG */ |
|
2003 |
|
2004 /* EtherCAT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/ |
2001 |
2005 |
2002 /* only wake the queue if we did work, and the queue is stopped */ |
2006 /* only wake the queue if we did work, and the queue is stopped */ |
2003 if (tp->dirty_tx != dirty_tx) { |
2007 if (tp->dirty_tx != dirty_tx) { |
2004 tp->dirty_tx = dirty_tx; |
2008 tp->dirty_tx = dirty_tx; |
2005 mb(); |
2009 mb(); |