Commit graph

20972 commits

Author SHA1 Message Date
Konstantin Belousov
dfda6a71e7 /dev/pci: clarify meaning of writeable file descriptor
(cherry picked from commit 85ae35ef37)
2021-08-03 12:52:36 +03:00
Luiz Otavio O Souza
50ecd99be5 bpf: Add an ioctl to set the VLAN Priority on packets sent by bpf
This allows the use of VLAN PCP in dhclient, which is required for
certain ISPs (such as Orange.fr).

Reviewed by:	bcr (man page)
MFC after:	1 week
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D31263

(cherry picked from commit 1e7fe2fbb9)
2021-08-02 16:50:32 +02:00
Tom Jones
a77a6a049e inet6_option_space is deprecated, refer to inet6_opt_init instead
Reviewed by:	bz, hrs
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D26273

(cherry picked from commit 0943200b13)
2021-08-02 13:58:51 +01:00
Kristof Provost
7408fb55f0 pf.conf.5: Document new 'match' keyword
Reviewed by:	bcr
Obtained from:	pfSense
MFC after:	2 weeks
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D31117

(cherry picked from commit 0351b9875a)
2021-07-31 10:12:10 +02:00
Mark Johnston
3afad070bd man9: Update guarantees for userspace fetch/store operations
Platforms may either silently handle unaligned accesses or return an
error.  Atomicity is not guaranteed in this case, however.

Reviewed by:	kib
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit fd5827b178)
2021-07-29 08:11:39 -04:00
Mark Johnston
c2edab507e man9: Remove stray .In macros
Fixes:		9c11d8d483

(cherry picked from commit 18c696c001)
2021-07-29 08:11:30 -04:00
Li-Wen Hsu
f61cd3dbe4
man7: Update FreeBSD.org URLs
MFC after:	3 days

(cherry picked from commit 8dfb002457)
2021-07-28 03:22:25 +08:00
Li-Wen Hsu
5201006cf9
share/misc: Update FreeBSD.org URLs
MFC after:	3 days

(cherry picked from commit 89c0640c70)
2021-07-28 03:21:19 +08:00
Mark Johnston
268b034fbc Add some missing osd.9 MLINKs
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 5d40fb677a)
2021-07-23 07:49:39 -04:00
Emmanuel Vadot
a402f80395 an: Deprecate the driver
Last an(4) devices have been End Of Life and End Of Sale in 2007.
Time to remove this driver.

Differential Revision:	https://reviews.freebsd.org/D30678
Reviewed by:		imp (earlier version), adrian (earlier version)
MFC after:		3 days
Sponsored by:		Diablotin Systems

(cherry picked from commit ab30bb8270)
2021-07-22 19:18:56 +02:00
Oskar Holmund
5c11eddf95 share/man/man9/pwmbus.9 fix types in arguments
Fix the types of period and duty in share/man/man9/pwmbus.9 to match the one in sys/dev/pmw/pwmbus.c.

Reviewed By: rpokala
Differential Revision: https://reviews.freebsd.org/D29139
MFC after:   3 days

(cherry picked from commit 7d4a5de84d)
2021-07-22 18:39:56 +02:00
Warner Losh
9148a80a65 mk: LZMA_SUPPORT is unused
Retire LZMA_SUPPORT. It's unused since r332995.

Reviewed by:		delphij
PR:			244302
Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D31088

(cherry picked from commit d8514fa6f1)
2021-07-16 12:28:44 -06:00
Michael Tuexen
c5ba872129 tcp: tolerate missing timestamps
Some TCP stacks negotiate TS support, but do not send TS at all
or not for keep-alive segments. Since this includes modern widely
deployed stacks, tolerate the violation of RFC 7323 per default.

Reviewed by:		rgrimes, rrs, rscheff
Differential Revision:	https://reviews.freebsd.org/D30740
Sponsored by:		Netflix, Inc.

(cherry picked from commit 870af3f4dc)
2021-07-13 20:24:09 +02:00
Warner Losh
d765d5c2c3 config_intrhook: provide config_intrhook_drain
config_intrhook_drain will remove the hook from the list as
config_intrhook_disestablish does if the hook hasn't been called.  If it has,
config_intrhook_drain will wait for the hook to be disestablished in the normal
course (or expedited, it's up to the driver to decide how and when
to call config_intrhook_disestablish).

This is intended for removable devices that use config_intrhook and might be
attached early in boot, but that may be removed before the kernel can call the
config_intrhook or before it ends. To prevent all races, the detach routine will
need to call config_intrhook_train.

Sponsored by:		Netflix, Inc
Reviewed by:		jhb, mav, gde (in D29006 for man page)
Differential Revision:	https://reviews.freebsd.org/D29005

(cherry picked from commit e52368365d)
2021-07-12 13:30:55 -06:00
Ceri Davies
f00dd44f0a devmatch: improve naming of devmatch config variable
Accept the old rc.conf variable if the new one is not present for
compatability.

Approved by:	imp
Differential Revision:	https://reviews.freebsd.org/D30806

(cherry picked from commit c43b0081fa)
2021-07-08 16:14:07 -06:00
Ed Maste
9e06b34bb5 Add deprecation notice for WITH_PROFILE option
As discussed on freebsd-current [1] and freebsd-arch [2] and review
D30833, FreeBSD 14 will ship without the _p.a libraries built with -pg.
Both upstream and base system (in commit b762974cf4) Clang have been
modified to remove the special case for linking against these libraries.

Clang's -pg support and mcount() remain, so building with -pg can still
be used on code that the user builds; we just do not provide prebuilt
libraries compiled with -pg.  A similar change is still needed for GCC.

[1]  https://lists.freebsd.org/pipermail/freebsd-current/2020-January/075105.html
[2] https://lists.freebsd.org/archives/freebsd-arch/2021-June/000016.html

MFC after:	1 week
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 175841285e)

Clarify notice for profiled libraries in FreeBSD 14

Reported by:	kevans
Fixes:		175841285e ("Add deprecation notice for...")
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit f94360971e)
2021-07-07 09:17:06 -04:00
Alan Somers
d6e8b20898 vn_fullpath.9: update args after rev 364633
Sponsored by:	Axcient
Reviewed by:	imp
Differential Revision: https://reviews.freebsd.org/D30779

(cherry picked from commit fcb5a0a2ad)
2021-07-03 17:39:03 -06:00
Emmanuel Vadot
e39af9beda pkgbase: Put the mibs and defs in the bnsmp package
Differential Revision:	https://reviews.freebsd.org/D30756
Sponsored by:	Diablotin Systems
2021-06-30 09:24:33 +02:00
Emmanuel Vadot
9e4940840d pkgbase: Put dtrace in its own package
While dtrace is usefull some people might not want it.

Differential Revision:	https://reviews.freebsd.org/D30752
Sponsored by:	Diablotin Systems
2021-06-30 09:24:32 +02:00
Emmanuel Vadot
8c80fd3416 bsd.lib.mk: Add a install target for .pc files
That way the files are correctly taggued for pkgbase

Reviewed by:	bapt, emaste (both earlier version)
Differential Revision:	https://reviews.freebsd.org/D29171
MFC after:      2 weeks
2021-06-30 09:24:30 +02:00
Konstantin Belousov
dc107fe1f9 linuxolator: Add compat.linux.setid_allowed knob
PR:	21463

(cherry picked from commit 598f6fb49c)
2021-06-13 04:22:33 +03:00
Konstantin Belousov
043f204985 fdescfs: add an option to return underlying file vnode on lookup
(cherry picked from commit f9b1e711f0)
2021-06-11 03:33:48 +03:00
Li-Wen Hsu
cb96c6ba30
Clarify that the new STABLE branch is branched off CURRENT, not renamed
Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D29317

(cherry picked from commit 53844d3ea4)
2021-06-10 23:42:39 +08:00
Dmitry Chagin
923cd7e05a rtwn_usb(4): Add a USB ID for the TP-Link Archer T2U v3.
PR:		256203
Submitted by:	Steve Kargl sgk at troutmask.apl.washington.edu

(cherry picked from commit 434c46c006)
2021-06-10 09:14:22 +03:00
John Baldwin
cbf2dc5ffc src.conf.5: Regen. 2021-06-09 15:24:42 -07:00
John Baldwin
a4f99b3c23 Disable building svnlite(1) by default.
Now that all repositories have switched to git, initiate the de-orbit
burn for svnlite(1).

Reviewed by:	emaste
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D30105

(cherry picked from commit a2bc17474b)
2021-06-09 15:21:59 -07:00
Dmitry Chagin
7cddc353b6 rtwn_usb(4): add revision number for D-Link DWA-121 (N150 Nano).
(cherry picked from commit 17dafdc0de)
2021-06-09 09:37:50 +03:00
Dmitry Chagin
f38af5d76c rtwn_usb(4): add D-Link DWA-121 (N150 Nano) to the rtwn_usb hardware list
(cherry picked from commit 962b3a0926)
2021-06-09 09:37:36 +03:00
Dmitry Chagin
13bdb7d594 rtwn_usb(4): add Mercusys MW150US (N150 Nano) to the rtwn_usb hardware list.
(cherry picked from commit 399bad7b9a)
2021-06-09 09:37:19 +03:00
Michael Tuexen
821543e783 mod_cc: cross reference CC modules consistently
Reviewed by:		bcr, gbe
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D30240

(cherry picked from commit 8ea5eeb913)
2021-06-09 02:04:12 +02:00
Michael Tuexen
95b7e4e0fe tcp: fix man page
Reviewed by:		gbe, rscheff
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D29963

(cherry picked from commit 6096814d31)
2021-06-07 11:02:31 +02:00
Michael Tuexen
fa50e98328 mend 2021-06-07 11:01:28 +02:00
Dmitry Chagin
195f47fdb6 run(4): add support for DLINK DWA-130 rev F1 wireless adaptor.
PR:		256092
Submitted by:	Francois Briere <purplefiasco at gmail.com>

(cherry picked from commit 8746bc9187)
2021-06-06 14:23:43 +03:00
Dmitry Chagin
c93a3187c2 rsu(4): add ASUS WL-167G V3 to the list of supported devices.
(cherry picked from commit b595729ccf)
2021-06-06 14:23:10 +03:00
Hans Petter Selasky
c7ed836df3 Update ugen(4) manual page.
Fix description of generic USB character devices.

PR:		244842
Sponsored by:	Mellanox Technologies // NVIDIA Networking

(cherry picked from commit c65e2d7092)
2021-06-02 13:25:20 +02:00
Gordon Bergling
849fdb8d7d iwn(4): Remove duplicate device entry
'Intel Centrino Wireless-N 6250' is listed twice in the description
section of the manual page.

PR:	256257
Reported by:	Daniel Cervus <danielthedeer at outlook dot com>

(cherry picked from commit 66e2a5803b)
2021-06-02 08:26:22 +02:00
Dmitry Chagin
b10d52e549 run(4): fix manual after d6fd321ef6.
PR:		255759

(cherry picked from commit 43f5d5bf01)
2021-06-01 13:05:41 +03:00
J.R. Oldroyd
fe0ff38bf1 DRIVER_MODULE(9): Correct the SYNOPSIS of EARLY_DRIVER_MODULE()
The man page SYNOPSIS for EARLY_DRIVER_MODULE() shows that it has
an "enum sysinit_elem_order order" argument.

The actual macro in sys/bus.h does not have an order argument.

PR:	256103
Reported by:	J.R. Oldroyd <fbsd at opal dot com>
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D30411

(cherry picked from commit 3fdd5c1e49)
2021-06-01 07:32:48 +02:00
Mitchell Horne
608c12291c scsi(4): fix "NMVe" typo
(cherry picked from commit 788401188f)
2021-05-27 10:40:40 -03:00
Mitchell Horne
5500a15642 build(7): use a more relevant example for PORTS_MODULES
emulators/kqemu-kmod no longer exists in the ports tree.

Reviewed by:	imp, bcr
Differential Revision:	https://reviews.freebsd.org/D30261

(cherry picked from commit 7fbc0c98a8)
2021-05-27 10:40:05 -03:00
Lutz Donnerhacke
cab6109379 netgraph/ng_bridge: move MACs via control message
Use the new control message to move ethernet addresses from a link to
a new link in ng_bridge(4).  Send this message instead of doing the
work directly requires to move the loop detection into the control
message processing.  This will delay the loop detection by a few
frames.

This decouples the read-only activity from the modification under a
more strict writer lock.

Reviewed by:	manpages (gbe)
Differential Revision:	https://reviews.freebsd.org/D28559

(cherry picked from commit f6e0c47169)
2021-05-27 12:55:37 +02:00
Lutz Donnerhacke
53ccd92495 netgraph/ng_bridge: learn MACs via control message
Add a new control message to move ethernet addresses to a given link
in ng_bridge(4). Send this message instead of doing the work directly.
This decouples the read-only activity from the modification under a
more strict writer lock.

Decoupling the work is a prerequisite for multithreaded operation.

Approved by:	manpages (bcr), kp (earlier version)
Differential Revision:	https://reviews.freebsd.org/D28516

(cherry picked from commit b1bd44732d)
2021-05-27 12:55:29 +02:00
Kristof Provost
def59341c9 pf: Add DIOCGETSTATESNV
Add DIOCGETSTATESNV, an nvlist-based alternative to DIOCGETSTATES.

MFC after:      1 week
Sponsored by:   Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D30243

(cherry picked from commit 0592a4c83d)
2021-05-27 09:05:50 +02:00
Kristof Provost
70762ee0f2 pf: Add DIOCGETSTATENV
Add DIOCGETSTATENV, an nvlist-based alternative to DIOCGETSTATE.

MFC after:	1 week
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D30242

(cherry picked from commit 1732afaa0d)
2021-05-27 09:04:36 +02:00
Kristof Provost
a9620e7c70 pf: Allow states to by killed per 'gateway'
This allows us to kill states created from a rule with route-to/reply-to
set.  This is particularly useful in multi-wan setups, where one of the
WAN links goes down.

Submitted by:	Steven Brown
Obtained from:	https://github.com/pfsense/FreeBSD-src/pull/11/
MFC after:	1 week
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D30058

(cherry picked from commit abbcba9cf5)
2021-05-14 10:24:00 +02:00
Gordon Bergling
699e490dfc full(4): Use correct section name for AUTHORS
PR:	255715
Reported by:	Christos Margiolis <christos at christosmarg dot xyz>

(cherry picked from commit 416051f581)
2021-05-12 10:15:19 +02:00
Kristof Provost
898407819d pf: Optionally attempt to preserve rule counter values across ruleset updates
Usually rule counters are reset to zero on every update of the ruleset.
With keepcounters set pf will attempt to find matching rules between old
and new rulesets and preserve the rule counters.

MFC after:	4 weeks
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D29780

(cherry picked from commit 42ec75f83a)
2021-05-11 17:04:45 +02:00
Kurosawa Takahiro
e49799dcf1 pf: Implement the NAT source port selection of MAP-E Customer Edge
MAP-E (RFC 7597) requires special care for selecting source ports
in NAT operation on the Customer Edge because a part of bits of the port
numbers are used by the Border Relay to distinguish another side of the
IPv4-over-IPv6 tunnel.

PR:		254577
Reviewed by:	kp
Differential Revision:	https://reviews.freebsd.org/D29468

(cherry picked from commit 2aa21096c7)
2021-05-11 17:04:45 +02:00
Alex Richardson
f66ada7504 bsd.compiler.mk: detect Apple Clang for cross-builds
Apple clang uses a different versioning scheme, so if we enable or
disable certain warnings for Clang 11+, those might not be supported
in Apple Clang 11+. This adds 'apple-clang' to COMPILER_FEATURES, so that
bootstrap tools Makefiles can avoid warnings on macOS.

Reviewed By:	imp
Differential Revision: https://reviews.freebsd.org/D29680

(cherry picked from commit ba1182e263)
2021-05-11 09:39:25 +01:00
Kristof Provost
0da554e4b6 pfctl: Move ioctl abstraction functions into libpfctl
Introduce a library to wrap the pf ioctl interface.

MFC after:	4 weeks
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D29562

(cherry picked from commit 0d71f9f36e)
2021-05-07 10:15:42 +02:00