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/8ad2cdef36db
branches: trunk
changeset: 984613:8ad2cdef36db
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 2250ae4d6704 -r 8ad2cdef36db 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