Commit Graph

130890 Commits

Author SHA1 Message Date
bad 2a256a96ac Interfaces that do checksum offloading indicate the checksum status of
received packets in csum_flags in the packet header.  Packets that are
forwarded over the bridge need to have csum_flags cleared before being
put on the output queue.  Do so in bridge_enqueue().

Discussed with Jason Thorpe.

Fixes PR kern/27007 and the first part of PR kern/21831.
2004-10-06 10:01:00 +00:00
scw ca40f65ce1 Apply patch provided by Hiroki Nakano in PR kern/27159 to fix
compilation with DEBUG_DMA defined.
2004-10-06 08:59:40 +00:00
skrll d42dfb7727 Correct arg name in comment. 2004-10-06 08:55:27 +00:00
dbj f4bfaafba1 fix typo: s/sate/state/ 2004-10-06 05:57:33 +00:00
thorpej 402ff2cf29 Slight simplification to IFA_STATS handling. 2004-10-06 05:42:24 +00:00
thorpej 57024fd924 Define a WM_MAXTXDMA constant to represent the largest Tx DMA any given
packet will require.
2004-10-06 05:29:51 +00:00
thorpej 7ee6d38e39 Sync the Tx DMA map after offload stuff has been dealt with, since the
offload set-up digs into the packet.
2004-10-06 05:23:05 +00:00
lukem db0bfa2161 improve description of struct statvfs members 2004-10-06 04:30:04 +00:00
itojun 6c66b599bb use ifunit() 2004-10-06 03:49:03 +00:00
itojun dd505f6f10 call dom_ifattach[] at consistent state. before this commit, dom_ifattach[]
was called after interface attach is completely done for non-cloning interface,
and from within if_attach() for cloning interface (which was wrong).
2004-10-06 02:44:32 +00:00
darrenr 0543239818 Add a comment to document what setting "srcrt" is really on about in ipintr() 2004-10-06 01:34:11 +00:00
thorpej eeee37654e Restructure the loop in wm_start() that passes over the DMA map segments
slightly to make it easier to drop in errata work-arounds that require
adding extra descriptors onto the end of the packet.
2004-10-06 00:04:01 +00:00
heas 3e34026e61 Add TWE_PARAM_PROC_PERCENT; completion percentage per-sub-unit (2 bytes/ea) for
initialize/verify/rebuild processes.
2004-10-05 23:49:15 +00:00
heas f931eb70ff Add TWE_OP_PROBEUNIT (0x7), which probes a drive (not associated with a unit
from the controller's POV) for unit information.  It's arguments mirror that
of TWE_OP_PROBE.
2004-10-05 23:31:32 +00:00
thorpej 09421fe870 Largest Tx descriptor buffer size is actually 4K. 2004-10-05 21:29:56 +00:00
thorpej 29a0a6f5d1 Enable the SmartSpeed work-around code for the IGP phy, with some
minor adjustments.
2004-10-05 20:20:00 +00:00
thorpej d1c33ede84 Work around another problem (that causes horrible performance) on the 82547:
- Change the Tx:Rx on-chip RAM allocation ratio based on MTU:
  => 82547: > 8192 18K:22K, else 10K:30K
  => others: > 8192 24K:40K, else 16K:48K
  Values derived from Linux driver.
- On the 82547, keep track of how much of the Tx FIFO has been used.
  When in half-duplex mode, don't let packets wrap around the FIFO ring
  buffer, because that causes the chip to croak.  Detect this, stall the
  Tx queue, use a timer to wait for the packets to drain from the Tx FIFO,
  reset the internal FIFO pointers, and restart the Tx queue.  Basic
  algorithm (and some magic numbers) derived from FreeBSD and Linux drivers.
2004-10-05 20:14:52 +00:00
lha f911795b30 Switch to krb5_set_password that can handle the RFC3244 (and the older
change password protocol)
2004-10-05 14:12:56 +00:00
wiz f74a3e4c4e Add missing function types for getpwnam_r and getpwuid_r. 2004-10-05 13:52:09 +00:00
is b5016b1bb3 Some code likes to mix MT_HEADER and MT_DATA. Revert this assertion until
the usage of MT_HEADER vs. MT_DATA is better defined and implemented.
2004-10-05 12:19:29 +00:00
lukem 0a87664e7c Use PASSWD_BYxxx(state) macros instead of "passwd.byxxx" to refer to
the NIS "passwd.by*" maps.
Fixes problem with "passwd_compat: nis" noted by Matthias Scheler.
2004-10-05 12:09:23 +00:00
augustss 30c119625c Regen. 2004-10-05 11:58:17 +00:00
augustss 48f76da065 Add some ALI devices. 2004-10-05 11:57:22 +00:00
tron 84596c1d92 Fix bug which caused "ypinit" to die with a strange error message if
"/var/yp/binding" doesn't exist.
2004-10-05 11:35:35 +00:00
jdolecek 6513aa8291 regen: generate struct linux_sys_shmget_args for linux_sys_shmget(2) 2004-10-05 06:02:36 +00:00
jdolecek 361bf102b8 mark linux_sys_shmget() STD, so that appropriate struct linux_sys_shmget_args
would be defined for use by alpha linux_sysent.c
2004-10-05 06:01:20 +00:00
yamt 2c46ccce37 move netinet/ip_lookup.h -> dist/ipf/netinet/ip_lookup.h. 2004-10-05 04:56:41 +00:00
yamt 8484dd9eed move ipf headers and add a comment. 2004-10-05 04:55:48 +00:00
lukem 45a7a69275 Overhaul the use of nsdispatch(3) by public APIs so that the back-end
methods use va_list in a manner that is directly related to the public API.
This makes it much easier to write dynamic nsswitch backends for getpwent(3).
Per my proposal on tech-userlevel.

Implement getpwgid_r() and getpwnam_r() APIs per the POSIX 1003.1, 2004 Ed.
These aren't fully reentrant or threadsafe yet, because the compat stuff
currently uses non-reentrant data sources (getnetgrent(3), getpwent(3)),
and there is probably some locking to be improved in the backends.
This will be fixed in the near future.
We also need to add _SC_GETPW_R_SIZE_MAX to sysconf(3).

Fix the compat `+' prototype override so getpwnam(3) and getpwuid(3) DTRT.

Improve the description of pw_class and pw_gecos.
2004-10-05 04:45:54 +00:00
christos 557877d024 Only enable BRIDGE_IPF code if PFIL_HOOKS is enabled. 2004-10-05 03:36:45 +00:00
christos 766798b654 PR/27137: Martin J. Laubach: core dump when localhost does not support
a given address family and a peer only supports the family localhost does
not support. For example: configure a kernel without IPV6, and then
add a line in ntp.conf server <ipv6addr>. We report that the server is
unreachable and we keep going because there might be more servers around?
XXX: What if it is the last server? Should we detect this? It is not nice
to just bail on this error, because a server might lose its ipv4 address
and only advertise ipv6.
2004-10-05 03:34:38 +00:00
lukem a18b46b6e9 Correct order of description of getgr{nam,gid}{,_r}() functions. 2004-10-05 03:03:24 +00:00
thorpej 0fdf8295f4 - Add some useful constants related to the Packet Buffer Allocation
register.
- Add the Receive and Transmit Data FIFO registers.
2004-10-05 02:17:21 +00:00
he 132a99257c Cast a pointer difference to int before printing with %x.
Should fix build problem for our LP64 ports.
2004-10-04 22:33:16 +00:00
rumble a950c45f67 Move a comma up to the preceding line as advised by wiz@. 2004-10-04 20:17:47 +00:00
he 32dfb50ca9 Track the change of int -> paddr_t for the arguments to the ARCBIOS
routines.
2004-10-04 19:59:51 +00:00
rumble aae599581f Removed accidental repetitious words. 2004-10-04 19:12:52 +00:00
rumble c1cd7e398e '..is is valid to..' -> '..it is valid to..' 2004-10-04 19:09:28 +00:00
rumble 0499193e1e 'at at time' -> 'at a time' 2004-10-04 19:08:19 +00:00
rumble 9ef61d6b29 Grammar tweak and removal of double 'is':
'If the computer is is heavy loaded..' ->
'If the computer is under heavy load..'
2004-10-04 19:06:46 +00:00
perry 653de456c5 Note that MAP_ANON memory is zero filled. 2004-10-04 18:14:48 +00:00
grant 8b9d374e09 suppress printing the network settings so that dhclient -q is actually
quiet. the most useful network info is already printed by dhclient
itself in noisy mode.
2004-10-04 12:54:06 +00:00
fvdl 6a68a8b6c5 Don't use sizeof on a pointer when you mean the whole structure. 2004-10-04 11:23:39 +00:00
yamt 4a85dda9fc fix debug printf formats to match with the recent sys/buf.h.
a patch provided by Ryo HAYASAKA.  PR/27138.
2004-10-04 11:12:09 +00:00
fvdl 5d83432e24 No need to print out sense data just because it happened to arrive in
a pkt. Wrap that in AHD_DEBUG.
2004-10-04 11:08:47 +00:00
lukem 21271b283d When vis encoding with -S, only remove the trailing NUL if -N isn't used and
the item's size is > 0.
2004-10-04 10:56:12 +00:00
yamt 364ea008bb procfs_readdir:
- return correct cookie when buffer size is small.
- simplify logic.
2004-10-04 08:40:18 +00:00
yamt ef763f0a42 procfs_readdir: remove a redundant assignment. 2004-10-04 08:37:06 +00:00
dyoung 49cfbd0442 Drivers are not expected to call ieee80211_find_node_for_beacon,
so don't increase the reference count on a node before returning
it.
2004-10-04 07:35:48 +00:00
dyoung b01c9a3223 Bug fix: in ieee80211_find_txnode, we used to call ieee80211_ref_node(ni)
if ni == NULL and the operating mode was not "ad hoc" or "ad hoc
demo."  That crashed the kernel.  Now, if the operating mode is
not "ad hoc (demo)," and ni == NULL, return NULL right away.

Also, if ieee80211_dup_bss returns NULL, return NULL right away.
This doesn't fix a bug, but it makes clear how this works.
2004-10-04 07:17:41 +00:00