Commit Graph

14791 Commits

Author SHA1 Message Date
Jung-uk Kim
49f4a268d5 Add x86 CPUs supported by clang on head.
Reviewed by:	arch (silence)
X-MFC:		r242624
2012-11-19 21:58:14 +00:00
Benjamin Kaduk
c33ae5331f Improve grammar.
Approved by:	hrs (mentor)
2012-11-18 22:52:17 +00:00
Eitan Adler
481974c226 Modernize parts of the ports.7 manual page.
Approved by:	bcr (mentor)
MFC after:	3 days
2012-11-18 16:34:09 +00:00
Neel Natu
3248464555 IFC @ r243164 2012-11-17 02:55:47 +00:00
Marcel Moolenaar
a83e187992 Install bsd.progs.mk, needed by bsd.test.mk and thus by atf.test.mk. 2012-11-17 00:07:28 +00:00
Eitan Adler
b2c3d69208 Correct spelling of "lily" [0]
Correct spelling of Camellia

PR:		misc/173655 [0]
Submitted by:	John Ryan <john@shiftregister.net> [0]
Approved by:	cperciva
MFC after:	1 week
2012-11-16 14:46:32 +00:00
Joel Dahl
ddc936569c Remove trailing whitespace. 2012-11-16 14:30:40 +00:00
Gleb Smirnoff
dc169f2862 o Remove meaningless PROTOCOLS section.
o Describe passing file descriptors as separate section.
  - Descriptors can be passed through any protocol of the UNIX family,
    not SOCK_STREAM and SOCK_SEQPACKET only. [1]
o Describe socket options as separate section.
  - Move LOCAL_PEERCRED option to this section.
  - Describe struct xucred.
  - In LOCAL_CREDS section mention that credentials
    are passed only on the first read on non-datagram
    sockets.
o Xref all mentioned system calls.

Noticed by:	Igor Sysoev [1]
2012-11-16 14:00:27 +00:00
Joel Dahl
788c8ebcb5 Remove trailing whitespace. 2012-11-16 11:56:53 +00:00
Alan Cox
96509a1fd9 M_USE_RESERVE is no longer deprecated. It is once again supported.
Reviewed by:	kib
2012-11-16 06:40:40 +00:00
Greg Lehey
370cbbf20d Move detailed description of BLOCKSIZE to getbsize(3).
MFC after:	2 weeks.
2012-11-16 01:43:23 +00:00
Eitan Adler
a48556ba8d Remove quite a bit of stale data from the tuning.7
While here fix some style issues.

Submitted by:	many (via the SystemTuning wiki page)
Approved by:	bcr (mentor)
MFC after:	3 days
2012-11-16 01:22:56 +00:00
Joel Dahl
0e9ca66e3b Remove trailing whitespace. 2012-11-15 16:54:14 +00:00
Eitan Adler
03ad1b0ba0 Some software, notably dialog(1), can understand back-tab, which is
typically bound to Shift-Tab. syscons produces ^]]Z for Shift-Tab, like
many VT100-like terminal (emulators). The plain xterm does not produce
this sequence, but ^I for both Tab and Shift-Tab.

PR:		conf/162787
PR:		bin/151229
Submitted by:	Stefan Bethke <stb@lassitu.de>
Submitted by:	Bruce Cran <bruce@cran.org.uk>
Approved by:	cperciva
MFC after:	3 days
2012-11-15 15:05:54 +00:00
Kevin Lo
d7bf9fd625 Mention the IEEE 802.1AX.
Reviewed by:	thompsa
2012-11-14 06:23:32 +00:00
Andre Oppermann
327210de43 Remove description of deprecated IP fragment checksum support.
Since SMPng it wasn't really supported anymore and if it worked
then only by chance.  Only very few drivers ever supported it.

Discussed with:	yongari
MFC after:	2 weeks
2012-11-13 20:52:17 +00:00
Joel Dahl
c60bda17f2 Updates for netgraph node manual pages.
Discussed with:	glebius
Submitted by:	Mamontov Roman <mr.xanto@gmail.com>
2012-11-13 20:41:36 +00:00
Sergey Kandaurov
030c03b513 - Lowercase a cross reference to make.
- Sort SEE ALSO cross references.

MFC after:	3 days
2012-11-13 20:07:34 +00:00
Sergey Kandaurov
eb2c1f87f8 Avoid an ambiguous reference to mtx_lock(9).
MFC after:	3 days
2012-11-13 19:21:51 +00:00
Sergey Kandaurov
fe6ba75294 Correct rmlock(9) xref and add a missing comma. 2012-11-13 19:03:13 +00:00
Neel Natu
7d3d462b09 IFC @ r242940 2012-11-13 07:39:05 +00:00
Neel Natu
a10c6f5544 IFC @ r242684 2012-11-11 03:26:14 +00:00
Xin LI
2c862c979c ICMPV6_FILTER should read ICMP6_FILTER.
Submitted by:	Frédéric Perrin <frederic.perrin resel.fr>
MFC after:	2 weeks
2012-11-08 00:54:43 +00:00
Simon J. Gerraty
c5faff658d Add ATF and reformat to ease reviews
Approved by:	marcel (mentor)
2012-11-07 22:02:53 +00:00
Simon J. Gerraty
50c5d27b26 Enable ATF testing.
Submitted by:	Garrett Cooper
Approved by:	marcel (mentor)
2012-11-07 22:02:02 +00:00
Simon J. Gerraty
81e6864102 Latest progs.mk from crufty.net for ATF
Approved by:	marcel (mentor)
2012-11-07 21:44:04 +00:00
Kevin Lo
d92303b62c Nm ipsec 2012-11-07 06:53:44 +00:00
Dimitry Andric
8d7f35458a Fix typo in bsd.compiler.mk. 2012-11-06 07:51:20 +00:00
Alexander Motin
a21345b401 Decode common state bits in getencstat output. 2012-11-06 01:29:26 +00:00
Bryan Venteicher
65f6f7ae43 Add myself as a new src committer
Approved by:	grehan (mentor)
2012-11-06 00:41:59 +00:00
Alexander Motin
3364718004 Add -c option to sesd to make it clear enclosure status after reading it
in case if it is not permanent and was fixed.
2012-11-06 00:22:33 +00:00
Alexander Motin
23ec103f3f Rise priority of the informational messages from LOG_INFO to LOG_NOTICE,
same as used for OK status. Otherwise it looks strange when OK status is
reported, while informational is not.
2012-11-05 23:20:48 +00:00
Brooks Davis
909c4d7ec0 Allow CC to be gcc46 or similar by matching gcc*.
Don't test the value of the :M matches, either the string matches or does
not.
2012-11-05 23:05:14 +00:00
Brooks Davis
ccaa6067c7 Now that WITH_CLANG_IS_CC is the default on x86 systems, document
WITHOUT_CLANG_IS_CC.
2012-11-05 21:55:22 +00:00
Brooks Davis
5b6478b077 After years of hard work by many FreeBSD and LLVM developers, make
clang the default compiler on i386 and amd64 systems.

Special thanks to:	dim, ed, rdivacky
2012-11-05 19:08:18 +00:00
Alexander Motin
8894a1ba65 Fix a minor typo. 2012-11-05 18:18:03 +00:00
Kevin Lo
0191c147a5 Sync with domain and protosw data structures.
Reviewed by:	glebius
2012-11-05 09:45:37 +00:00
Kevin Lo
8f58a61d4f Revert previous commit. 2012-11-05 02:34:52 +00:00
Kevin Lo
fcc15a2c82 Catch up with r242520. s/maxusers/maxbikesheds 2012-11-05 01:42:57 +00:00
Grzegorz Blach
d4cc50ba14 - Add my mentor relationships to committers-ports.dot
- Add myself to calendar.freebsd

Approved by:	tabthorpe (mentor)
2012-11-04 08:47:41 +00:00
Baptiste Daroussin
4cbff7a3dc Change default prompt to show ~ again for the home directory
Submitted by:	flo
Approved by:	eadler
2012-11-04 01:00:35 +00:00
Maxim Konovalov
87ae2c7848 o DragonFly 2.3.1 added. 2012-11-03 19:26:08 +00:00
Eitan Adler
382dc3ca38 Revert the change that makes less default.
Since I've committed this I've receieved roughly an equal
amount of email thanking me for making this change
and asking me to revert it.

I've resisted making this change because
new users tend to prefer less over more
and these users are the least likely to know
how to change the PAGER on their own.

Requested by:	many
Objected to:	just as many
Decision made by:	core
Approved by:	cperciva
MFC after:	3 days
2012-11-03 14:46:15 +00:00
Jim Harris
ac6a9a8e21 Update nsamples and nbuffers defaults to match reality. 2012-11-02 22:03:39 +00:00
Joel Dahl
e9d6ba929a A few minor adjustments after r242424:
- Sort entries in SYNOPSIS.
- Start sentence on a new line.
- Remove redundant textdump dump description.

Submitted by:	bde
2012-11-02 21:47:21 +00:00
Gleb Smirnoff
cd463097e9 - Fix struct and struct fields names.
- Remove NGM_ATM_CARRIER_CHANGE, which was removed in r118175.

Submitted by:	Mamontov Roman <mr.xanto gmail.com>
2012-11-02 13:54:06 +00:00
Gleb Smirnoff
0134b5cbd7 Remove separate paragraph on ASCII messages and instead
provide this information along with messages documentation,
like this done in manual pages for other netgraph nodes.

Submitted by:	Mamontov Roman <mr.xanto gmail.com>
2012-11-02 13:51:47 +00:00
Philip Paeps
acdff4634b MFV pciids-20121024, r242469
Update to use the latest version of the PCI IDs Repository.

MFC after:	1 week
2012-11-02 11:13:44 +00:00
Maxim Konovalov
6c5ed44028 o OpenBSD 5.2 added. 2012-11-02 07:36:16 +00:00
Jim Harris
d9fad1defa Add descriptions for callout_reset_on and callout_schedule_on and
their curcpu variants.

Discussed with:	mav, davide
MFC after:	1 week
2012-11-01 21:00:13 +00:00
Joel Dahl
33bfa8dc1d Sort textdump options list.
Submitted by:	bde
2012-11-01 17:17:05 +00:00
Alfred Perlstein
956cbd114d Add whitespace between mandatory and optional kernel
config options.

Approved by:	joel
2012-11-01 17:13:04 +00:00
Joel Dahl
e1ed9697d8 Nuke whitespace. 2012-11-01 07:53:21 +00:00
Joel Dahl
47df4db7e4 Minor mdoc fix. 2012-11-01 07:51:50 +00:00
Alfred Perlstein
21d748a957 Small textdump enhancements.
Allow textdumps to be called explicitly from DDB.

If "dump" is called in DDB and textdumps are enabled then abort the
dump and tell the user to turn off textdumps.

Add options TEXTDUMP_PREFERRED to turn textdumps on by default.
Add options TEXTDUMP_VERBOSE to be a bit more verbose while textdumping.

Reviewed by: rwatson

MFC after:	2 weeks
2012-11-01 04:07:08 +00:00
Edward Tomasz Napierala
207c7ec842 Document disk_resize(9). 2012-10-30 13:05:50 +00:00
Kevin Lo
969ed8f744 The argument len of m_pullup(9) could be less than or equal to MHLEN.
Reviewed by:	glebius
2012-10-30 10:13:26 +00:00
Edward Tomasz Napierala
2864c799d6 Make it clear that NULL can only be returned when M_NOWAIT was used. 2012-10-28 21:01:32 +00:00
Hiroki Sato
c58c2dc7d5 Add setfib(1) support for services as <name>_fib in rc.conf. 2012-10-27 19:09:09 +00:00
Joel Dahl
04e9501602 mdoc: sort sections. 2012-10-26 16:40:03 +00:00
Xin LI
022a7377d0 Update hptiop(4) to version 1.8, which added support for HighPoint
RocketRAID 4500 series.

Many thanks to HighPoint Technologies for their continued support
of FreeBSD!

Submitted by:	HighPoint Technologies
MFC after:	3 days
2012-10-25 17:29:11 +00:00
Andrey V. Elsukov
c1de64a495 Remove the IPFIREWALL_FORWARD kernel option and make possible to turn
on the related functionality in the runtime via the sysctl variable
net.pfil.forward. It is turned off by default.

Sponsored by:	Yandex LLC
Discussed with:	net@
MFC after:	2 weeks
2012-10-25 09:39:14 +00:00
Kevin Lo
2e3ee2392a Fix MINCLSIZE. It should be MHLEN + 1.
Reviewed by:	glebius
2012-10-25 08:38:43 +00:00
Simon J. Gerraty
bc12605bee Add entry for sjg
Approved by:    marcel (mentor)
2012-10-24 14:06:47 +00:00
Andre Oppermann
a375e5b1ac Update zero_copy(9) man page to note the renamed kernel options
and to warn about unsafeness of COW based sends.
2012-10-23 14:25:37 +00:00
Konstantin Belousov
5050aa86cf Remove the support for using non-mpsafe filesystem modules.
In particular, do not lock Giant conditionally when calling into the
filesystem module, remove the VFS_LOCK_GIANT() and related
macros. Stop handling buffers belonging to non-mpsafe filesystems.

The VFS_VERSION is bumped to indicate the interface change which does
not result in the interface signatures changes.

Conducted and reviewed by:	attilio
Tested by:	pho
2012-10-22 17:50:54 +00:00
Eitan Adler
ac9caaf57f Update re members to reality
MFC after:	3 days
2012-10-22 17:13:15 +00:00
Alexander V. Chernikov
4dab1a18a3 Make PFIL use per-VNET lock instead of per-AF lock. Since most used packet
filters (ipfw and PF) use the same ruleset with the same lock for both
AF_INET and AF_INET6 there is no need in more fine-grade locking.
However, it is possible to request personal lock by specifying
PFIL_FLAG_PRIVATE_LOCK flag in pfil_head structure (see pfil.9 for
more details).

Export PFIL lock via rw_lock(9)/rm_lock(9)-like API permitting pfil consumers
to use this lock instead of own lock. This help reducing locks on main
traffic path.

pfil_assert() is currently not implemented due to absense of rm_assert().
Waiting for some kind of r234648 to be merged in HEAD.

This change is part of bigger patch reducing routing locking.

Sponsored by:	Yandex LLC
Reviewed by:	glebius, ae
OK'd by:	silence on net@
MFC after:	3 weeks
2012-10-22 14:10:17 +00:00
Alexander V. Chernikov
7c0f71178d Provide example for newly-added NG_NETFLOW_V9INFO_TYPE
Submitted by:	Dmitry Luhtionov <dmitryluhtionov at gmail.com>
MFC with:	r241446
2012-10-22 12:22:56 +00:00
Gavin Atkinson
e2522f1194 Add German, French, Portuguese and Spanish names for the Spanish Dvorak
keymap.

MFC after:	1 week
2012-10-22 09:38:07 +00:00
Kevin Lo
568063bb69 Remove MLINK for if_idt.
Spotted by:	Alie Tan <alie at affle dot com>
2012-10-22 07:04:34 +00:00
Eitan Adler
10d17a3f08 Add Danish keyboard model for macbooks to syscons.
(not verified to be accurate)

PR:		conf/146793
Submitted by:	Erik Cederstrand
Approved by:	cperciva
MFC after:	1 week
2012-10-22 03:30:17 +00:00
Eitan Adler
6dc88def2e Remove {harp,hfa,idt} man pages as they were removed in r179308.
PR:		docs/171234
Submitted by:	Martin Birgmeier <Martin.Birgmeier@aon.at>
Reviewed by:	rwatson
Approved by:	cperciva
MFC after:	3 days
2012-10-22 02:59:49 +00:00
Marcel Moolenaar
b87718f054 Update after adding WITHOUT_ATF. 2012-10-22 02:05:09 +00:00
Marcel Moolenaar
c175365cec Add ATF to the build. This is may be a bit rought around the egdes,
but committing it helps to get everyone on the same page and makes
sure we make progress.

Tinderbox breakages that are the result of this commit are entirely
the committer's fault -- in other words: buildworld testing on amd64
only.

Credits follow:

Submitted by:	Garrett Cooper <yanegomi@gmail.com>
Sponsored by:	Isilon Systems
Based on work by:	keramida@
Thanks to:	gnn@, mdf@, mlaier@, sjg@
Special thanks to:	keramida@
2012-10-22 01:18:41 +00:00
Glen Barber
16a7f9e2bd Update ktr(4) to reflect changes from r239923.
Reviewed by:	attilio
2012-10-20 23:13:09 +00:00
Marcel Moolenaar
9e0a344174 Revert r241752. The claim that it's more correct while at the same time
causing a build breakage is interesting to say the least.
2012-10-20 22:44:22 +00:00
Ulrich Spörlein
cc4842a1c7 Apply local patches to mandoc and connect it to the build.
- adds a couple more library strings used in the tree
- changes some more to the current groff spelling
- changes page footer to match groff style
2012-10-20 10:06:38 +00:00
Kevin Lo
7d6f679a2b - KTR_ENTRIES may be an arbitrary number, remove the sentence about
power of two.
- Mention the run time mask is set to block any tracing by default.

Reviewed by:	jhb
2012-10-20 08:06:31 +00:00
Marcel Moolenaar
9120686391 Improve upon the previous commit to fix the yacc rule.
1.  Have the resulting C file depend on the resulting H
    file as it should be. Touch the C file to make sure
    the C file is newer than the H file to keep make
    happy.
2.  Apply the same fix to the other instance of .ORDER,
    missed in the previous commit.
2012-10-19 20:13:08 +00:00
Joel Dahl
fd05746c4b Fix minor whitespace issues. 2012-10-19 10:38:32 +00:00
Sean Bruno
48f219c0da est(4) man page update to document the exposed sysctl r/o variables
available to the user.  Should be applicable to all branches and versions
where est(4) exists.

thanks to gjb for reviewing and suggesting nits

Reviewed by:	gjb@
MFC after:	2 weeks
2012-10-18 22:22:01 +00:00
Sergey Kandaurov
77833fb00d Document NetBSD 6.0 2012-10-18 15:52:00 +00:00
Attilio Rao
2e564269d0 Disconnect non-MPSAFE SMBFS from the build in preparation for dropping
GIANT from VFS. In addition, disconnect also netsmb, which is a base
requirement for SMBFS.

In the while SMBFS regular users can use FUSE interface and smbnetfs
port to work with their SMBFS partitions.

Also, there are ongoing efforts by vendor to support in-kernel smbfs,
so there are good chances that it will get relinked once properly locked.

This is not targeted for MFC.
2012-10-18 12:04:56 +00:00
Attilio Rao
a42ac676f5 Disconnect non-MPSAFE NTFS from the build in preparation for dropping
GIANT from VFS. This code is particulary broken and fragile and other
in-kernel implementations around, found in other operating systems,
don't really seem clean and solid enough to be imported at all.
If someone wants to reconsider in-kernel NTFS implementation for
inclusion again, a fair effort for completely fixing and cleaning it
up is expected.

In the while NTFS regular users can use FUSE interface and ntfs-3g
port to work with their NTFS partitions.

This is not targeted for MFC.
2012-10-17 11:30:00 +00:00
Attilio Rao
e6116d5b8e Disconnect non-MPSAFE NWFS from the build in preparation for dropping
GIANT from VFS. In addition, disconnect also netncp, which is a base
requirement for NWFS.

In the possibility of a future maintenance of the code and later
readd to the FreeBSD base, maybe we should think about a better location
for netncp. I'm not entirely sure the / top location is actually right,
however I will let network people to comment on that more specifically.

This is not targeted for MFC.
2012-10-17 11:16:17 +00:00
Attilio Rao
26c3f6d7e2 Disconnect non-MPSAFE CODAFS from the build in preparation for dropping
GIANT from VFS.

This is not targeted for MFC.
2012-10-16 10:09:21 +00:00
Attilio Rao
4b0bdbfd9b Disconnect non-MPSAFE XFS from the build in preparation for dropping
GIANT from VFS.

This is not targeted for MFC.
2012-10-16 10:04:00 +00:00
Attilio Rao
55793cdccf Disconnect non-MPSAFE PORTALFS from the build in preparation for dropping
GIANT from VFS.

This is not targeted for MFC.
2012-10-16 09:59:10 +00:00
Eitan Adler
dd9de3098a Add a bunch more example completions.
Submitted by:	wblock
Approved by:	cperciva (implicit)
MFC after:	3 days
2012-10-16 02:52:30 +00:00
Eitan Adler
aca9beed35 Add my new association with bcr and jkois.
Thanks!

MFC after:	3 days
2012-10-15 17:10:41 +00:00
Eitan Adler
324e813d46 Bump .Dd
Approved by:	joel
2012-10-14 13:45:13 +00:00
Eitan Adler
c2f6b6182b Don't document the PORTSSUPFILE variable. Even though this still works,
try to discourage users from depending on it.

Approved by:	joel
MFC after:	3 days
2012-10-14 13:41:42 +00:00
Joel Dahl
a28832ef7b Minor mdoc improvements. Also remove unnecessary csup reference. 2012-10-14 10:26:29 +00:00
Gabor Kovesdan
bed0b9d47f - Regen after GNU sort removal 2012-10-13 19:29:38 +00:00
Gabor Kovesdan
2e650f3f9c - Remove WITH_GNU_SORT support 2012-10-13 19:29:07 +00:00
Alexander V. Chernikov
83099d5c8d Add forgotten documentation for new NGM_NETFLOW_V9INFO message.
Submitted by:	Dmitry Luhtionov <dmitryluhtionov at gmail.com>
MFC with:	r241446
2012-10-13 09:25:29 +00:00
Gleb Smirnoff
5b0ae76514 Fix type in last commit.
Submitted by:	brueffer
2012-10-12 19:53:13 +00:00
Gleb Smirnoff
cfccce310a Be more explicit on how "intact" incoming packets in raw sockets are. 2012-10-12 12:27:30 +00:00
Joel Dahl
4463135198 Remove whitespace. 2012-10-12 06:16:51 +00:00
Kevin Lo
61ec8e057f Since the moduledata structure member priv is a void pointer, using
NULL instead of 0 when dealing with pointers.
2012-10-12 01:31:02 +00:00
Peter Grehan
2f001371c3 Virtio SCSI driver
Submitted by:	Bryan Venteicher  bryanv at daemoninthecloset dot org
Reviewed by:	grehan
2012-10-11 23:41:18 +00:00
Stefan Farfeleder
da0878836b Decode the first two fstab fields with strunvis(3). This allows having spaces
in devices and mount paths, encoded as \s or \040.

PR:		bin/117687
Submitted by:	Martin Kammerhofer
Discussed on:	arch
2012-10-11 07:54:29 +00:00
Jim Harris
e3e901934e Add man pages for nvme(4) and nvd(4).
Sponsored by:	Intel
Reviewed by:	joel
2012-10-10 21:38:17 +00:00
John Baldwin
6a28ff1bb8 WITH_CTF is now a "normal" build option (WITHOUT_CTF is supported and
MK_CTF is used internally).

Reviewed by:	fjoe
2012-10-10 16:07:23 +00:00
Kevin Lo
9823d52705 Revert previous commit...
Pointyhat to:	kevlo (myself)
2012-10-10 08:36:38 +00:00
Kevin Lo
a10cee30c9 Prefer NULL over 0 for pointers 2012-10-09 08:27:40 +00:00
Marcel Moolenaar
0815243c39 Add support for bmake. This includes:
1.  Don't do upgrade_checks when using bmake. As long as we have WITH_BMAKE,
    there's a bootstrap complication in ths respect. Avoid it. Make the
    necessary changes to have upgrade_checks work wth bmake anyway.
2.  Remove the use of -E. It's not needed in our build because we use ?= for
    the respective variables, which means that we'll take the environment
    value (if any) anyway.
3.  Properly declare phony targets as phony as bmake is a lot smarter (and
    thus agressive) about build avoidance.
4.  Make sure CLEANFILES is complete and use it on .NOPATH. bmake is a lot
    smarter about build avoidance and should not find files we generate in
    the source tree. We should not have files in the repository we want to
    generate, but this is an easier way to cross this hurdle.
5.  Have behavior under bmake the same as it is under make with respect to
    halting when sub-commands fail. Add "set -e" to compound commands so
    that bmake is informed when sub-commands fail.
6.  Make sure crunchgen uses the same make as the rest of the build. This
    is important when the make utility isn't called make (but bmake for
    example).
7.  While here, add support for using MAKEOBJDIR to set the object tree
    location. It's the second alternative bmake looks for when determining
    the actual object directory (= .OBJDIR).

Submitted by:	Simon Gerraty <sjg@juniper.net>
Submitted by:	John Van Horne <jvanhorne@juniper.net>
2012-10-06 20:01:05 +00:00
Marcel Moolenaar
a046473b9c Update to include WITH_BMAKE. 2012-10-06 19:28:19 +00:00
Marcel Moolenaar
d4d90f10bc Add bmake to the build and allow it to be installed as make(1) instead
of FreeBSD's make by setting WITH_BMAKE.  The WITH_BMAKE build makes it
easy for people to switch while working out the kinks -- think ports
tree here.  The option will be removed in due time.

Submitted by:	Simon Gerraty (sjg@juniper.net)
2012-10-06 19:19:21 +00:00
Gleb Smirnoff
21d172a3f1 A step in resolving mess with byte ordering for AF_INET. After this change:
- All packets in NETISR_IP queue are in net byte order.
  - ip_input() is entered in net byte order and converts packet
    to host byte order right _after_ processing pfil(9) hooks.
  - ip_output() is entered in host byte order and converts packet
    to net byte order right _before_ processing pfil(9) hooks.
  - ip_fragment() accepts and emits packet in net byte order.
  - ip_forward(), ip_mloopback() use host byte order (untouched actually).
  - ip_fastforward() no longer modifies packet at all (except ip_ttl).
  - Swapping of byte order there and back removed from the following modules:
    pf(4), ipfw(4), enc(4), if_bridge(4).
  - Swapping of byte order added to ipfilter(4), based on __FreeBSD_version
  - __FreeBSD_version bumped.
  - pfil(9) manual page updated.

Reviewed by:	ray, luigi, eri, melifaro
Tested by:	glebius (LE), ray (BE)
2012-10-06 10:02:11 +00:00
Alexander Motin
9c87d811eb Implement SATA revision (speed) control for legacy SATA controller for
both boot (via loader tunables) and run-time (via `camcontrol negotiate`).
Tested to work at least on NVIDIA MCP55 chipset.

H/w provided by:	glebius
2012-10-02 22:03:21 +00:00
Eitan Adler
90d318c685 Indicate (loudly) that ports csup is going away.
While here clarify some other portions.

Approved by:	cperciva (implicit)
MFC after:	3 days
2012-10-01 22:27:34 +00:00
Joel Dahl
2ccfa03129 mdoc: remove superfluous paragraph macro. 2012-09-30 07:51:57 +00:00
Gleb Smirnoff
9c883c6cf0 Give a clue how to force tcpdump(8) to interpret correctly CARP packets. 2012-09-29 10:49:02 +00:00
Gleb Smirnoff
063efed28c The drbr(9) API appeared to be so unclear, that most drivers in
tree used it incorrectly, which lead to inaccurate overrated
if_obytes accounting. The drbr(9) used to update ifnet stats on
drbr_enqueue(), which is not accurate since enqueuing doesn't
imply successful processing by driver. Dequeuing neither mean
that. Most drivers also called drbr_stats_update() which did
accounting again, leading to doubled if_obytes statistics. And
in case of severe transmitting, when a packet could be several
times enqueued and dequeued it could have been accounted several
times.

o Thus, make drbr(9) API thinner. Now drbr(9) merely chooses between
  ALTQ queueing or buf_ring(9) queueing.
  - It doesn't touch the buf_ring stats any more.
  - It doesn't touch ifnet stats anymore.
  - drbr_stats_update() no longer exists.

o buf_ring(9) handles its stats itself:
  - It handles br_drops itself.
  - br_prod_bytes stats are dropped. Rationale: no one ever
    reads them but update of a common counter on every packet
    negatively affects performance due to excessive cache
    invalidation.
  - buf_ring_enqueue_bytes() reduced to buf_ring_enqueue(), since
    we no longer account bytes.

o Drivers handle their stats theirselves: if_obytes, if_omcasts.

o mlx4(4), igb(4), em(4), vxge(4), oce(4) and  ixv(4) no longer
  use drbr_stats_update(), and update ifnet stats theirselves.

o bxe(4) was the most correct driver, it didn't call
  drbr_stats_update(), thus it was the only driver accurate under
  moderate load. Now it also maintains stats itself.

o ixgbe(4) had already taken stats from hardware, so just
  - drop software stats updating.
  - take multicast packet count from hardware as well.

o mxge(4) just no longer needs NO_SLOW_STATS define.

o cxgb(4), cxgbe(4) need no change, since they obtain stats
  from hardware.

Reviewed by:	jfv, gnn
2012-09-28 18:28:27 +00:00
Brooks Davis
815e67dd3b Add a COMPILER_FEATURES variable that is set in bsd.compiler.mk.
When the compiler is clang add c++11 to COMPILER_FEATURES.

When the compiler supports c++11, default to building libc++.  This will
not impact the compliation of programs, but will make it easier for
users with clang compiled systems to test libc++ by passing -stdlib=libc++
to their c++ compliations.
2012-09-26 17:25:15 +00:00
Benjamin Kaduk
5ac3118a32 Minor man page cleanup -- fix grammar, markup fixes, and start each
sentence on a new line.

Approved by:	hrs (mentor)
2012-09-24 15:02:31 +00:00
Alexander Motin
9e2e2b9c3e Document ipv6 hook, present there for ages.
Submitted by:	Dmitry Luhtionov <dmitryluhtionov@gmail.com>
2012-09-24 08:32:19 +00:00
Eitan Adler
7cc324f8bd Remove some duplicated advice.
While here increase the suggested sizes for the
partition as "make universe" takes a lot more
space than mentioned.

Reviewed by:	gavin
Approved by:	gjb
MFC after:	3 days
X-MFC-With:	r240728
2012-09-22 21:34:46 +00:00
Pawel Jakub Dawidek
3ee8189de1 Make the example a bit more pretty. 2012-09-22 17:46:53 +00:00
Kevin Lo
201e2cd64b Remove references to brelse and bremfree, which don't actually exist. 2012-09-20 07:07:35 +00:00
Gleb Smirnoff
e8574be32c Redo r240386 providing more correct information. 2012-09-20 05:49:31 +00:00
Joel Dahl
d62a0fbf2a mdoc: remove superfluous paragraph macro. 2012-09-20 04:53:12 +00:00
Eitan Adler
1fce71e497 Rewrite portions of development.7 to make sense
in the world of subversion.

Approved by:	gjb
MFC after:	2 weeks
2012-09-20 03:48:36 +00:00
David E. O'Brien
e68095558b Add Intel RdRand. 2012-09-19 20:42:55 +00:00
Niclas Zeising
65c081a237 Regen for r240690
Approved by:	joel (mentor)
2012-09-19 11:40:17 +00:00
Niclas Zeising
d86e9d1e0c Do not install pf related man pages if WITHOUT_PF is set.
PR:		bin/171767
Submitted by:	zeising
Approved by:	joel (mentor), glebius
2012-09-19 09:34:21 +00:00
Gleb Smirnoff
7f7ef494f1 Provide kernel compile time option to make pf(4) default rule to drop.
This is important to secure a small timeframe at boot time, when
network is already configured, but pf(4) is not yet.

PR:		kern/171622
Submitted by:	Olivier Cochard-LabbИ <olivier cochard.me>
2012-09-18 11:07:19 +00:00
Hans Petter Selasky
d7dd13419e Add UQ_UMS_IGNORE quirk.
Wrap two long lines.
Some minor spelling correction.

PR:	usb/171721
2012-09-17 19:06:35 +00:00
Glen Barber
0cd4fb9206 Update release(7) to reflect changes from r240586 and r240587:
- Remove cvs(1) references.
 - Remove CVS* environment references.
 - Add default entries for the default SVNROOT for the Ports
   Collection, and Documentation Project.
 - While here, update 'SGML-based documentation' to 'XML-based',
   since the recent SGML->XML conversion.
 - Update an example providing SVNROOT environment usage.

Reminded by:	nwhitehorn
MFC After:	1 week
X-MFC-With:	r240586, r240587
2012-09-17 02:45:52 +00:00
Joel Dahl
9f668383b7 Remove trailing whitespace. 2012-09-16 21:17:28 +00:00
Alexander V. Chernikov
54202ab3d1 Add section describing existing filtering points.
Document byteorder behavior in AF_INET[6] hooks in new section.

MFC after:	2 weeks
2012-09-16 13:13:02 +00:00
Peter Jeremy
e6f5b72e5d - Add myself as a new src committer.
- Sort jhb's mentees
- Add grog's (ex-)mentor

Approved by:	jhb (co-mentor), grog (co-mentor)
2012-09-16 06:44:58 +00:00
Edson Brandi
c99c0499e0 Add myself, and show gabor@ as my mentor.
Approved by:    gabor (mentor)
2012-09-15 20:09:08 +00:00
Jilles Tjoelker
4ca2a3f7d4 siginfo(3): Document TRAP_DTRACE signal code.
MFC after:	1 week
2012-09-14 22:12:04 +00:00
Jilles Tjoelker
5437c0d6ea siginfo(3): Document SI_LWP signal code.
Describe SI_LWP as being generated by pthread_kill() because thr_kill() is
a private undocumented function.

MFC after:	1 week
2012-09-14 22:10:01 +00:00
Jilles Tjoelker
a4c22c274e siginfo(3): Document SI_USER and SI_KERNEL signal codes.
MFC after:	1 week
2012-09-14 22:05:09 +00:00
Eitan Adler
96240c89f0 Correct double "the the"
Approved by:	cperciva
MFC after:	3 days
2012-09-14 21:28:56 +00:00
Eitan Adler
eae8be706e Bump date missed in r202756
PR:		docs/171624
Submitted by:	bdrewery
Approved by:	gabor
MFC after:	3 days
2012-09-14 17:50:42 +00:00
Gleb Smirnoff
3b3a8eb937 o Create directory sys/netpfil, where all packet filters should
reside, and move there ipfw(4) and pf(4).

o Move most modified parts of pf out of contrib.

Actual movements:

sys/contrib/pf/net/*.c		-> sys/netpfil/pf/
sys/contrib/pf/net/*.h		-> sys/net/
contrib/pf/pfctl/*.c		-> sbin/pfctl
contrib/pf/pfctl/*.h		-> sbin/pfctl
contrib/pf/pfctl/pfctl.8	-> sbin/pfctl
contrib/pf/pfctl/*.4		-> share/man/man4
contrib/pf/pfctl/*.5		-> share/man/man5

sys/netinet/ipfw		-> sys/netpfil/ipfw

The arguable movement is pf/net/*.h -> sys/net. There are
future plans to refactor pf includes, so I decided not to
break things twice.

Not modified bits of pf left in contrib: authpf, ftp-proxy,
tftp-proxy, pflogd.

The ipfw(4) movement is planned to be merged to stable/9,
to make head and stable match.

Discussed with:		bz, luigi
2012-09-14 11:51:49 +00:00
Eitan Adler
ebce2fe6d3 Belatedly add myself
MFC after:	3 days
2012-09-14 01:23:28 +00:00
Joel Dahl
09c024e1a1 Minor mdoc fix. 2012-09-13 16:59:20 +00:00
Brooks Davis
9215d178a4 Introduce a new make variable COMPILER_TYPE that specifies what
type of compiler is being used (currently clang or gcc).  COMPILER_TYPE
is set in the new bsd.compiler.mk file based on the value of the CC
variable or, should it prove informative, by running ${CC} --version
and examining the output.

To avoid negative performance impacts in the default case and correct
value for COMPILER_TYPE type is determined and passed in the environment
of submake instances while building world.

Replace adhoc attempts at determining the compiler type by examining
CC or MK_CLANG_IS_CC with checks of COMPILER_TYPE.  This eliminates
bootstrapping complications when first setting WITH_CLANG_IS_CC.

Sponsored by:	DARPA, AFRL
Reviewed by:	Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>, imp, linimon
		(with some modifications post review)
MFC after:	2 weeks
2012-09-13 16:00:46 +00:00
Ivan Voras
ab013dbb49 Document the *_chroot, *_user, *_group and *_nice knobs for services started
by rcng.

Reviewed by:	wblock, dougb
2012-09-13 10:26:55 +00:00
Ed Schouten
4170b08388 Implement LIST_PREV().
Regular LISTs have been implemented in such a way that the prev-pointer
does not point to the previous element, but to the next-pointer stored
in the previous element. This is done to simplify LIST_REMOVE(). This
macro can be implemented without knowing the address of the list head.

Unfortunately this makes it harder to implement LIST_PREV(), which is
why this macro was never here. Still, it is possible to implement this
macro. If the prev-pointer points to the list head, we return NULL.
Otherwise we simply subtract the offset of the prev-pointer within the
structure.

It's not as efficient as traversing forward of course, but in practice
it shouldn't be that bad. In almost all use cases, people will want to
compare the value returned by LIST_PREV() against NULL, so an optimizing
compiler will not emit code that does more branching than TAILQs.

While there, make the code a bit more readable by introducing
__member2struct(). This makes STAILQ_LAST() far more readable.

MFC after:	1 month
2012-09-12 21:03:48 +00:00
David E. O'Brien
e5deeefec6 Add MK_KDUMP. 2012-09-12 14:58:07 +00:00
Gleb Smirnoff
f99a2a0c2b Document conditions for IP_SENDSRCADDR socket option.
Obtained from:	r167342 commit message
2012-09-12 10:09:34 +00:00
Kevin Lo
c25372b320 Add references to VFS_SET(9) and VOP_VPTOFH(9) 2012-09-12 03:39:32 +00:00
Jason E. Hale
8e5c2a044e - Add myself to calendar.freebsd
- Add my mentor relationships to committers-ports.dot

Approved by:	makc (mentor)
2012-09-11 13:29:50 +00:00