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 Use if_percpuq_enqueue, not if_input



details:   https://anonhg.NetBSD.org/src/rev/535ffb7436cd
branches:  trunk
changeset: 349317:535ffb7436cd
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Tue Dec 06 07:09:38 2016 +0000

description:
Use if_percpuq_enqueue, not if_input

Because gmac_hwqueue_rxconsume is called in hardware interrupt.

diffstat:

 sys/arch/arm/gemini/gemini_gmac.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a806ec2ae049 -r 535ffb7436cd sys/arch/arm/gemini/gemini_gmac.c
--- a/sys/arch/arm/gemini/gemini_gmac.c Tue Dec 06 07:01:47 2016 +0000
+++ b/sys/arch/arm/gemini/gemini_gmac.c Tue Dec 06 07:09:38 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gemini_gmac.c,v 1.9 2016/06/10 13:27:11 ozaki-r Exp $ */
+/* $NetBSD: gemini_gmac.c,v 1.10 2016/12/06 07:09:38 ozaki-r Exp $ */
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -49,7 +49,7 @@
 
 #include <sys/gpio.h>
 
-__KERNEL_RCSID(0, "$NetBSD: gemini_gmac.c,v 1.9 2016/06/10 13:27:11 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gemini_gmac.c,v 1.10 2016/12/06 07:09:38 ozaki-r Exp $");
 
 #define        SWFREEQ_DESCS   256     /* one page worth */
 #define        HWFREEQ_DESCS   256     /* one page worth */
@@ -856,7 +856,7 @@
                m->m_data += 2;
                KASSERT(m_length(m) == m->m_pkthdr.len);
                bpf_mtap(ifp, m);
-               if_input(ifp, m);
+               if_percpuq_enqueue(ifp->if_percpuq, m);
                break;
        default:
                ifp->if_ierrors++;



Home | Main Index | Thread Index | Old Index