Give maximum level of network softinterrupts a symbolic constant
(which happened to get bumbed from 32 to 33 (AF_MAX) now).
This commit is contained in:
parent
c9a118aa75
commit
2002727b2c
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: kern_softint.c,v 1.22 2008/05/31 21:26:01 ad Exp $ */
|
/* $NetBSD: kern_softint.c,v 1.23 2008/10/14 17:15:20 pooka Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
|
* Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
|
||||||
@ -176,7 +176,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: kern_softint.c,v 1.22 2008/05/31 21:26:01 ad Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: kern_softint.c,v 1.23 2008/10/14 17:15:20 pooka Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/malloc.h>
|
#include <sys/malloc.h>
|
||||||
@ -225,7 +225,7 @@ u_int softint_bytes = 8192;
|
|||||||
u_int softint_timing;
|
u_int softint_timing;
|
||||||
static u_int softint_max;
|
static u_int softint_max;
|
||||||
static kmutex_t softint_lock;
|
static kmutex_t softint_lock;
|
||||||
static void *softint_netisrs[32];
|
static void *softint_netisrs[NETISR_MAX];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* softint_init_isr:
|
* softint_init_isr:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: netisr.h,v 1.37 2007/12/03 15:34:33 ad Exp $ */
|
/* $NetBSD: netisr.h,v 1.38 2008/10/14 17:15:20 pooka Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1980, 1986, 1989, 1993
|
* Copyright (c) 1980, 1986, 1989, 1993
|
||||||
@ -112,6 +112,7 @@
|
|||||||
#define NETISR_ISDN 26 /* same as AF_E164 */
|
#define NETISR_ISDN 26 /* same as AF_E164 */
|
||||||
#define NETISR_NATM 27 /* same as AF_NATM */
|
#define NETISR_NATM 27 /* same as AF_NATM */
|
||||||
#define NETISR_ARP 28 /* same as AF_ARP */
|
#define NETISR_ARP 28 /* same as AF_ARP */
|
||||||
|
#define NETISR_MAX AF_MAX
|
||||||
|
|
||||||
#if !defined(_LOCORE) && defined(_KERNEL)
|
#if !defined(_LOCORE) && defined(_KERNEL)
|
||||||
/* XXX Legacy netisr support. */
|
/* XXX Legacy netisr support. */
|
||||||
|
Loading…
Reference in New Issue
Block a user