Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/net/lib/libshmif shmif: support ALTQ



details:   https://anonhg.NetBSD.org/src/rev/4cd56a5539dd
branches:  trunk
changeset: 1022347:4cd56a5539dd
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Wed Jul 14 03:16:06 2021 +0000

description:
shmif: support ALTQ

diffstat:

 sys/rump/net/lib/libshmif/if_shmem.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (43 lines):

diff -r 4305ec5ff9ed -r 4cd56a5539dd sys/rump/net/lib/libshmif/if_shmem.c
--- a/sys/rump/net/lib/libshmif/if_shmem.c      Wed Jul 14 02:18:10 2021 +0000
+++ b/sys/rump/net/lib/libshmif/if_shmem.c      Wed Jul 14 03:16:06 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_shmem.c,v 1.82 2021/06/16 00:21:19 riastradh Exp $  */
+/*     $NetBSD: if_shmem.c,v 1.83 2021/07/14 03:16:06 ozaki-r Exp $    */
 
 /*
  * Copyright (c) 2009, 2010 Antti Kantee.  All Rights Reserved.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_shmem.c,v 1.82 2021/06/16 00:21:19 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_shmem.c,v 1.83 2021/07/14 03:16:06 ozaki-r Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -191,6 +191,7 @@
            IFCAP_CSUM_UDPv4_Rx | IFCAP_CSUM_UDPv4_Tx |
            IFCAP_CSUM_TCPv6_Rx | IFCAP_CSUM_TCPv6_Tx |
            IFCAP_CSUM_UDPv6_Rx | IFCAP_CSUM_UDPv6_Tx;
+       IFQ_SET_READY(&ifp->if_snd);
 
        mutex_init(&sc->sc_mtx, MUTEX_DEFAULT, IPL_NONE);
        cv_init(&sc->sc_cv, "shmifcv");
@@ -206,6 +207,7 @@
        }
 #endif
 
+       if_deferred_start_init(ifp, NULL);
        ether_ifattach(ifp, enaddr);
        if_register(ifp);
 
@@ -545,7 +547,7 @@
        ifp->if_flags |= IFF_OACTIVE;
 
        for (;;) {
-               IF_DEQUEUE(&ifp->if_snd, m);
+               IFQ_DEQUEUE(&ifp->if_snd, m);
                if (m == NULL)
                        break;
 



Home | Main Index | Thread Index | Old Index