Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/scsipi ALTQ'ify.
details: https://anonhg.NetBSD.org/src/rev/60d4c65f47be
branches: trunk
changeset: 500592:60d4c65f47be
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu Dec 14 07:27:21 2000 +0000
description:
ALTQ'ify.
diffstat:
sys/dev/scsipi/if_se.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r cf25bade5765 -r 60d4c65f47be sys/dev/scsipi/if_se.c
--- a/sys/dev/scsipi/if_se.c Thu Dec 14 07:15:45 2000 +0000
+++ b/sys/dev/scsipi/if_se.c Thu Dec 14 07:27:21 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_se.c,v 1.32 2000/11/15 01:02:19 thorpej Exp $ */
+/* $NetBSD: if_se.c,v 1.33 2000/12/14 07:27:21 thorpej Exp $ */
/*
* Copyright (c) 1997 Ian W. Dall <ian.dall%dsto.defence.gov.au@localhost>
@@ -354,6 +354,7 @@
ifp->if_watchdog = sewatchdog;
ifp->if_flags =
IFF_BROADCAST | IFF_SIMPLEX | IFF_NOTRAILERS | IFF_MULTICAST;
+ IFQ_SET_READY(&ifp->if_snd);
/* Attach the interface. */
if_attach(ifp);
@@ -430,7 +431,7 @@
if ((ifp->if_flags & (IFF_RUNNING|IFF_OACTIVE)) != IFF_RUNNING)
return;
- IF_DEQUEUE(&ifp->if_snd, m0);
+ IFQ_DEQUEUE(&ifp->if_snd, m0);
if (m0 == 0)
return;
#if NBPFILTER > 0
@@ -544,7 +545,7 @@
}
sc->sc_last_timeout = ntimeo;
if (ntimeo == se_poll0 &&
- ifp->if_snd.ifq_head)
+ IFQ_IS_EMPTY(&ifp->if_snd) == 0)
/* Output is pending. Do next recv
* after the next send. */
sc->sc_flags |= SE_NEED_RECV;
Home |
Main Index |
Thread Index |
Old Index