Commit Graph

21821 Commits

Author SHA1 Message Date
Warner Losh
8a744de27e stand: Remove i386-only support fire firewire
Remove support for booting off of firewire, and for having dcons via
firewire in the loader. Kernel support for these things is unchanged.
Discussed on arch@ and the current state is not working (and the build
was wrong to boot).

Sponsored by:		Netflix
Discussed:		https://lists.freebsd.org/archives/freebsd-arch/2022-November/000267.html
Reviewed by:		kevans, melifaro, emaste
Differential Revision:	https://reviews.freebsd.org/D37334
2022-11-18 10:43:59 -07:00
Ed Maste
b812132455 man9: add vm_map_unwire link
Reported by:	markj (in D37416)
Sponsored by:	The FreeBSD Foundation
2022-11-17 10:17:52 -05:00
Ed Maste
005609adda man9: correct vm_page_wire.9 links
PR:		244596
Reviewed by:	markj
Fixes:		fee2a2fa39 ("Change synchonization rules for ...")
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D37416
2022-11-17 10:08:36 -05:00
Ed Maste
42af87b83b man9: remove duplicate superio_find_dev link
PR:		244596
Fixes:		c812bea351 ("add superio.4 and superio.9 ...")
Sponsored by:	The FreeBSD Foundation
2022-11-16 19:30:23 -05:00
Ed Maste
07853c6c9d regen src.conf.5 after MK_CXX and arm64 Hyper-V changes
Reported by:	matteo
2022-11-16 11:37:42 -05:00
Kyle Evans
fc8b021e7a share: i18n: fix mismatch in BIG5 esdb generation
In the first loop, we setup Big5_$i_variable where $i are elements of
$PART with : replaced to @.  Do the same in the second loop when we're
trying to refer to the same variable.

No functional change, because none of the in-tree mappings have an @
in them.

Sponsored by:	Klara, Inc.
2022-11-15 22:09:22 -06:00
John Baldwin
f53dc31bb3 src.opts.mk: Disable all of LLVM if C++ support is disabled.
Reviewed by:	imp, emaste
Differential Revision:	https://reviews.freebsd.org/D36891
2022-11-15 19:21:20 -08:00
Baptiste Daroussin
e1184adecf sendmail: remove leftovers from mta_start_script and rc.sendmail
Switch /etc/mail/Makefile to use /etc/rc.d/sendmail instead of
/etc/rc.sendmail this switch should have been done 20 years ago.

While here update the documentation to not refer anymore to
mta_start_script

Reported by:	Jose Luis Duran <jlduran@gmail.com>
2022-11-15 09:10:53 +01:00
Baptiste Daroussin
616f32ea6d othermta: remove leftover from 20 years ago
othermta (along with mta_start_script configuration entry in rc.conf)
was a mechanism used to be able to run another mta than sendmail(8) before
"rcng" time 20 years ago.

othermta has not been used since.
2022-11-14 09:08:37 +01:00
Gordon Bergling
b6d1ac7f01 ascii.7: Add full names of the control character set
Extent the manual page by the full names of the
control character set.

Obtained from:	NetBSD
MFC after:	3 days
2022-11-12 12:22:22 +01:00
John Baldwin
001830ea7a wg.4: Update first appeared release to 13.2.
MFC after:	3 days
2022-11-11 14:11:33 -08:00
Franco Fichtner
b05e7e7022 rc: add a manual entry for ${name}_setup
${name}_prepend is suboptimal as it is prepended to the actual
command being run. Therefore the term "commandS to prepend"
is misleading and no clear separation takes place for setup tasks
that may be required like changing a config file permission or
generating a configuration file prior to service start.

The other reason is that {argument}_precmd is a service-side
variable and cannot be repurposed from the user-side.

Reviewed by:	pauamma
Differential Revision:	https://reviews.freebsd.org/D36210
2022-11-11 22:21:39 +01:00
Mitchell Horne
831979ae0f ddb(4): document some missing commands
This is not exhaustive, just what I collected while working on
mac_ddb(4).

Reviewed by:	pauamma, markj, jhb
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation (in part)
Differential Revision:	https://reviews.freebsd.org/D37333
2022-11-11 14:25:39 -04:00
Mitchell Horne
94f6ee56e3 ddb(4): misc updates
- Describe optional 'addr' argument to many show commands
 - Remove obsolete commands (show cbstat)
 - 'show jails' was renamed to 'show prison'
 - Remove superfluous commentary about sleepqueues
 - Fix an xref to gdb(4)
 - Fix issues reported by mandoc -Tlint
 - Plus a couple other inaccuracies/inconsistencies

Reviewed by:	pauamma, markj, jhb
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation (in part)
Differential Revision:	https://reviews.freebsd.org/D37332
2022-11-11 14:25:38 -04:00
Mitchell Horne
b0832b5074 netdump(4): document all kernel options required
This means INET and DEBUGNET in addition to NETDUMP.

Reviewed by:	pauamma, markj
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D37331
2022-11-11 14:25:38 -04:00
Mitchell Horne
d5f3e80f5a netgdb(4): update list of required kernel options
The man page claims that netgdb will be enabled automatically with the
presence of the DDB, GDB, and INET options. Based on the logic in
conf/files, this is not the case. Update the manpage to list all
of the options required to include netgdb.

Reviewed by:	pauamma, markj
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D37330
2022-11-11 14:25:38 -04:00
Kristof Provost
3d98e253fe man4: if_bridge and if_vlan do support ALTQ
if_vlan(4) has supported ALTQ since 2e5ff01d0a, and if_bridge since
eb680a63de.

Sponsored by:	Rubicon Communications, LLC ("Netgate")
2022-11-10 16:39:47 +01:00
Kristof Provost
4deab7aed7 man4: cxgbe(4) does not support ALTQ
It hasn't supported it since 65d43cc6e7 (so February 2012).

Sponsored by:	Rubicon Communications, LLC ("Netgate")
2022-11-10 16:33:04 +01:00
Baptiste Daroussin
d88828148d rc.conf: document the sendmail options
While here remove the deprecation of the sendmail_enable="NONE" as
it has been deprecated for 20 years and never removed
2022-11-10 07:00:33 +01:00
Baptiste Daroussin
0b1adc42a1 rc.sendmail: remove unused script
20 years ago the use of rc.sendmail script was dropped in favor
of /etc/rc.d/sendmail, it is time to retire the script entirely
now.

MFC after:	1 week
2022-11-09 16:55:18 +01:00
Baptiste Daroussin
6a2d6a569b rc.conf(5): fix the description of mta_start_script
mta_start_script is used by /etc/rc.d/othermta which only execute
something if this variable is set to something else than
/etc/rc.sendmail

MFC after:	1 week
2022-11-09 16:55:18 +01:00
Richard Scheffenegger
dc9daa04fb tcp: allow packets to be marked as ECT1 instead of ECT0
This adds the capability for a modular congestion control
to select which variant of ECN-capable-transport it wants to use
when sending out elegible segments. As an initial CC to utilize
this, DCTCP was selected.

Event:			IETF 115 Hackathon
Reviewed By:		tuexen, #transport
Sponsored by:		NetApp, Inc.
Differential Revision:	https://reviews.freebsd.org/D24869
2022-11-08 18:36:38 +01:00
Li-Wen Hsu
82e4a85de5
netlink: connect netlink(4), rtnetlink(4), genetlinl(4) to build
MFC after:	2 months
		(after 7366c0a49c)
2022-11-08 00:50:00 +08:00
Johannes Totz
a9a35c9e35 re.4: Mention vendor driver for if_re(4)
If this if_re(4) is causing problems then an updated driver from
the vendor can be found in the ports tree under net/realtek-re-kmod.

Reviewed by:	debdrup, koobs, emaste
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D33677
2022-11-07 13:16:52 +01:00
Gordon Bergling
bdbc05bea9 tcp_rack: Add a manual page
- add a manual page for tcp_rack(4)
- link it in the tcp(4) and tcp_bbr(4) man pages
- hook it up to build in the Makefile

Reviewed by:	pauamma
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D37209
2022-11-07 12:28:39 +01:00
Gordon Bergling
4d00d772e9 resolver.5: Add an EXAMPLES section
In case local-unbound(8) fails for some reason, it could be useful
to have a basic resolv.conf(5) example in the manual page.

Reviewed by:	karels, pauamma
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D37183
2022-11-07 12:09:43 +01:00
Gordon Bergling
8a220816c7 intro.3: Document 'libstdthreads' (the ISO C11 '<threads.h>' library).
It's still relatively uncommon to see C11 '<threads.h>' being used,
but it's worth documenting, especially since FreeBSD requires a
different library for C11 threads  compared to glibc (part of '-lpthread')
or musl libc  (included by default).

PR:	267551
Submitted by:	Alois Klink <alois plus freebsd at aloisklink dot com>
Reviewed by:	pauamma
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D37284
2022-11-07 11:34:00 +01:00
Li-Wen Hsu
61273a28e8
rc.conf(5): Add mssing definite article
Reported by:	rpokala
2022-11-07 16:03:50 +08:00
Li-Wen Hsu
72a1cb05cd
rc(8): Add a zpoolupgrade rc.d script
If a zpool is created by makefs(8), its version is 5000, i.e., all
feature flags are off.  Introduce an rc script to run `zpool upgrade`
over the assigned zpools on the first boot.  This is useful to the
ZFS based VM images built from release(7).

Reviewed by:	imp, markj, mav
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D37282
2022-11-07 11:30:09 +08:00
Alan Somers
002c47bade [skip ci] Remove obsolete references in crypto_request(9)
They were missed by 68f6800ce0.

Sponsored by:	Axcient
MFC with:	68f6800ce0
Reviewed by:	markj
Differential Revision: https://reviews.freebsd.org/D37239
2022-11-02 11:09:06 -06:00
Corvin Köhne
1b898b834b Add corvink to the src committers and manu as my mentor
Approved by:		manu (mentor)
Differential Revision:	https://reviews.freebsd.org/D37237
2022-11-02 16:58:00 +01:00
Kristof Provost
8a8af94240 pf: bridge-to
Allow pf (l2) to be used to redirect ethernet packets to a different
interface.

The intended use case is to send 802.1x challenges out to a side
interface, to enable AT&T links to function with pfSense as a gateway,
rather than the AT&T provided hardware.

Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D37193
2022-11-02 15:45:23 +01:00
Zhenlei Huang
fd6b681e45 Add myself (zlei) as a src committer and kp / melifaro as my mentors
Follow step 7.1.5 in the Committer's Guide.

Reviewed by:	kp
Approved by:	kp (mentor)
Differential Revision:	https://reviews.freebsd.org/D37233
2022-11-02 18:37:34 +08:00
Alexander V. Chernikov
7366c0a49c netlink: add netlink user documentation.
Add netlink(4) as a "frontend" manpage describing netlink in general.
Add rtnelink(4) describing supported commands and attributes in
NETLINK_ROUTE family.
Add genetlink(4) describing generic netlink API.

Reviewed by:	pauamma
Differential Revision: https://reviews.freebsd.org/D37011
2022-11-01 17:07:50 +00:00
Mitchell Horne
6028a56562 development(7): redirect users from hier(7)
The layout of the source tree is now only described in README.md. Retain
the cross-reference to hier(7) in SEE ALSO; it is still useful to
readers.

Reviewed by:	imp, emaste
MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D37136
2022-11-01 12:20:55 -03:00
Mitchell Horne
f0e4e02110 hier(7): remove text describing /usr/src layout
It poses a maintenance burden, since much of the information is
duplicated in the src tree's README.md file. Readers who are interested
enough in learning about the structure of the src tree can download it,
or browse the README online. Have hier(7) just point them there instead.

PR:		261349
Discussed with:	freebsd-arch@, freebsd-doc@ lists
Reviewed by:	imp, emaste
MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D37135
2022-11-01 12:20:55 -03:00
Gordon Bergling
d835a2f8be bsd.sanitizer.mk: Fix a typo in a comment
- s/santizers/sanitizers/

MFC after:	3 days
2022-11-01 09:18:34 +01:00
Gleb Smirnoff
620042a66b tcp.4: undocument compressed TIME_WAIT 2022-10-31 09:02:33 -07:00
Gleb Smirnoff
19acc50667 inpcb: retire suppresion of randomization of ephemeral ports
The suppresion was added in 5f311da2cc with no explanation in the
commit message of the exact problem that was fixed. In the BSDCan
2006 talk [1], slides 12 to 14, we can find that it seems that there
was some problem with the TIME_WAIT state not properly being handled
on the remote side (also FreeBSD!), and this switching off the
suppression had hidden the problem.  The rationale of the change was
that other stacks may also be buggy wrt the TIME_WAIT.

I did not find the actual problem in TIME_WAIT that the suppression
has hidden, neither a commit that would fix it.  However, since that
time we started to handle SYNs with RFC5961 instead of RFC793, see
3220a2121c.  We also now have the tcp-testsuite [2], that has full
coverage of all possible scenarios of receiving SYN in TIME_WAIT.

This effectively reverts 5f311da2cc
and 6ee79c59d2.

[1] https://www.bsdcan.org/2006/papers/ImprovingTCPIP.pdf
[2] https://github.com/freebsd-net/tcp-testsuite

Reviewed by:		rscheff
Discussed with:		rscheff, rrs, tuexen
Differential revision:	https://reviews.freebsd.org/D37042
2022-10-31 08:57:11 -07:00
Gordon Bergling
c72854c06a wg.4: Update the SPDX License Identifier
The following License Identifier
'BSD-2-Clause-FreeBSD' is not allowed
for new code so use the correct on.

Reported by:	imp
2022-10-30 19:05:30 +01:00
Mitchell Horne
334fc46f05 intr_event(9): document intr_event_handle()
Reviewed by:	pauamma
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D36934
2022-10-30 11:07:04 -03:00
Gordon Bergling
19c03f4ab0 wg.4: Add some enhancements
- add a SPDX-License-Identifier
- rename the title of the man page
- use better grammar in some places
- reword 'IPs' to 'IP addresses'
- add a missing word in the AUTHORS section
- use '.An -nosplit' in the AUTHORS section
- Xr ipsec and ovpn

Reviewed by:	pauamma, mhorne
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D37205
2022-10-30 13:59:37 +01:00
Warner Losh
c07be2c53e make: Don't print as many ==> and -- xxx -- lines in meta mode
Since metamode just announces what it's doing, the extra -- xxx -- lines
aren't needed for recursive descent, nor are the ==> lines needed. This
speeds up rebuilding kernels a lot...

Sponsored by:		Netflix
Reviewed by:		sjg, bdrewery
Differential Revision:	https://reviews.freebsd.org/D37071
2022-10-29 10:13:54 -06:00
Mark Johnston
89585511cc release: Add support for creating ZFS-based VM images
The change extends vmimage.subr to handle a new parameter, VMFS, which
should be equal to either "ufs" or "zfs".  When it is set to ZFS, we use
makefs to create a bootable pool populated using the same dataset layout
as bsdinstall and "poudriere image" use.  The pool can be grown using
the growfs rc.d script, just as in UFS images.

This will make it easy to provide VM and cloud images with ZFS as the
root filesystem.  So far I did not do extensive testing of cloud images;
I merely verified that creation of ZFS-based AWS AMIs works and allows
me to create amd64 and arm64 EC2 instances with ZFS as the root
filesystem.

Reviewed by:	emaste, gjb
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D34426
2022-10-28 17:00:24 -04:00
John Baldwin
744bfb2131 Import the WireGuard driver from zx2c4.com.
This commit brings back the driver from FreeBSD commit
f187d6dfbf plus subsequent fixes from
upstream.

Relative to upstream this commit includes a few other small fixes such
as additional INET and INET6 #ifdef's, #include cleanups, and updates
for recent API changes in main.

Reviewed by:	pauamma, gbe, kevans, emaste
Obtained from:	git@git.zx2c4.com:wireguard-freebsd @ 3cc22b2
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D36909
2022-10-28 13:36:12 -07:00
Souradeep Chakrabarti
9729f076e4 arm64: Hyper-V: enablement for ARM64 in Hyper-V (Part 3, final)
This is the last part for ARM64 Hyper-V enablement. This includes
commone files and make file changes to enable the ARM64 FreeBSD
guest on Hyper-V. With this patch, it should be able to build
the ARM64 image and install it on Hyper-V.

Reviewed by:	emaste, andrew, whu
Tested by:	Souradeep Chakrabarti <schakrabarti@microsoft.com>
Sponsored by:	Microsoft
Differential Revision:	https://reviews.freebsd.org/D36744
2022-10-27 13:53:22 +00:00
Gordon Bergling
31c472b8a6 CMSG_DATA.3: Fix a typo in the EXAMPLES section
- s/faild/failed/

MFC after:	3 days
2022-10-25 12:49:21 +02:00
Gordon Bergling
1cc4c2f90f run.4: Fix a typo in the DIAGNOSTICS section
- s/faild/failed/

MFC after:	3 days
2022-10-25 12:47:29 +02:00
Takanori Watanabe
2d00d160ae man: hook acpi_ged.4 to build.
Submittet by: yuri@astern.org

Differential Revision: https://reviews.freebsd.org/D37114
2022-10-25 19:01:58 +09:00
Mark Johnston
9ca7ca92f3 man4: Hook mac_ddb.4 up to the build
Fixes:		287d467c5d ("mac: add new mac_ddb(4) policy")
Sponsored by:	Juniper Networks, Inc.
Sponsored by:	Klara, Inc.
2022-10-24 12:24:51 -04:00