summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1997-06-16 04:45:57 +0000
committerdg <dg@FreeBSD.org>1997-06-16 04:45:57 +0000
commit81c10fbfdfd77c5dbfd8a079f20eb98253db932f (patch)
treef260ae0723ec6716ae57dfde691aa32f927f7f59
parent1dcc2689e70c9a1ef6ab3fdc4cd16d3ccaa83c7d (diff)
downloadFreeBSD-src-81c10fbfdfd77c5dbfd8a079f20eb98253db932f.zip
FreeBSD-src-81c10fbfdfd77c5dbfd8a079f20eb98253db932f.tar.gz
Minor optimization in fxp_intr.
-rw-r--r--sys/dev/fxp/if_fxp.c9
-rw-r--r--sys/pci/if_fxp.c9
2 files changed, 8 insertions, 10 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c
index 09542a0..7dd62f5 100644
--- a/sys/dev/fxp/if_fxp.c
+++ b/sys/dev/fxp/if_fxp.c
@@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: if_fxp.c,v 1.34 1997/04/23 01:44:30 davidg Exp $
+ * $Id: if_fxp.c,v 1.35 1997/06/13 22:34:52 davidg Exp $
*/
/*
@@ -594,15 +594,14 @@ fxp_intr(arg)
txp->mb_head = NULL;
sc->tx_queued--;
}
- if (txp->cb_command & FXP_CB_COMMAND_S)
+ if (txp == sc->cbl_last)
break;
}
sc->cbl_first = txp;
+ ifp->if_timer = 0;
/*
- * Clear watchdog timer. It may or may not be set
- * again in fxp_start().
+ * Try to start more packets transmitting.
*/
- ifp->if_timer = 0;
if (ifp->if_snd.ifq_head != NULL)
fxp_start(ifp);
}
diff --git a/sys/pci/if_fxp.c b/sys/pci/if_fxp.c
index 09542a0..7dd62f5 100644
--- a/sys/pci/if_fxp.c
+++ b/sys/pci/if_fxp.c
@@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: if_fxp.c,v 1.34 1997/04/23 01:44:30 davidg Exp $
+ * $Id: if_fxp.c,v 1.35 1997/06/13 22:34:52 davidg Exp $
*/
/*
@@ -594,15 +594,14 @@ fxp_intr(arg)
txp->mb_head = NULL;
sc->tx_queued--;
}
- if (txp->cb_command & FXP_CB_COMMAND_S)
+ if (txp == sc->cbl_last)
break;
}
sc->cbl_first = txp;
+ ifp->if_timer = 0;
/*
- * Clear watchdog timer. It may or may not be set
- * again in fxp_start().
+ * Try to start more packets transmitting.
*/
- ifp->if_timer = 0;
if (ifp->if_snd.ifq_head != NULL)
fxp_start(ifp);
}
OpenPOWER on IntegriCloud