Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ieee1394 fwip_async_output(): Replace "IF_DEQUEUE() ...



details:   https://anonhg.NetBSD.org/src/rev/e205a057d9ee
branches:  trunk
changeset: 369517:e205a057d9ee
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Aug 20 19:01:31 2022 +0000

description:
fwip_async_output(): Replace "IF_DEQUEUE() -> IF_PREPEND() on failure" with
"IF_POLL() -> IF_DEQUEUE() on success".

diffstat:

 sys/dev/ieee1394/if_fwip.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r a011b442025a -r e205a057d9ee sys/dev/ieee1394/if_fwip.c
--- a/sys/dev/ieee1394/if_fwip.c        Sat Aug 20 18:42:03 2022 +0000
+++ b/sys/dev/ieee1394/if_fwip.c        Sat Aug 20 19:01:31 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_fwip.c,v 1.30 2020/01/29 06:19:39 thorpej Exp $     */
+/*     $NetBSD: if_fwip.c,v 1.31 2022/08/20 19:01:31 thorpej Exp $     */
 /*-
  * Copyright (c) 2004
  *     Doug Rabson
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_fwip.c,v 1.30 2020/01/29 06:19:39 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_fwip.c,v 1.31 2022/08/20 19:01:31 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -552,7 +552,7 @@
 #endif
                        break;
                }
-               IF_DEQUEUE(&ifp->if_snd, m);
+               IF_POLL(&ifp->if_snd, m);
                if (m == NULL) {
                        mutex_exit(&sc->sc_mtx);
                        break;
@@ -663,9 +663,9 @@
                        mutex_enter(&sc->sc_mtx);
                        STAILQ_INSERT_TAIL(&sc->sc_xferlist, xfer, link);
                        mutex_exit(&sc->sc_mtx);
-                       IF_PREPEND(&ifp->if_snd, m);
                        break;
                }
+               IF_DEQUEUE(&ifp->if_snd, m);
                if (error) {
                        /* error */
                        if_statinc(ifp, if_oerrors);



Home | Main Index | Thread Index | Old Index