* The transmission code needs to process all queued packets in one way or
another; if this is not done, the kernel will busy loop
* Fix a kernel freeze issue when bringing up network interfaces not having
an active link (cable not plugged...)
if ((ifp->if_flags & (IFF_RUNNING|IFF_OACTIVE)) != IFF_RUNNING)
return;
- if (!adapter->link_active)
+
+ if (!adapter->link_active) {
+ ifq_purge(&ifp->if_snd);
return;
+ }
while (!ifq_is_empty(&ifp->if_snd)) {
if (txr->tx_avail <= IXGBE_QUEUE_MIN_FREE) {