Fixed bug concerning netdev_completed_queue(); thanks to B. Benner.
--- a/devices/e1000/e1000_main-3.10-ethercat.c Wed Nov 12 14:42:17 2014 +0100
+++ b/devices/e1000/e1000_main-3.10-ethercat.c Thu Feb 19 15:19:29 2015 +0100
@@ -4004,7 +4004,9 @@
tx_ring->next_to_clean = i;
- netdev_completed_queue(netdev, pkts_compl, bytes_compl);
+ if (!adapter->ecdev) {
+ netdev_completed_queue(netdev, pkts_compl, bytes_compl);
+ }
#define TX_WAKE_THRESHOLD 32
if (!adapter->ecdev && unlikely(count && netif_carrier_ok(netdev) &&
--- a/devices/e1000/e1000_main-3.12-ethercat.c Wed Nov 12 14:42:17 2014 +0100
+++ b/devices/e1000/e1000_main-3.12-ethercat.c Thu Feb 19 15:19:29 2015 +0100
@@ -4004,7 +4004,9 @@
tx_ring->next_to_clean = i;
- netdev_completed_queue(netdev, pkts_compl, bytes_compl);
+ if (!adapter->ecdev) {
+ netdev_completed_queue(netdev, pkts_compl, bytes_compl);
+ }
#define TX_WAKE_THRESHOLD 32
if (!adapter->ecdev && unlikely(count && netif_carrier_ok(netdev) &&
--- a/devices/e1000/e1000_main-3.14-ethercat.c Wed Nov 12 14:42:17 2014 +0100
+++ b/devices/e1000/e1000_main-3.14-ethercat.c Thu Feb 19 15:19:29 2015 +0100
@@ -3982,7 +3982,9 @@
tx_ring->next_to_clean = i;
- netdev_completed_queue(netdev, pkts_compl, bytes_compl);
+ if (!adapter->ecdev) {
+ netdev_completed_queue(netdev, pkts_compl, bytes_compl);
+ }
#define TX_WAKE_THRESHOLD 32
if (!adapter->ecdev && unlikely(count && netif_carrier_ok(netdev) &&
--- a/devices/e1000/e1000_main-3.16-ethercat.c Wed Nov 12 14:42:17 2014 +0100
+++ b/devices/e1000/e1000_main-3.16-ethercat.c Thu Feb 19 15:19:29 2015 +0100
@@ -3974,7 +3974,9 @@
tx_ring->next_to_clean = i;
- netdev_completed_queue(netdev, pkts_compl, bytes_compl);
+ if (!adapter->ecdev) {
+ netdev_completed_queue(netdev, pkts_compl, bytes_compl);
+ }
#define TX_WAKE_THRESHOLD 32
if (!adapter->ecdev && unlikely(count && netif_carrier_ok(netdev) &&
--- a/devices/e1000/e1000_main-3.8-ethercat.c Wed Nov 12 14:42:17 2014 +0100
+++ b/devices/e1000/e1000_main-3.8-ethercat.c Thu Feb 19 15:19:29 2015 +0100
@@ -4023,7 +4023,9 @@
tx_ring->next_to_clean = i;
- netdev_completed_queue(netdev, pkts_compl, bytes_compl);
+ if (!adapter->ecdev) {
+ netdev_completed_queue(netdev, pkts_compl, bytes_compl);
+ }
#define TX_WAKE_THRESHOLD 32
if (!adapter->ecdev && unlikely(count && netif_carrier_ok(netdev) &&