Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/gemini gpn_ifstart(): Replace "IF_DEQUEUE() -> ...
details: https://anonhg.NetBSD.org/src/rev/051c8ab4b3d9
branches: trunk
changeset: 369514:051c8ab4b3d9
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sat Aug 20 18:36:16 2022 +0000
description:
gpn_ifstart(): Replace "IF_DEQUEUE() -> IF_PREPEND() on failure" with
"IF_POLL() -> IF_DEQUEUE() on success".
diffstat:
sys/arch/arm/gemini/if_gpn.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (39 lines):
diff -r 2427f48f7a95 -r 051c8ab4b3d9 sys/arch/arm/gemini/if_gpn.c
--- a/sys/arch/arm/gemini/if_gpn.c Sat Aug 20 18:35:50 2022 +0000
+++ b/sys/arch/arm/gemini/if_gpn.c Sat Aug 20 18:36:16 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_gpn.c,v 1.14 2020/02/01 21:45:11 thorpej Exp $ */
+/* $NetBSD: if_gpn.c,v 1.15 2022/08/20 18:36:16 thorpej Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -32,7 +32,7 @@
#include "opt_gemini.h"
-__KERNEL_RCSID(0, "$NetBSD: if_gpn.c,v 1.14 2020/02/01 21:45:11 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_gpn.c,v 1.15 2022/08/20 18:36:16 thorpej Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -363,7 +363,7 @@
break;
}
- IF_DEQUEUE(&ifp->if_snd, m);
+ IF_POLL(&ifp->if_snd, m);
if (!m)
break;
@@ -396,10 +396,10 @@
*/
if (sc->sc_free < count
|| sc->sc_txactive + count > MAX_TXACTIVE) {
- IF_PREPEND(&ifp->if_snd, m);
ifp->if_flags |= IFF_OACTIVE;
return;
}
+ IF_DEQUEUE(&ifp->if_snd, m);
bpf_mtap(ifp, m, BPF_D_OUT);
#ifdef GPNDEBUG
Home |
Main Index |
Thread Index |
Old Index