Commit Graph

189 Commits

Author SHA1 Message Date
jlemon
af6d4768d5 Lock down the network interface queues. The queue mutex must be obtained
before adding/removing packets from the queue.  Also, the if_obytes and
if_omcasts fields should only be manipulated under protection of the mutex.

IF_ENQUEUE, IF_PREPEND, and IF_DEQUEUE perform all necessary locking on
the queue.  An IF_LOCK macro is provided, as well as the old (mutex-less)
versions of the macros in the form _IF_ENQUEUE, _IF_QFULL, for code which
needs them, but their use is discouraged.

Two new macros are introduced: IF_DRAIN() to drain a queue, and IF_HANDOFF,
which takes care of locking/enqueue, and also statistics updating/start
if necessary.
2000-11-25 07:35:38 +00:00
bmilekic
907500ad9d While I'm here, get rid of (now useless) MCLISREFERENCED and use MEXT_IS_REF
instead.
Also, fix a small set of "avail." If we're setting `avail,' we shouldn't
be re-checking whether m_flags is M_EXT, because we know that it is, as if
it wasn't, we would have already returned several lines above.

Reviewed by: jlemon
2000-11-11 23:05:59 +00:00
darrenr
5869172149 Fix conflicts creted by import. 2000-10-29 07:53:05 +00:00
msmith
fb091bdc25 We should include <machine/stdarg.h> not <stdarg.h>
Submitted by:	phk
2000-10-28 08:32:43 +00:00
msmith
a13fd31430 Some AML code assumes that a function without an explicit ReturnOp will
return the last value returned by a nested method call.  This violates
the ACPI spec, but is implemented by the Microsoft interpreter, and thus
vendors can (and do) get away with it.

Intel's stance is that this is illegal and should not be supported.
As they put it, however, we have to live in the real world.  So go ahead
and implement it.

Submitted by:	Mitsaru IWASAKI <iwasaki@jp.freebsd.org>
2000-10-28 07:32:13 +00:00
msmith
4ef131b639 FreeBSD-specific customisations:
- Set debugger options for kernel build
 - Define some missing functions
 - Bring in GCC defines
 - Disable the 'wbinvd' macro as it conflicts with our inline
2000-10-28 07:29:08 +00:00
msmith
5c3e099499 Add some extra fuctions:
- AcpiGetProcessorID (fetch the ACPI processor ID for a given ACPI_HANDLE)
 - AcpiSetSystemSleepState (set the Sx sleeping state, proposed by Intel
   but not actually implemented)
2000-10-28 07:26:48 +00:00
msmith
68b514f070 This commit was generated by cvs2svn to compensate for changes in r67754,
which included commits to RCS files with non-trunk default branches.
2000-10-28 05:01:06 +00:00
msmith
748be15501 Initial import of the Intel-maintained ACPI Component Architecture. This
is Intel's reference implementation of the core operating-system ACPI
support.  (This import is on the vendor branch.)
2000-10-28 05:01:06 +00:00
obrien
3baa579c2d Include sys/param.h for `__FreeBSD_version' rather than the non-existent
osreldate.h.

Submitted by:	dougb
2000-10-27 12:53:31 +00:00
darrenr
db58d9c235 fix conflicts from rcsids 2000-10-26 12:33:42 +00:00
ru
811a2e2625 We now keep the ip_id field in network byte order all the
time, so there is no need to make the distinction between
ip_output() and ip_input() cases.

Reviewed by:	silence on freebsd-net
2000-10-25 10:56:41 +00:00
ru
65e7901536 If we do not byte-swap the ip_id in the first place, don't do it in
the second.  NetBSD (from where I've taken this originally) needs
to fix this too.
2000-10-18 11:36:09 +00:00
phk
7a0868a185 Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
lile
47a12a4448 o Change TX_BUFFER_LEN from 512 to 2048.
o Remove bogus "spurious interrupt" message.

o Ring buffer head and avail were incorrectly calculated.

o Fix fragment count.

o Fix ring entry for single station, default to 16Mbit.

o Don't complain about long frames.
2000-10-10 00:54:02 +00:00
phk
8d60c21e47 remove unused #include. 2000-10-07 19:38:31 +00:00
phk
af8843a717 Remove SMP hack. 2000-09-16 18:57:18 +00:00
ru
5417da501b Follow BSD/OS and NetBSD, keep the ip_id field in network order all the time.
Requested by:	wollman
2000-09-14 14:42:04 +00:00
kris
28fb06e1af Install mode 644, not mode 664 during kernel compile. Yes, Peter, I am
psycho :-)
2000-08-15 11:06:56 +00:00
darrenr
36c563c8e6 resolve conflicts 2000-08-13 04:31:06 +00:00
roberto
629cd55475 Change __FreeBSD_Version into the proper __FreeBSD_version.
Submitted by:	Alain.Thivillon@hsc.fr (Alain Thivillon) (for ip_fil.c)
2000-08-01 17:14:38 +00:00
ache
57868a26ec Add missing '0' to FreeBSD_version test: 50011 -> 500011 2000-08-01 00:04:24 +00:00
darrenr
15d51f1af8 activate pfil_hooks and covert ipfilter to use it 2000-07-31 13:11:42 +00:00
darrenr
54a2f7cfd4 fix conflicts 2000-07-19 14:02:09 +00:00
peter
507b931628 Remove these here, these were repocopied to src/sys/ufs/ffs. 2000-06-23 00:11:32 +00:00
mckusick
1183a4dc99 Update to new copyright. 2000-06-22 00:29:53 +00:00
mckusick
f29217b823 When running with quotas enabled on a filesystem using soft updates,
the system would panic when a user's inode quota was exceeded (see
PR 18959 for details). This fixes that problem.

PR:		18959
Submitted by:	Jason Godsey <jason@unixguy.fidalgo.net>
2000-06-18 22:14:28 +00:00
mckusick
eb0270eca0 Some additional performance improvements. When freeing an inode
check to see if it has been committed to disk. If it has never
been written, it can be freed immediately. For short lived files
this change allows the same inode to be reused repeatedly.
Similarly, when upgrading a fragment to a larger size, if it
has never been claimed by an inode on disk, it too can be freed
immediately making it available for reuse often in the next slowly
growing block of the same file.
2000-06-18 22:05:57 +00:00
phk
c1cf1fd414 ARGH! I have too many source trees :-(
Fix prototype errors in last commit.
2000-06-16 13:00:33 +00:00
phk
f26574f541 Virtualizes & untangles the bioops operations vector.
Ref: Message-ID: <18317.961014572@critter.freebsd.dk> To: current@
2000-06-16 08:48:51 +00:00
peter
679b2d1dab Unused include: #include "fla.h" 2000-06-10 11:05:17 +00:00
peter
eff1181c9c Fix a reference to an old FreeBSD 2.2 register name.
s/PCI_COMMAND_STATUS_REG/PCIR_COMMAND/
2000-05-28 16:21:45 +00:00
darrenr
6a77390f8e define CSUM_DELAY_DATA to match merge 2000-05-26 07:28:03 +00:00
jake
5e208b0c18 Back out the previous change to the queue(3) interface.
It was not discussed and should probably not happen.

Requested by:		msmith and others
2000-05-26 02:09:24 +00:00
darrenr
2005a2d399 fix up #ifdef jungle for FreeBSD 2000-05-25 16:24:46 +00:00
darrenr
06a04563ec remove duplicate prototypes 2000-05-25 16:23:30 +00:00
darrenr
d9cbc39cd2 fix duplicate rcsid's 2000-05-24 19:38:17 +00:00
peter
c9715053d0 It would have been nice if this actually compiled. Close the header
comment */.
2000-05-24 09:08:55 +00:00
darrenr
ca92844ecb fix up conflicts 2000-05-24 04:40:17 +00:00
darrenr
fb324ced5f fix conflicts 2000-05-24 04:21:35 +00:00
darrenr
d9c9d2d0f0 fix conflicts 2000-05-24 04:09:13 +00:00
darrenr
df6655df92 fix conflicts 2000-05-24 04:01:49 +00:00
darrenr
c43e65a600 fix conflicts 2000-05-24 04:01:30 +00:00
darrenr
41542073e2 fix conflicts 2000-05-24 03:43:24 +00:00
darrenr
325b40c92d fix conflicts 2000-05-24 03:17:16 +00:00
jake
1d685644e0 Change the way that the queue(3) structures are declared; don't assume that
the type argument to *_HEAD and *_ENTRY is a struct.

Suggested by:	phk
Reviewed by:	phk
Approved by:	mdodd
2000-05-23 20:41:01 +00:00
jlemon
66bfebbaed Compute the checksum before handing the packet off to IPFilter.
Tested by:  Cy Schubert <Cy.Schubert@uumail.gov.bc.ca>
2000-05-21 21:26:06 +00:00
darrenr
7bac139129 Fix bug in dealing with "hlen == 1 and opt > 1" 2000-05-09 23:35:24 +00:00
ps
ae7066d440 Add missing include machine/in_cksum.h.
Submitted by:	n_hibma
2000-05-09 16:56:51 +00:00
phk
633deb3a69 Separate the struct bio related stuff out of <sys/buf.h> into
<sys/bio.h>.

<sys/bio.h> is now a prerequisite for <sys/buf.h> but it shall
not be made a nested include according to bdes teachings on the
subject of nested includes.

Diskdrivers and similar stuff below specfs::strategy() should no
longer need to include <sys/buf.> unless they need caching of data.

Still a few bogus uses of struct buf to track down.

Repocopy by:    peter
2000-05-05 09:59:14 +00:00