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:
pooka 2008-10-14 17:15:20 +00:00
parent c9a118aa75
commit 2002727b2c
2 changed files with 5 additions and 4 deletions

View File

@ -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.
@ -176,7 +176,7 @@
*/
#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/malloc.h>
@ -225,7 +225,7 @@ u_int softint_bytes = 8192;
u_int softint_timing;
static u_int softint_max;
static kmutex_t softint_lock;
static void *softint_netisrs[32];
static void *softint_netisrs[NETISR_MAX];
/*
* softint_init_isr:

View File

@ -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
@ -112,6 +112,7 @@
#define NETISR_ISDN 26 /* same as AF_E164 */
#define NETISR_NATM 27 /* same as AF_NATM */
#define NETISR_ARP 28 /* same as AF_ARP */
#define NETISR_MAX AF_MAX
#if !defined(_LOCORE) && defined(_KERNEL)
/* XXX Legacy netisr support. */