dragonfly.git
15 years agoobjcache(9): Fix wrong function name in the manual page.
Sascha Wildner [Sat, 28 Mar 2009 07:30:06 +0000 (08:30 +0100)]
objcache(9): Fix wrong function name in the manual page.

15 years agovkernel(7): Start sentences on new lines.
Sascha Wildner [Fri, 27 Mar 2009 21:27:38 +0000 (22:27 +0100)]
vkernel(7): Start sentences on new lines.

15 years agomakekey(8): Ansify and remove 'register'.
Sascha Wildner [Fri, 27 Mar 2009 21:02:01 +0000 (22:02 +0100)]
makekey(8): Ansify and remove 'register'.

15 years agomknetid(8): Raise WARNS to 6 and fix warnings (also -Wold-style-definition).
Sascha Wildner [Fri, 27 Mar 2009 20:57:11 +0000 (21:57 +0100)]
mknetid(8): Raise WARNS to 6 and fix warnings (also -Wold-style-definition).

15 years agoddb(4): mention 'show ktr' command
Stathis Kamperis [Sat, 28 Mar 2009 18:02:33 +0000 (18:02 +0000)]
ddb(4): mention 'show ktr' command

15 years agoipflow: Add macros to check ipflow refcnt, which is more expressive
Sepherosa Ziehau [Sat, 28 Mar 2009 06:20:28 +0000 (14:20 +0800)]
ipflow: Add macros to check ipflow refcnt, which is more expressive

15 years agoipflow: React to local address change quickly.
Sepherosa Ziehau [Sat, 28 Mar 2009 04:25:50 +0000 (12:25 +0800)]
ipflow: React to local address change quickly.

15 years agoipflow: Flush ipflow if a new route is successfully added.
Sepherosa Ziehau [Sat, 28 Mar 2009 03:02:45 +0000 (11:02 +0800)]
ipflow: Flush ipflow if a new route is successfully added.

ipflow suffers same problem as described in FreeBSD-PR: kern/10778
Though the time of mis-routing will not be "arbitrarily long time"
for intermittent packet flow (thanks to the ipflow timeout), it
still could be quite long for a constant packet flow.

15 years agoAdd a build system for amd64 build/test environments in /usr/src/test/amd64
Matthew Dillon [Sat, 28 Mar 2009 03:32:37 +0000 (20:32 -0700)]
Add a build system for amd64 build/test environments in /usr/src/test/amd64

This build system will fetch, compile, and install qemu, do all
necessary buildworlds and buildkernels, including the amd64 cross-builds,
and generate a fully bootable root.img.  The Makefile also includes a
run target to run qemu on the image.

It can take a few hours to build the whole mess due to the buildworlds but
it's a hit-the-start-button-and-forget build which should prove useful.

WARNING: Initial commit only.  qemu 0.10.{0,1} is seriously broken and is not
yet able to fully-boot either a 32 or 64 bit kernel without seg-faulting.

15 years agoMisc fixes for cross-building amd64.
Matthew Dillon [Sat, 28 Mar 2009 03:28:41 +0000 (20:28 -0700)]
Misc fixes for cross-building amd64.

Use the proper IMAKEENV instead of CROSSENV when installing a 64 bit
kernel via installkernel.  IMAKEENV supplies the proper cross-building
path so objcopy works properly.

Remove the -mcmodel option from the compilation of genassym.c.  This
utility is compiled for the host OS, not the target.

Add MACHINE_ARCH, MACHINE, and MACHINE_PLATFORM to the module build
called from the kernel build.

Add -fno-omit-frame-pointer to kmod.mk for amd64 builds (from FreeBSD).

15 years agoFix improper directory following when 'cpu' softlink already exists.
Matthew Dillon [Fri, 27 Mar 2009 22:24:46 +0000 (15:24 -0700)]
Fix improper directory following when 'cpu' softlink already exists.

Change ln -fs to ln -hfs for the 'cpu' directory link.  Without this
the ln command will create a cpu/cpu softlink instead of replacing the
cpu softlink.

This also fixes a build failure which will occur if the world
sources are mounted read-only.

15 years agoMake the jg_tos_ok debug check amd64-specific only and fix compiler warnings.
Matthew Dillon [Fri, 27 Mar 2009 17:08:14 +0000 (10:08 -0700)]
Make the jg_tos_ok debug check amd64-specific only and fix compiler warnings.

15 years agoAdjust the KTR code to use cache-aligned per-cpu structures.
Matthew Dillon [Fri, 27 Mar 2009 17:05:46 +0000 (10:05 -0700)]
Adjust the KTR code to use cache-aligned per-cpu structures.

* Create a cache-aligned per-cpu structure containing per-cpu information.

* Increase the __cachealign constants from 32 bytes to 64 bytes
  (512 bit cache line).

* Adjust ktrdump to handle both the old and new kernel structures.

15 years agoAdjust vnconfig recommendation when creating a new rootimg.
Matthew Dillon [Fri, 27 Mar 2009 16:03:10 +0000 (09:03 -0700)]
Adjust vnconfig recommendation when creating a new rootimg.

When using a HAMMER filesystem it makes no sense to pre-zero the rootimg
before mounting and populating it, because HAMMER will not reuse the
underlying data blocks anyway.

15 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Fri, 27 Mar 2009 16:01:35 +0000 (09:01 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

15 years agoFix DDB's 'show ktr' command - improper panic and improper scan
Matthew Dillon [Fri, 27 Mar 2009 16:00:05 +0000 (09:00 -0700)]
Fix DDB's 'show ktr' command - improper panic and improper scan

DDB's 'show ktr' command was using the wrong index to check the KTR
buffers and also improperly panicing when no KTR entries could be found.

15 years agovkernel(7): mention how to autologin as root
Stathis Kamperis [Fri, 27 Mar 2009 14:43:02 +0000 (14:43 +0000)]
vkernel(7): mention how to autologin as root

Approved-by: swildner@, aggelos@
15 years agobootpd(8): Remove 'register' and P() and silence -Wold-style-definition.
Sascha Wildner [Fri, 27 Mar 2009 12:46:52 +0000 (13:46 +0100)]
bootpd(8): Remove 'register' and P() and silence -Wold-style-definition.

15 years agoFix a few typos.
Sascha Wildner [Fri, 27 Mar 2009 10:13:48 +0000 (11:13 +0100)]
Fix a few typos.

15 years agoRemove old README.amd64
Sascha Wildner [Fri, 27 Mar 2009 07:54:00 +0000 (08:54 +0100)]
Remove old README.amd64

15 years agobuild(7): Add some lines about TARGET_PLATFORM.
Sascha Wildner [Fri, 27 Mar 2009 07:51:55 +0000 (08:51 +0100)]
build(7): Add some lines about TARGET_PLATFORM.

15 years agokernconf(5): Add some words about pc64.
Sascha Wildner [Fri, 27 Mar 2009 07:50:28 +0000 (08:50 +0100)]
kernconf(5): Add some words about pc64.

15 years agoAdd support for devctl(4) into MAKEDEV.
Hasso Tepper [Thu, 26 Mar 2009 08:33:40 +0000 (10:33 +0200)]
Add support for devctl(4) into MAKEDEV.

15 years agoAdd a -O option: force one volume.
Hasso Tepper [Fri, 27 Mar 2009 08:32:47 +0000 (10:32 +0200)]
Add a -O option: force one volume.

This causes pax to not prompt for a new volume upon premature end-of-volume
(e.g. broken pipe).  This is especially useful in automated environments
where error recovery cannot be performed by a human.

Unbreaks a lot of pkgsrc packages.

Obtained-from: NeBSD

15 years agomd5(1): Raise WARNS to 6.
Sascha Wildner [Thu, 26 Mar 2009 11:01:44 +0000 (12:01 +0100)]
md5(1): Raise WARNS to 6.

15 years agoSync DRM code with FreeBSD trunk rev 190433.
Hasso Tepper [Thu, 26 Mar 2009 08:34:49 +0000 (10:34 +0200)]
Sync DRM code with FreeBSD trunk rev 190433.

15 years agoFix a recently introduced compile time error w/ IPSEC.
Matthew Dillon [Fri, 27 Mar 2009 02:52:05 +0000 (19:52 -0700)]
Fix a recently introduced compile time error w/ IPSEC.

Submitted-by: Sepherosa Ziehau <sephe@dragonflybsd.org>
15 years agocommitter(7): fix typo
Stathis Kamperis [Thu, 26 Mar 2009 15:22:55 +0000 (15:22 +0000)]
committer(7): fix typo

15 years agoip_forward: Don't cache IP forwarding route.
Sepherosa Ziehau [Thu, 26 Mar 2009 12:57:19 +0000 (20:57 +0800)]
ip_forward: Don't cache IP forwarding route.

There are two problems with this cached route:
- Any newly created route will nuke this cached route.  If any new
  route was created when the ip_output() was put to sleep due to
  contention on the output path, then the rtentry of this cached
  route would be ripped away behind our back.
  The reported panic was caused by this problem.  The call path:
  ip_forward()->ip_output()->ipflow_create(); the cached route was
  ripped before ipflow_create() was called.
- All network threads on the same CPU share this cached route:
  o  Network thread1 and network thread2 are on the same CPU
  o  Network thread1 uses this cached route to do the ip_output()
  o  Network thread1 is put to sleep due to contention on the
     output path
  o  Network thread2 uses this cached route to do the ip_output()
  o  Now network thread1 was scheduled ...

If we ever want to cached previously used route, we will have to
use per-thread route cache.

15 years agoem/emx(4): Add 82571EB Bypass to the supported device list.
Sepherosa Ziehau [Thu, 26 Mar 2009 10:46:44 +0000 (18:46 +0800)]
em/emx(4): Add 82571EB Bypass to the supported device list.

Reported/Tested-by: ruse39 on EFnet #dragonflybsd

15 years agoip_dooptions: Don't abuse ipforward_rt
Sepherosa Ziehau [Wed, 25 Mar 2009 11:59:15 +0000 (19:59 +0800)]
ip_dooptions: Don't abuse ipforward_rt

15 years agocsh(1): Raise WARNS to 2.
Sascha Wildner [Thu, 26 Mar 2009 10:54:57 +0000 (11:54 +0100)]
csh(1): Raise WARNS to 2.

15 years agodevices.conf(5): mdoc cleanup
Sascha Wildner [Thu, 26 Mar 2009 09:20:04 +0000 (10:20 +0100)]
devices.conf(5): mdoc cleanup

15 years agostdint(7): mdoc cleanup
Sascha Wildner [Thu, 26 Mar 2009 09:15:15 +0000 (10:15 +0100)]
stdint(7): mdoc cleanup

15 years agodevelopment(7): Mention mirrors plus some minor fixes.
Sascha Wildner [Thu, 26 Mar 2009 08:59:41 +0000 (09:59 +0100)]
development(7): Mention mirrors plus some minor fixes.

15 years agocommitter(7): Mention remote entry for crater and improve wording a bit.
Sascha Wildner [Thu, 26 Mar 2009 08:58:55 +0000 (09:58 +0100)]
committer(7): Mention remote entry for crater and improve wording a bit.

15 years agoTest commit@ mail
Stathis Kamperis [Wed, 25 Mar 2009 19:57:40 +0000 (19:57 +0000)]
Test commit@ mail

15 years agoTest commit bit
Stathis Kamperis [Wed, 25 Mar 2009 19:49:02 +0000 (19:49 +0000)]
Test commit bit

15 years agotset(1): Raise WARNS to 6 and silence all warnings.
Sascha Wildner [Tue, 24 Mar 2009 18:23:33 +0000 (19:23 +0100)]
tset(1): Raise WARNS to 6 and silence all warnings.

15 years agopctrack(8): Raise WARNS to 6 and silence all warnings.
Sascha Wildner [Tue, 24 Mar 2009 18:33:11 +0000 (19:33 +0100)]
pctrack(8): Raise WARNS to 6 and silence all warnings.

15 years agomptable(1): Make dumping the raw MP table an option.
Sascha Wildner [Tue, 24 Mar 2009 10:11:37 +0000 (11:11 +0100)]
mptable(1): Make dumping the raw MP table an option.

15 years agomtree(8): Silence warnings when compiling with -DBOOTSTRAPPING.
Sascha Wildner [Tue, 24 Mar 2009 10:38:04 +0000 (11:38 +0100)]
mtree(8): Silence warnings when compiling with -DBOOTSTRAPPING.

15 years agoRemove the formatted version of iwicontrol(8) too per 'make upgrade.
Sascha Wildner [Tue, 24 Mar 2009 10:10:23 +0000 (11:10 +0100)]
Remove the formatted version of iwicontrol(8) too per 'make upgrade.

15 years agoSync zoneinfo database with tzdata2009d from elsie.
Sascha Wildner [Tue, 24 Mar 2009 08:12:45 +0000 (09:12 +0100)]
Sync zoneinfo database with tzdata2009d from elsie.

africa:         8.17 -> 8.18
asia:           8.25 -> 8.26
southamerica:   8.33 -> 8.34

* Morocco will observe DST from June 1, 2009 0:00 to August 21, 2009 0:00

* Tunisia will not observe DST this year.

* Syria will start DST one week earlier this year (March 27, 0:00)

* San Luis, Argentina, decided to observe standard Argentine DST in the
  future.

15 years agoshare/misc/iso639: Sync with Library of Congress list.
Sascha Wildner [Tue, 24 Mar 2009 07:45:22 +0000 (08:45 +0100)]
share/misc/iso639: Sync with Library of Congress list.

15 years agoMiscellaneous mdoc fixes.
Sascha Wildner [Mon, 23 Mar 2009 11:19:08 +0000 (12:19 +0100)]
Miscellaneous mdoc fixes.

15 years agomount_std(8): Raise WARNS to 6 and silence all warnings.
Sascha Wildner [Sun, 22 Mar 2009 23:35:52 +0000 (00:35 +0100)]
mount_std(8): Raise WARNS to 6 and silence all warnings.

15 years agogpt(8): Raise WARNS to 6.
Sascha Wildner [Sun, 22 Mar 2009 23:30:00 +0000 (00:30 +0100)]
gpt(8): Raise WARNS to 6.

15 years agoccdconfig(8): Raise WARNS to 6 and silence all warnings.
Sascha Wildner [Sun, 22 Mar 2009 23:27:12 +0000 (00:27 +0100)]
ccdconfig(8): Raise WARNS to 6 and silence all warnings.

15 years agoppp(8): Raise WARNS to 1.
Sascha Wildner [Sun, 22 Mar 2009 23:10:16 +0000 (00:10 +0100)]
ppp(8): Raise WARNS to 1.

15 years agoppp(8): pcomp->slots (u_char) can't be higher than MAX_VJ_STATES (255).
Sascha Wildner [Sun, 22 Mar 2009 23:09:32 +0000 (00:09 +0100)]
ppp(8): pcomp->slots (u_char) can't be higher than MAX_VJ_STATES (255).

15 years agoRemove usr.sbin/dpt which was never built.
Sascha Wildner [Sun, 22 Mar 2009 22:39:18 +0000 (23:39 +0100)]
Remove usr.sbin/dpt which was never built.

If someone needs it, it can be revived later.

15 years agokernbb(8): Raise WARNS to 6 and silence all warnings.
Sascha Wildner [Sun, 22 Mar 2009 22:32:34 +0000 (23:32 +0100)]
kernbb(8): Raise WARNS to 6 and silence all warnings.

15 years agomtree(8): Raise WARNS to 6 and silence all warnings.
Sascha Wildner [Sun, 22 Mar 2009 22:23:38 +0000 (23:23 +0100)]
mtree(8): Raise WARNS to 6 and silence all warnings.

15 years agopwd_mkdb(8): Raise WARNS to 6.
Sascha Wildner [Sun, 22 Mar 2009 21:39:19 +0000 (22:39 +0100)]
pwd_mkdb(8): Raise WARNS to 6.

15 years agovnconfig: raise WARNS and fix resulting warnings
Stathis Kamperis [Mon, 2 Mar 2009 21:25:33 +0000 (21:25 +0000)]
vnconfig: raise WARNS and fix resulting warnings

15 years agovnconfig -l: handle gracefully missing regular file
Stathis Kamperis [Mon, 2 Mar 2009 09:16:19 +0000 (09:16 +0000)]
vnconfig -l: handle gracefully missing regular file

Check if VNIOCGET failed to retrieve the path of the regular
file, that is associated with the respective vn device. If so,
treat this kind of error as non-fatal (with respect to the rest
of the vn devices).

15 years agovnconfig: cleanup a bit
Stathis Kamperis [Mon, 2 Mar 2009 21:26:14 +0000 (21:26 +0000)]
vnconfig: cleanup a bit

- constify
- remove bogus cast
- style(9)
- fix typo in comment

15 years agolocaltime(3): Switch from GMT to UTC as the default time zone string.
Sascha Wildner [Sun, 22 Mar 2009 18:22:53 +0000 (19:22 +0100)]
localtime(3): Switch from GMT to UTC as the default time zone string.

15 years agoUse .Dv for ioctls in several manual pages.
Sascha Wildner [Sun, 22 Mar 2009 18:12:57 +0000 (19:12 +0100)]
Use .Dv for ioctls in several manual pages.

15 years agoArgh, this wasn't meant to be committed.
Hasso Tepper [Sun, 22 Mar 2009 12:26:08 +0000 (14:26 +0200)]
Argh, this wasn't meant to be committed.

15 years agoFix target machine define in compiler.
Hasso Tepper [Sun, 22 Mar 2009 09:49:50 +0000 (11:49 +0200)]
Fix target machine define in compiler.

Make(1) doesn't like "target" as a name for variable, seems.

15 years agostat(2): sort error codes
Stathis Kamperis [Sat, 7 Mar 2009 14:55:41 +0000 (14:55 +0000)]
stat(2): sort error codes

15 years agottyname(3): Bump .Dd
Sascha Wildner [Sun, 22 Mar 2009 09:10:10 +0000 (10:10 +0100)]
ttyname(3): Bump .Dd

15 years agottyname(3): mention error codes
Stathis Kamperis [Sat, 7 Mar 2009 17:57:26 +0000 (17:57 +0000)]
ttyname(3): mention error codes

15 years agoisatty(3): mention return values and error codes
Stathis Kamperis [Sat, 7 Mar 2009 15:58:30 +0000 (15:58 +0000)]
isatty(3): mention return values and error codes

15 years agoComment on the purpose of _Exit()
Stathis Kamperis [Sun, 8 Mar 2009 04:44:50 +0000 (04:44 +0000)]
Comment on the purpose of _Exit()

15 years agostdint(7): Update FreeBSD CVS ID and bump .Dd.
Sascha Wildner [Sun, 22 Mar 2009 09:03:56 +0000 (10:03 +0100)]
stdint(7): Update FreeBSD CVS ID and bump .Dd.

15 years agostdint(7): import manual page from FreeBSD
Stathis Kamperis [Sun, 8 Mar 2009 05:29:04 +0000 (05:29 +0000)]
stdint(7): import manual page from FreeBSD

Also document macros for minimum-width integer constants
and macros for greatest-width integer constants, which
aren't mentioned in the original manual page.

15 years agoflockfile(3): Update FreeBSD CVS ID, bump .Dd and add some references.
Sascha Wildner [Sun, 22 Mar 2009 09:01:29 +0000 (10:01 +0100)]
flockfile(3): Update FreeBSD CVS ID, bump .Dd and add some references.

15 years agogetc(3)/putc(3): Bump .Dd
Sascha Wildner [Sun, 22 Mar 2009 08:57:41 +0000 (09:57 +0100)]
getc(3)/putc(3): Bump .Dd

15 years agoflockfile(3): import manual page from FreeBSD
Stathis Kamperis [Sun, 8 Mar 2009 06:55:22 +0000 (06:55 +0000)]
flockfile(3): import manual page from FreeBSD

15 years agosysconf(3): document _SC_PAGESIZE sysconf option
Stathis Kamperis [Sun, 8 Mar 2009 10:49:18 +0000 (10:49 +0000)]
sysconf(3): document _SC_PAGESIZE sysconf option

15 years agogetc(3) and putc(3): document xxx_unlocked() functions from FreeBSD
Stathis Kamperis [Tue, 10 Mar 2009 19:22:26 +0000 (19:22 +0000)]
getc(3) and putc(3): document xxx_unlocked() functions from FreeBSD

- getc_unlocked()
- getchar_unlocked()
- putc_unlocked()
- putchar_unlocked()

15 years agogetc(3) and putc(3): macros are functions now
Stathis Kamperis [Tue, 10 Mar 2009 19:36:31 +0000 (19:36 +0000)]
getc(3) and putc(3): macros are functions now

15 years agoaio_write(2): fix capital letter in the middle of sentence
Stathis Kamperis [Wed, 11 Mar 2009 11:54:53 +0000 (11:54 +0000)]
aio_write(2): fix capital letter in the middle of sentence

15 years agoInstall ciss(4) headers to /usr/include so that userland can find cissio.h.
Sascha Wildner [Sun, 22 Feb 2009 12:21:57 +0000 (13:21 +0100)]
Install ciss(4) headers to /usr/include so that userland can find cissio.h.

15 years agolocaltime(3) & zic(8): Clean up definitions a bit.
Sascha Wildner [Sun, 22 Mar 2009 08:24:30 +0000 (09:24 +0100)]
localtime(3) & zic(8): Clean up definitions a bit.

15 years agonetisr: Set M_HASH and pkthdr.hash if software calculates the packet hash.
Sepherosa Ziehau [Sun, 22 Mar 2009 08:10:42 +0000 (16:10 +0800)]
netisr: Set M_HASH and pkthdr.hash if software calculates the packet hash.

15 years agoemx(4): Pass packet info to ether_input_chain()
Sepherosa Ziehau [Sun, 22 Mar 2009 07:45:14 +0000 (15:45 +0800)]
emx(4): Pass packet info to ether_input_chain()

15 years agoemx(4): Correct RSS configuration.
Sepherosa Ziehau [Sun, 22 Mar 2009 04:59:15 +0000 (12:59 +0800)]
emx(4): Correct RSS configuration.

15 years agoether_input: Gather some RSS debug statistics.
Sepherosa Ziehau [Sat, 21 Mar 2009 12:36:28 +0000 (20:36 +0800)]
ether_input: Gather some RSS debug statistics.

15 years agojme(4): Don't deliver packet info if the packet has unknown layer3
Sepherosa Ziehau [Sat, 21 Mar 2009 11:48:13 +0000 (19:48 +0800)]
jme(4): Don't deliver packet info if the packet has unknown layer3
protocol and is not a fragment.

15 years agojme(4): Allow stats to be writable
Sepherosa Ziehau [Sat, 21 Mar 2009 11:30:52 +0000 (19:30 +0800)]
jme(4): Allow stats to be writable

15 years agoip_demux: Add ip_mport_pktinfo() to map IP packets using packet info
Sepherosa Ziehau [Sat, 21 Mar 2009 10:38:44 +0000 (18:38 +0800)]
ip_demux: Add ip_mport_pktinfo() to map IP packets using packet info

15 years agojme(4): Pass packet info to ether_input_chain()
Sepherosa Ziehau [Sat, 21 Mar 2009 09:49:04 +0000 (17:49 +0800)]
jme(4): Pass packet info to ether_input_chain()

15 years agojme(4): Disable TXCSUM by default to improve bulk data transmit performance
Sepherosa Ziehau [Sat, 21 Mar 2009 06:11:20 +0000 (14:11 +0800)]
jme(4): Disable TXCSUM by default to improve bulk data transmit performance

It looks like when the hardware does the TX checksum in the internal TX
FIFO, the DMA read logic is kinda changed; the bursty read effect seems
to get discounted.

After the TX csum offloading is disabled, the device bulk data transmit
speed finally reach gigE line speed and the tiny packets transmit
performance is only reduced marginally (-6Kpps~-8Kpps).

15 years agotoeplitz: Promote net/toeplitz.c to 'standard' file
Sepherosa Ziehau [Sat, 21 Mar 2009 05:06:48 +0000 (13:06 +0800)]
toeplitz: Promote net/toeplitz.c to 'standard' file

Major part of net/toeplitz.c is not compiled if RSS kernel option
is not specified; only necessary symbols for device drivers are
compiled, so I don't need to put "#ifdef RSS" all over the device
drivers code.

15 years agotoeplitz: Hash function renaming
Sepherosa Ziehau [Sat, 21 Mar 2009 04:19:27 +0000 (12:19 +0800)]
toeplitz: Hash function renaming

toeplitz_hash     -> toeplitz_rawhash_addr
toeplitz_hash_tcp -> toeplitz_rawhash_addrport

Add toeplitz_hash() which mask the raw Toeplitz hash value with
ncpus2_mask.  This function will be used by device drivers too.

15 years agojme(4): Don't mess with M_PKTHDR
Sepherosa Ziehau [Sat, 21 Mar 2009 03:43:46 +0000 (11:43 +0800)]
jme(4): Don't mess with M_PKTHDR

15 years agoether_input/ktr: Add ether_input_chain end KTR into several proper places.
Sepherosa Ziehau [Sat, 21 Mar 2009 03:10:52 +0000 (11:10 +0800)]
ether_input/ktr: Add ether_input_chain end KTR into several proper places.

15 years agoether_input/rss: Pass packet info to ether_input_chain.
Sepherosa Ziehau [Sat, 21 Mar 2009 02:46:12 +0000 (10:46 +0800)]
ether_input/rss: Pass packet info to ether_input_chain.

- Pass packet info to ether_input_chain(), if netisr_find_pktinfo_port()
  could locate the msgport, then short circuit the rest of the ether_input
  code and dispatch the ethernet packet directly.
- Revoke the pi_hash field in pktinfo and extend the pktinfo_portfn_t to
  accpet an mbuf parameter, so that pktinfo_portfn_t could change the mbuf
  hash value.  e.g. pktinfo_portfn_cpu0() will always set m_pkthdr.hash
  to 0.
- Adjust ether_input_chain() callers accordingly.

15 years agombuf: Add M_HASH mbuf flag and use the 'pad' field in pkthdr as 'hash'
Sepherosa Ziehau [Sat, 21 Mar 2009 01:35:09 +0000 (09:35 +0800)]
mbuf: Add M_HASH mbuf flag and use the 'pad' field in pkthdr as 'hash'

'hash' field in pkthdr is valid iff M_HASH is set.

15 years agoether_input: Factor out ether_dispatch()
Sepherosa Ziehau [Fri, 20 Mar 2009 11:41:09 +0000 (19:41 +0800)]
ether_input: Factor out ether_dispatch()

This function send the ethernet packet to the target msgport or
just queue it to the mbuf chain.

15 years agonetisr: Add pktinfo struct; add new netisr method to find msgport using pktinfo
Sepherosa Ziehau [Fri, 20 Mar 2009 11:17:58 +0000 (19:17 +0800)]
netisr: Add pktinfo struct; add new netisr method to find msgport using pktinfo

The new netisr method, ni_mport_pktinfo, returns NULL if the passed in pktinfo
does not contain enough information to determine the msgport.

15 years agoRename lwkt_portfn_t to pkt_portfn_t
Sepherosa Ziehau [Thu, 19 Mar 2009 11:09:43 +0000 (19:09 +0800)]
Rename lwkt_portfn_t to pkt_portfn_t

Well, this function actually maps a network packet to a lwkt_port

15 years agojme(4): Using code logic to create redirect table.
Sepherosa Ziehau [Wed, 18 Mar 2009 13:11:19 +0000 (21:11 +0800)]
jme(4): Using code logic to create redirect table.

- Avoid using magic number when creating redirect table, apply
  code logic instead.
- Add comment about how the redirect table is filled.

15 years agojme(4): Get key from Toeplitz code
Sepherosa Ziehau [Wed, 18 Mar 2009 12:20:27 +0000 (20:20 +0800)]
jme(4): Get key from Toeplitz code

15 years agotoeplitz: Add toeplitz_get_key() and nuke toeplitz_get_keyseed()
Sepherosa Ziehau [Wed, 18 Mar 2009 12:17:42 +0000 (20:17 +0800)]
toeplitz: Add toeplitz_get_key() and nuke toeplitz_get_keyseed()

toeplitz_get_key() hides more implementation details (i.e. key
seed replication) from callers than toeplitz_get_keyseed().

15 years agopax(1): Remove argument names from prototypes.
Sascha Wildner [Wed, 18 Mar 2009 10:39:52 +0000 (11:39 +0100)]
pax(1): Remove argument names from prototypes.