Commit Graph

28 Commits

Author SHA1 Message Date
jdolecek
32313a3411 pull only "opt_altq_enabled.h" in if_altq.h, and include altqconf.h
explicitly in single file which implicitly needed it (altq_conf.c)

this avoids pulling in implicit dependency on <sys/conf.h> to every
file including <net/if.h> (which includes <altq/if_altq.h> to get altq
related structures)
2002-09-22 20:09:15 +00:00
gehenna
44802dc550 make this compile. 2002-09-07 11:56:33 +00:00
gehenna
77a6b82b27 Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.
2002-09-06 13:18:43 +00:00
wiz
e00173a7f2 Spell 'should' correctly. 2002-07-18 11:59:06 +00:00
itojun
bc95d762f8 define ALTQ_NOPCC if i386 and !I586_CPU and !I686_CPU.
otherwise, kernel fails to compile.
report by "Federico G. Schwindt" <fgsch@olimpo.com.br>
2002-05-31 06:52:00 +00:00
itojun
ea750a3018 sync with KAME.
- don't MALLOC() with M_WAITOK in the spl block.
  move the allocation before splnet().
- when we reset vt of a class, reset the runtime service curve as well.
- don't use max() to compare 64 bit values.
2002-05-18 22:53:25 +00:00
thorpej
4762adb809 Move ALTQ configuration definitions into altq/files.altq 2002-04-16 21:27:13 +00:00
itojun
ac36f7cb2c bring in latest ALTQ from kjc. ALTQify some of the drivers. 2002-03-05 04:12:57 +00:00
lukem
1b455fb019 don't need <sys/types.h> when including <sys/param.h> 2001-11-15 06:37:15 +00:00
lukem
a13b5687d9 add RCSIDs 2001-11-12 23:08:56 +00:00
itojun
8008d16e68 avoid divide-by-zero when the specified bandwidth is less than 8bps.
OpenBSD PR: kernel/2150
2001-10-26 04:59:18 +00:00
wiz
456dff6cb8 Spell 'occurred' with two 'r's. 2001-09-16 16:34:23 +00:00
itojun
1c48caeb1e fix IPv4 fragment handling in the classifier.
report and fix by "Paul Koster" <list@kosteronline.net>
sync with kame
2001-09-10 06:34:57 +00:00
itojun
de250bca38 copyright clarification (the skeleton file is in public domain) 2001-08-22 08:54:51 +00:00
toshii
4866f1a22b Fix typo. s/extention/extension/ 2001-07-05 08:38:24 +00:00
thorpej
5523a584c5 HZ -> hz 2001-06-05 05:12:18 +00:00
mrg
67afbd6270 use _KERNEL_OPT 2001-05-30 11:57:16 +00:00
thorpej
bf2dcec4f5 Remove the use of splimp() from the NetBSD kernel. splnet()
and only splnet() is allowed for the protection of data structures
used by network devices.
2001-04-13 23:29:55 +00:00
thorpej
66c3288ad5 From KAME:
kjc         2001/02/09 16:20:40 JST

  Modified files:
    kame/sys/altq        altq_classq.h altq_rmclass.c
  Log:
  clear m_nextpkt at dequeueing a packet.

  this is not needed in the current code but
  requested by Lars Eggert <larse@ISI.EDU> for
  their experiment to use altq for inbound processing.

  Revision  Changes    Path
  1.4       +4 -1      kame/kame/sys/altq/altq_classq.h
  1.10      +4 -1      kame/kame/sys/altq/altq_rmclass.c
2001-04-06 00:44:46 +00:00
itojun
1bfba9ce6b remove variable names from prototype. sync with kame. 2001-01-29 20:02:48 +00:00
thorpej
ccf928446b Install ALTQ header files. 2000-12-15 01:20:32 +00:00
thorpej
58816d8ab4 Saner glue into cdevsw. 2000-12-14 23:50:43 +00:00
thorpej
ea9f3d531c Change the way ALTQ is enabled in the kernel, as there is an
annoying include file name clash.
2000-12-14 22:36:48 +00:00
thorpej
9f416d534c "KERNEL" doesn't belong in headers. 2000-12-14 18:51:10 +00:00
thorpej
f5370ce2cc Don't need <vm/vm.h> (it doesn't exist in -current). 2000-12-14 18:08:08 +00:00
thorpej
d1c86a60e0 No need to wrap these in #ifdef ALTQ -- they're not even included
if ALTQ is not configured into the kernel.
2000-12-14 18:07:30 +00:00
thorpej
2dfc514990 Add NetBSD RCS IDs. 2000-12-14 08:49:49 +00:00
thorpej
68de460f39 Import ALTQ from KAME. 2000-12-14 08:42:28 +00:00