summaryrefslogtreecommitdiffstats
path: root/sys/dev/e1000/if_igb.c
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2014-06-09 15:09:05 +0000
committerluigi <luigi@FreeBSD.org>2014-06-09 15:09:05 +0000
commit63bea6a96753d317493e55c47f357c8327ed75ed (patch)
tree38d0490d94328cb41d3ce793160bc5a02a939658 /sys/dev/e1000/if_igb.c
parent5fc12f2e25f4654073d961305e90bb5ec2e4c84b (diff)
downloadFreeBSD-src-63bea6a96753d317493e55c47f357c8327ed75ed.zip
FreeBSD-src-63bea6a96753d317493e55c47f357c8327ed75ed.tar.gz
MFC svn 267065 and 267187
make sure ifp->if_transmit returns 0 if a buffer is enqueued. This should also be merged to stable/9. After this fix, drivers still known to have this bug are igxbe/ixv and i40e. Drivers using if_transmit are correct, and so are most of the other drivers that reassing if_transmit. Among other things, this bug causes panics when using netmap emulation on top of generic drivers.
Diffstat (limited to 'sys/dev/e1000/if_igb.c')
-rw-r--r--sys/dev/e1000/if_igb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/e1000/if_igb.c b/sys/dev/e1000/if_igb.c
index 3b6af17..15d71ce 100644
--- a/sys/dev/e1000/if_igb.c
+++ b/sys/dev/e1000/if_igb.c
@@ -988,12 +988,12 @@ igb_mq_start(struct ifnet *ifp, struct mbuf *m)
if (err)
return (err);
if (IGB_TX_TRYLOCK(txr)) {
- err = igb_mq_start_locked(ifp, txr);
+ igb_mq_start_locked(ifp, txr);
IGB_TX_UNLOCK(txr);
} else
taskqueue_enqueue(que->tq, &txr->txq_task);
- return (err);
+ return (0);
}
static int
OpenPOWER on IntegriCloud