Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/booke/dev Switch to if_percpuq_enqueue() fr...



details:   https://anonhg.NetBSD.org/src/rev/982c0453e569
branches:  trunk
changeset: 958875:982c0453e569
user:      rin <rin%NetBSD.org@localhost>
date:      Sun Jan 24 05:14:55 2021 +0000

description:
Switch to if_percpuq_enqueue() from if_input().

diffstat:

 sys/arch/powerpc/booke/dev/pq3etsec.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (40 lines):

diff -r 5aec20ac31a0 -r 982c0453e569 sys/arch/powerpc/booke/dev/pq3etsec.c
--- a/sys/arch/powerpc/booke/dev/pq3etsec.c     Sun Jan 24 01:44:11 2021 +0000
+++ b/sys/arch/powerpc/booke/dev/pq3etsec.c     Sun Jan 24 05:14:55 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pq3etsec.c,v 1.50 2020/07/06 09:34:16 rin Exp $        */
+/*     $NetBSD: pq3etsec.c,v 1.51 2021/01/24 05:14:55 rin Exp $        */
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pq3etsec.c,v 1.50 2020/07/06 09:34:16 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pq3etsec.c,v 1.51 2021/01/24 05:14:55 rin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -804,8 +804,9 @@
                goto fail_10;
        }
        pq3etsec_sysctl_setup(NULL, sc);
+       if_attach(ifp);
+       if_deferred_start_init(ifp, NULL);
        ether_ifattach(ifp, enaddr);
-       if_register(ifp);
 
        pq3etsec_ifstop(ifp, true);
 
@@ -1613,9 +1614,7 @@
        /*
         * Let's give it to the network subsystm to deal with.
         */
-       int s = splnet();
-       if_input(ifp, m);
-       splx(s);
+       if_percpuq_enqueue(ifp->if_percpuq, m);
 }
 
 static void



Home | Main Index | Thread Index | Old Index