]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
5 months agorc.initdiskless: Remove bogus plus sign
Jose Luis Duran [Sun, 31 Dec 2023 18:39:37 +0000 (13:39 -0500)]
rc.initdiskless: Remove bogus plus sign

Reviewed by: imp, dab
Fixes: Fixes: 93b7818226cf ("libexec/rc/rc.initdiskless: make tar's path flexible")
Differential Revision: https://reviews.freebsd.org/D43241

5 months agolibdtrace: Fix line number reporting in error messages
Mark Johnston [Sun, 31 Dec 2023 17:37:06 +0000 (12:37 -0500)]
libdtrace: Fix line number reporting in error messages

MFC after: 1 week

5 months agogtaskqueue: Fix a typo
Mark Johnston [Sun, 31 Dec 2023 16:36:12 +0000 (11:36 -0500)]
gtaskqueue: Fix a typo

This is a no-op in practice since gtaskqueue_thread_enqueue() and
taskqueue_thread_enqueue() are identical, and while _gtaskqueue_create()
compares the enqueue callback pointer with gtaskqueue_thread_enqueue(),
the result has no effect since TQ_FLAGS_UNLOCKED_ENQUEUE was copied
directly from subr_taskqueue.c and is unused in the gtaskqueue code.

Fix it anyway since it's a bug.  More generally we really need to
consolidate subr_taskqueue.c and subr_gtaskqueue.c.

PR: 270661
MFC after: 1 week

5 months agofrag6 tests: Serialize
Mark Johnston [Sun, 18 Jun 2023 18:14:43 +0000 (14:14 -0400)]
frag6 tests: Serialize

I'm not sure exactly why, but these tests consistently fail when run in
parallel.  Serialize them for now.

MFC after: 1 week

5 months agofrag6: Reduce code duplication
Mark Johnston [Sun, 31 Dec 2023 16:15:48 +0000 (11:15 -0500)]
frag6: Reduce code duplication

The code which removes a fragment queue from the per-VNET hash table was
duplicated three times.  Factor it out into a function.  No functional
change intended.

Reviewed by: kp, bz
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D43228

5 months agofrag6: Drop unneeded casts from malloc calls
Mark Johnston [Sun, 31 Dec 2023 16:15:22 +0000 (11:15 -0500)]
frag6: Drop unneeded casts from malloc calls

No functional change intended.

MFC after: 1 week

5 months agoperiodic: Make daily diff(1) output as small is possible
Michael Osipov [Fri, 24 Nov 2023 09:26:41 +0000 (10:26 +0100)]
periodic: Make daily diff(1) output as small is possible

Make, by default, daily diff(1) ignore whitespace changes and the unified output
a context of zero (0) lines. This reduces output of unrelated lines in e-mails
delivered to root.

PR: 270266
Approved by: jrm (mentor), karels
MFC after: 1 month
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D42762

5 months agoperiodic: Make daily diff(1) flags configurable with daily_diff_flags
Michael Osipov [Fri, 24 Nov 2023 09:26:41 +0000 (10:26 +0100)]
periodic: Make daily diff(1) flags configurable with daily_diff_flags

PR: 270266
Approved by: jrm (mentor), karels
MFC after: 1 month
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D42900

5 months agoperiodic: Make security diff(1) output as small is possible
Michael Osipov [Fri, 24 Nov 2023 09:26:41 +0000 (10:26 +0100)]
periodic: Make security diff(1) output as small is possible

Make, by default, security diff(1) produce a unified output with a context of
zero (0) lines. This reduces output of unrelated lines in e-mails delivered
to root.

PR: 270266
Approved by: jrm (mentor), karels
MFC after: 1 month
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D43071

5 months agobsd.man.mk allow staging compressed pages
Simon J. Gerraty [Sat, 30 Dec 2023 17:10:03 +0000 (09:10 -0800)]
bsd.man.mk allow staging compressed pages

In the DIRDEPS_BUILD we use staging.
The staging logic in bsd.man.mk was in the wrong place, shift it
and add compressed man pages to the stage set if appropriate.

Reviewed by: stevek
Differential Revision: https://reviews.freebsd.org/D43238

5 months agotcp: fix ports
Michael Tuexen [Sat, 30 Dec 2023 02:28:13 +0000 (03:28 +0100)]
tcp: fix ports

inline is only support in C99 and newer. To support also C89, use
__inline instead as suggested by dim.

Reported by: eduardo
Reviewed by: rscheff, markj, dim, imp
Tested by: eduardo
Fixes: a8b70cf26030 ("netpfil: Use accessor functions and named constants for all tcphdr flags")
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D43231

5 months agokern: Introduce kern.pid_max_limit sysctl.
Pawel Jakub Dawidek [Sat, 30 Dec 2023 06:15:17 +0000 (22:15 -0800)]
kern: Introduce kern.pid_max_limit sysctl.

The kern.pid_max_limit will hold the PID_MAX value the kernel was
compiled with. The existing kern.pid_max sysctl can be modified and
doesn't really represent maximum PID number in the system, as there
may still be processes created with higher PIDs before kern.pid_max
was lowered.

Reivewed by: kib, zlei
Approved by: oshogbo
Differential Revision: https://reviews.freebsd.org/D43077

5 months agocopy_file_range.2: Clarify that only regular files work
Rick Macklem [Fri, 29 Dec 2023 22:59:00 +0000 (14:59 -0800)]
copy_file_range.2: Clarify that only regular files work

PR#273962 reported that copy_file_range(2) did not work
on shared memory objects and returned EINVAL.
Although the reporter felt this was incorrect, it is what
the Linux copy_file_range(2) syscall does.

Since there was no collective agreement that the FreeBSD
semantics should be changed to no longer be Linux compatible,
copy_file_range(2) still works on regular files only.

This man page update clarifies that. If, someday, copy_file_range(2)
is changed to support non-regular files, then the man page will
need to be updated to reflect that.

PR: 273962
Reviewed by: karels, pauamma_gundo.com (manpages)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D43227

5 months agobhyve: verify that user provided fbuf values fall within limits
Robert Wing [Fri, 29 Dec 2023 19:18:15 +0000 (10:18 -0900)]
bhyve: verify that user provided fbuf values fall within limits

The upper limits for height/width are already checked, this commit
enforces the lower limit as well.

The behavior is also changed such that, the framebuffer fails to
initialize if the provided values don't parse cleanly.

Reviewed by: corvink, jhb
Differential Revision: https://reviews.freebsd.org/D42692

5 months agobsdinstall: rename "Live CD" to "Live System"
Pierre Pronchery [Fri, 29 Dec 2023 18:23:48 +0000 (19:23 +0100)]
bsdinstall: rename "Live CD" to "Live System"

This uses more generic wording in the FreeBSD installer, when offering
the user to use the system booted without running the installer.

The updated wording is also reflected in freebsd-version(1).

Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D43233

5 months agoMerge commit c97a7675eea4 from llvm git (by Qiu Chaofan):
Dimitry Andric [Fri, 29 Dec 2023 19:30:45 +0000 (20:30 +0100)]
Merge commit c97a7675eea4 from llvm git (by Qiu Chaofan):

  [PowerPC] Expand FSINCOS of fp128 (#76494)

This fixes "fatal error: error in backend: Cannot select: 0x6d420285c0:
f128,f128 = fsincos 0x6d4202b6f0" when compiling s_cpowl.c for
powerpc64le.

Upstream ticket: https://github.com/llvm/llvm-project/issues/76442

Reported by: pkubaj
MFC after: 3 days

5 months agocamcontrol: add support for Toshiba drive firmware update
Kenneth D. Merry [Fri, 29 Dec 2023 19:23:51 +0000 (14:23 -0500)]
camcontrol: add support for Toshiba drive firmware update

Thanks to Toshiba for providing the SCSI spec for their latest
generation drives so I could confirm how they operate.

The firmware download works in a pretty standard way, so this
is a straightforward table addition.

sbin/camcontrol/camcontrol.8:
Document that Toshiba drives are supported for fwdownload,
and that it was tested on TOSHIBA MG10SFA22TE 22TB drives.

sbin/camcontrol/fwdownload.c:
Add TOSHIBA to the known SCSI vendors list for fwdownload.

Sponsored by: Spectra Logic
MFC after: 3 days

5 months agollvm: Support: don't block signals around close if it can be avoided
Mateusz Guzik [Fri, 29 Dec 2023 18:51:56 +0000 (18:51 +0000)]
llvm: Support: don't block signals around close if it can be avoided

Signal blocking originally showed up in 51c2afc4b65b2782 ("Support:
Don't call close again if we get EINTR"), but it was overzealous --
there are systems where the error is known to be fine.

This commit elides signal blocking for said systems (the list is
incomplete though).

Note close() can still fail for other reasons (like ENOSPC), in which
case an error will be returned while the fd slot is cleared up.

Reviewed by: dim
Differential Revision: https://reviews.freebsd.org/D42984

5 months agovmm: MTRR should be saved/restored
Vitaliy Gusev [Fri, 29 Dec 2023 18:03:20 +0000 (09:03 -0900)]
vmm: MTRR should be saved/restored

This fixes restoring a Linux VM if it was suspended while in the GRUB
menu.

Adding MTTR increases the kernel dump size by 256 bytes per vCPU.

Sponsored by:   vStack
Reviewed by:    markj, rew
Differential Revision:  https://reviews.freebsd.org/D43226

5 months agobhyve: increase SNAPSHOT_BUFFER_SIZE
Vitaliy Gusev [Fri, 29 Dec 2023 17:37:43 +0000 (08:37 -0900)]
bhyve: increase SNAPSHOT_BUFFER_SIZE

After commit fb51ddb20d57, suspending a vm fails with the error:
    vm_snapshot_buf: buffer too small

Sponsored by:   vStack
Reviewed by:    markj, rew
Fixes: fb51ddb20d57 ("bhyve: increase fbuf display resolution limit")
Differential Revision: https://reviews.freebsd.org/D43218

5 months agotegra210: change to UTF-8 (from ISO-8859)
Ed Maste [Fri, 29 Dec 2023 03:53:16 +0000 (22:53 -0500)]
tegra210: change to UTF-8 (from ISO-8859)

Prompted by Phabricator's complaint that a C source file was a binary
file, in D43192.

Reviewed by: mmel
Differential Revision: https://reviews.freebsd.org/D43229

5 months agoindent: make the URL of the manpage two characters longer so that the test is successful
Wolfram Schneider [Fri, 29 Dec 2023 09:37:43 +0000 (09:37 +0000)]
indent: make the URL of the manpage two characters longer so that the test is successful

5 months agoDocument the two recent newsyslog(8) change (-c option and <compress>
Xin LI [Fri, 29 Dec 2023 08:45:52 +0000 (00:45 -0800)]
Document the two recent newsyslog(8) change (-c option and <compress>
configuration option).

5 months agonewsyslog(8): Add support of specifying compression method in configuration file.
Xin LI [Mon, 25 Dec 2023 07:47:36 +0000 (23:47 -0800)]
newsyslog(8): Add support of specifying compression method in configuration file.

Administrators can now specify a global compression method directly
at the beginning of the newsyslog.conf file, for example:

<compress> none

Relnotes: yes
Reviewed by: dvl
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D43174

5 months agonetmap: fix unit tests
Vincenzo Maffione [Fri, 29 Dec 2023 07:46:46 +0000 (07:46 +0000)]
netmap: fix unit tests

After ad874544d9f018bf8eef4053b5ca7b856c4674cb, interface name
validation has been removed, resulting in two unit tests failures.
Drop the failing tests since they no longer apply.

Reported by: markj

5 months agoEC2: Bump AMI size to 6 GB
Colin Percival [Thu, 28 Dec 2023 22:23:52 +0000 (14:23 -0800)]
EC2: Bump AMI size to 6 GB

This week's cloud-init ZFS snapshots ran out of disk space.

5 months agoOptionalObsoleteFiles.inc: Add libnss_tacplus_p.a as an old profiled library
John Baldwin [Thu, 28 Dec 2023 22:20:54 +0000 (14:20 -0800)]
OptionalObsoleteFiles.inc: Add libnss_tacplus_p.a as an old profiled library

Noticed this was still present after upgrading a 12.x stable host to
14.0 stable.

5 months agocamcontrol: Add a sense subcommand
Kenneth D. Merry [Thu, 28 Dec 2023 21:23:16 +0000 (16:23 -0500)]
camcontrol: Add a sense subcommand

As the name suggests, this sends a SCSI REQUEST SENSE to a device,
and prints out decoded sense information.  It can also print out a
hexdump of the sense data.

sbin/camcontrol/camcontrol.c:
Add the new sense subcommand.

sbin/camcontrol/camcontrol.8:
Document camcontrol sense.

Sponsored by: Spectra Logic
Reviewed by: mav
MFC after: 3 days
Differential Revision:  https://reviews.freebsd.org/D43225

5 months agonfsstat: make -q work without -e/-E
Lexi Winter [Thu, 28 Dec 2023 12:56:57 +0000 (12:56 +0000)]
nfsstat: make -q work without -e/-E

MFC after: 2 weeks
Pull Request: https://github.com/freebsd/freebsd-src/pull/961

5 months agoatrtc: Add a required include
Mark Johnston [Thu, 28 Dec 2023 20:16:39 +0000 (15:16 -0500)]
atrtc: Add a required include

PR: 275867
MFC after: 1 week

5 months agosys: Style fix for M_EXT | M_EXTPG
John Baldwin [Thu, 28 Dec 2023 19:17:59 +0000 (11:17 -0800)]
sys: Style fix for M_EXT | M_EXTPG

Add a space around the | operator in places testing for either M_EXT
or M_EXTPG.

Reviewed by: imp, glebius
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D43216

5 months agombuf.9: Document mtodo
John Baldwin [Thu, 28 Dec 2023 19:17:22 +0000 (11:17 -0800)]
mbuf.9: Document mtodo

mtodo() accepts an mbuf and offset and returns a void * pointer to the
requested offset into the mbuf's associated data.  Similar to mtod(),
no bounds checking is performed.

Reviewed by: imp, markj
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D43215

5 months agoisp(4): Rework firmware handling/loading
Joerg Pulz [Fri, 27 Oct 2023 15:27:37 +0000 (17:27 +0200)]
isp(4): Rework firmware handling/loading

Correctly identify the active firmware in flash on adapters with
primary and secondary firmware region in flash.
Correctly identify the active NVRAM on adapters with primary
and secondary NVRAM region in flash.

Loading ispfw(4) moved from isp_pci_attach() to isp_reset().
Drop the reference to ispfw(4) after using it so one can kldunload(8) it.
New isp_load_ram() function to load either ispfw(4) or flash firmware
into RISC's RAM.
New functions to read data from flash. The old ones will be removed later.
A bunch of new helper functions to identify and validate active flash
regions for firmware, auxiliary and NVRAM.
Overhaul ISP_FW_* macros and make use of it when comparing firmware
versions. We can handle firmware versions up to 255.255.255.

Firmware load priority slightly changed:
For 27xx and newer adapters:
- load ispfw(4) firmware
- request (active) flash firmware information
- compare version numbers of ispfw(4) and flash firmware
- load firmware with highest version into RISC's RAM
- if loading ispfw(4) is disabled or failed - load firmware from flash
- if everything else fails use MBOX_LOAD_FLASH_FIRMWARE as fallback

For 26xx and older adapters nothing changed:
- load ispfw(4) firmware and load it into RISC's RAM
- if loading ispfw(4) is disabled or failed use MBOX_EXEC_FIRMWARE
- for 26xx a preceding MBOX_LOAD_FLASH_FIRMWARE is used

New read only sysctl(8)'s:
 dev.isp.N.fw_version_run: the firmware version actually running
 dev.isp.N.fw_version_ispfw: the firmware version provided by ispfw(4)
 dev.isp.N.fw_version_flash: the (active) firmware version in flash

While here:
  - firmware attribute handling/parsing reworked
    + renamed defines from ISP2400_FW_ATTR_* to ISP_FW_ATTR_*
    + changed values to match new handling/parsing
    + added some more attributes
  - enable FLT support on 26xx based adapters
  - log level adjustments
  - new function return status codes (some for now, some for later use)
  - some minor style changes

Tested and approved to work on real hardware with:
  - Qlogic ISP 2532 (QLogic QLE2560 8Gb FC Adapter)
  - Qlogic ISP 2031 (QLogic QLE2662 16Gbit 2Port FC Adapter)
  - Qlogic ISP 2722 (QLogic QLE2690 16Gb FC Adapter)
  - Qlogic ISP 2812 (QLogic QLE2772 32Gbit 2Port FC Adapter)

PR: 273263
Reviewed by: mav
Pull Request: https://github.com/freebsd/freebsd-src/pull/877
MFC after: 1 month
Sponsored by: Technical University of Munich

5 months agoispfw(4): Update and add firmware
Joerg Pulz [Fri, 27 Oct 2023 14:02:07 +0000 (16:02 +0200)]
ispfw(4): Update and add firmware

Update 25xx firmware: version 8.8.207
Add 26xx firmware: version 8.8.231
Add 27xx firmware: version 9.12.0
Add 28xx firmware: version 9.12.1

Remove BUGS section from manpage as we now have firmware for
all supported controllers.

PR: 273263
MFC after: 1 month
Pull Request: https://github.com/freebsd/freebsd-src/pull/877
Sponsored by: Technical University of Munich

5 months agocam: Let cam_periph_unmapmem() return an error
Mark Johnston [Thu, 28 Dec 2023 17:08:04 +0000 (12:08 -0500)]
cam: Let cam_periph_unmapmem() return an error

As of commit b059686a71c8, cam_periph_unmapmem() can legitimately fail
if the copyout() operation fails.  However, this failure was never
signaled to upper layers.  In practice it is unlikely to occur
since cap_periph_mapmem() would most likely fail in such
circumstances anyway, but an error is nonetheless possible.

However, some code reading revealed a few paths where the return value
of cam_periph_mapmem() is not checked, and this is definitely a bug.
Add error checking there and let cam_periph_unmapmem() return errors
from copyout().

Reviewed by: dab, mav
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D43201

5 months agoRevert "vtnet: Adjust rx buffer so IP header 32-bit aligned"
Warner Losh [Thu, 28 Dec 2023 17:20:42 +0000 (10:20 -0700)]
Revert "vtnet: Adjust rx buffer so IP header 32-bit aligned"

This reverts commit 9e6d11ce9a51d75ed6a94e180f2fb4e9188a2ba4.

This wasn't right to start with...

Requested by: markj

5 months agoRevert "vtnet: Better adjust for ethernet alignment."
Warner Losh [Thu, 28 Dec 2023 17:20:24 +0000 (10:20 -0700)]
Revert "vtnet: Better adjust for ethernet alignment."

This reverts commit e9da71cd35d46ca13da4396d99e0af1703290e68.

This was inadvertantly pushed and turns out ot be not quite right.

Requested by: markj

5 months agouse long manpage URL (broken in last commit)
Wolfram Schneider [Thu, 28 Dec 2023 15:58:56 +0000 (15:58 +0000)]
use long manpage URL (broken in last commit)

Reported by: pstef

5 months agoCONTRIBUTING.md: fix typo from commmit to commit
rilysh [Thu, 28 Dec 2023 07:34:32 +0000 (02:34 -0500)]
CONTRIBUTING.md: fix typo from commmit to commit

Signed-off-by: rilysh <nightquick@proton.me>
Pull-request: https://github.com/freebsd/freebsd-src/pull/960

5 months agoena: Update driver version to v2.7.0
Osama Abboud [Mon, 30 Oct 2023 11:12:24 +0000 (11:12 +0000)]
ena: Update driver version to v2.7.0

Features:
* Introduce customer and SRD metrics through sysctl
* Introduce spreading IRQs to CPUs capability using sysctl
* Upgrade ena-com to v2.7.0

Bug Fixes:
* Remove outdated APIs

Minor Changes:
* Introduce a shared stats sample interval for all stats

Approved by: cperciva (mentor)
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

5 months agoena: Update the license dating to 2023
Osama Abboud [Mon, 23 Oct 2023 17:16:38 +0000 (17:16 +0000)]
ena: Update the license dating to 2023

Some of the files are using outdated linceses.
Update the license to be 2023.

Approved by: cperciva (mentor)
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

5 months agoena: Support srd metrics with sysctl
Osama Abboud [Tue, 12 Sep 2023 11:17:45 +0000 (11:17 +0000)]
ena: Support srd metrics with sysctl

This commit introduces SRD metrics through sysctl.
The metrics can be queried using the following sysctl node:
sysctl dev.ena.<device index>.ena_srd_info

Approved by: cperciva (mentor)
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

5 months agoena: Support customer metric with sysctl
Osama Abboud [Tue, 12 Sep 2023 10:17:03 +0000 (10:17 +0000)]
ena: Support customer metric with sysctl

This commit adds sysctl support for customer metrics.
Different customer metrics can be found in the following sysctl node:
sysctl dev.ena.<device index>.customer_metrics

Approved by: cperciva (mentor)
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

5 months agoena: Introduce shared sample interval for all stats
Osama Abboud [Tue, 12 Sep 2023 10:13:48 +0000 (10:13 +0000)]
ena: Introduce shared sample interval for all stats

Rename sample_interval node to stats_sample_interval and move
it up in the sysctl tree to make it clear that it's relevant for
all the stats and not only ENI metrics (Currently, sample interval node
is found under eni_metrics node).

Path to node:
dev.ena.<device_index>.stats_sample_interval

Once this parameter is set it will set the sample interval for all the
stats node including SRD/customer metrics.

Approved by: cperciva (mentor)
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

5 months agoena: Remove CQ tail pointer update API
Osama Abboud [Mon, 11 Sep 2023 08:43:08 +0000 (08:43 +0000)]
ena: Remove CQ tail pointer update API

This commit removes the usage of this API from the freebsd driver since
the relevant functionality is not supported by the device.

Approved by: cperciva (mentor)
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

5 months agoena: Update ena_com_update_intr_reg API usage
Osama Abboud [Mon, 11 Sep 2023 08:38:39 +0000 (08:38 +0000)]
ena: Update ena_com_update_intr_reg API usage

This commit fixes the usage of this function to be compatible with the
new API introduced by ena-com update to v2.7.0

Approved by: cperciva (mentor)
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

5 months agoena: Change measurement unit of time since last tx cleanup to ms
Arthur Kiyanovski [Wed, 14 Jun 2023 10:12:16 +0000 (10:12 +0000)]
ena: Change measurement unit of time since last tx cleanup to ms

This commit:
1. Sets the time since last cleanup to milliseconds.
2. Fixes incorrect indentations.

Approved by: cperciva (mentor)
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

5 months agoena: Add sysctl support for spreading IRQs
Osama Abboud [Mon, 30 Oct 2023 11:27:03 +0000 (11:27 +0000)]
ena: Add sysctl support for spreading IRQs

This commit allows spreading IO IRQs over different CPUs through sysctl.
Two sysctl nodes are introduced:
1- base_cpu: servers as the first CPU to which the first IO IRQ
will be bound.
2- cpu_stride: sets the distance between every two CPUs to which every
two consecutive IO IRQs are bound.

For example for doing the following IO IRQs / CPU binding:

IRQ idx |  CPU
----------------
   1    |   0
   2    |   2
   3    |   4
   4    |   6

Run the following commands:
sysctl dev.ena.<device index>.irq_affinity.base_cpu=0
sysctl dev.ena.<device_index>.irq_affinity.cpu_stride=2

Also introduced rss_enabled field, which is intended to replace
'#ifdef RSS' in multiple places, in order to prevent code duplication.

We want to bind interrupts to CPUs in case of rss set OR in case
the newly defined sysctl paremeter is set. This requires to remove a
couple of '#ifdef RSS' as well in the structs, since we'll be using the
relevant parameters in the CPU binding code.

Approved by: cperciva (mentor)
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

5 months agoena: Upgrade ena-com to freebsd v2.7.0
Arthur Kiyanovski [Thu, 28 Dec 2023 13:52:31 +0000 (13:52 +0000)]
ena: Upgrade ena-com to freebsd v2.7.0

Merge commit '04cf7cee5ae0c6bb29eb21ce85bab7ca7386a95f'

Approved by: cperciva (mentor)
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

5 months agoena: Upgrade ena-com to freebsd v2.7.0
Osama Abboud [Thu, 28 Dec 2023 13:25:43 +0000 (13:25 +0000)]
ena: Upgrade ena-com to freebsd v2.7.0

This commit introduces a number of infrastructures in ena-com, some of
which are being used as of ENA v2.7.0 while other certain infrastructure
assets have been made available for potential future application.

Upgrade ena-com to include the following changes:

* Introduce customer metrics infrastructures
* Introduce SRD metrics infrastructures
* Remove unused fields from ena_com_io_cq and ena_com_io_sq structs
* Minor rework of ena_com_fill_hash_function
* Introduce PHC infrastructures
* Update the licenses for ena-com files
* Delete duplicate *_defs.h found in ena-com and ena_defs directories
* Add validation for completion descriptors consistency
* Move ena_fbsd_log.h file to ena_plat.h

Approved by: cperciva (mentor)
Sponsored by: Amazon, Inc.

5 months agoReorganize libclang_rt Makefile and make more lib/arch combos available
Dimitry Andric [Thu, 28 Dec 2023 12:57:41 +0000 (13:57 +0100)]
Reorganize libclang_rt Makefile and make more lib/arch combos available

Upstream has made more clang runtime libraries available for more
architectures, so add them. To make this easier, split up subdir lists
into functional parts (asan, tsan, etc), and put each architecture into
its own .if block.

Effectively, this adds the following libraries for aarch64: asan, cfi,
fuzzer, msan, safestack, stats, tsan, ubsan, xray.

PR: 262706
MFC after: 3 days

5 months agosupport spaces in filenames
Wolfram Schneider [Thu, 28 Dec 2023 10:50:29 +0000 (10:50 +0000)]
support spaces in filenames

PR: 275978
MFC after: 1 week

5 months agoupdate manpage URL
Wolfram Schneider [Thu, 28 Dec 2023 10:48:04 +0000 (10:48 +0000)]
update manpage URL

5 months agoupdate homepage for FreeBSD Manual Pages (again)
Wolfram Schneider [Thu, 28 Dec 2023 07:11:38 +0000 (07:11 +0000)]
update homepage for FreeBSD Manual Pages (again)

5 months agogeom/journal: Fix typos
Alex [Thu, 28 Dec 2023 06:40:33 +0000 (23:40 -0700)]
geom/journal: Fix typos

Fixed a few typos.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/884

5 months agoCONTRIBUTING.md: Fix typos
Warner Losh [Thu, 28 Dec 2023 06:16:44 +0000 (23:16 -0700)]
CONTRIBUTING.md: Fix typos

Fix my own typoes.

Noticed by: kevans, cperciva

Sponsored by: Netflix

5 months agovtnet: Better adjust for ethernet alignment.
Warner Losh [Thu, 21 Dec 2023 20:36:12 +0000 (13:36 -0700)]
vtnet: Better adjust for ethernet alignment.

Move adjustment of the mbuf from where we allocate it to where we are
about to queue it to the device. Do this only on those platforms that
require it. This allows us to receive an entire jumbo frame on other
platforms. It also doesn't make the adjustment on subsequent frames when
we queue mulitple mbufs for LRO operations.

For the normal use case on armv7, there's no difference because we only
ever allocate one mbuf. However, for the LRO cases it increases what's
available in LRO. It also ensure that we get enough mbufs in those cases
as well (though I have no ability to test this on a LRO scenario with
armv7).

This has the side effect of reverting 527b62e37e68.

Fixes: 527b62e37e68
Sponsored by: Netflix

5 months agomtree: Add missing directories to BSD.tests.dist
Jose Luis Duran [Thu, 28 Dec 2023 05:26:23 +0000 (22:26 -0700)]
mtree: Add missing directories to BSD.tests.dist

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/912

5 months agomtree: Sort BSD.tests.dist
Jose Luis Duran [Thu, 28 Dec 2023 05:26:23 +0000 (22:26 -0700)]
mtree: Sort BSD.tests.dist

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/912

5 months agomtree: Add missing directories to BSD.root.dist
Jose Luis Duran [Thu, 28 Dec 2023 05:26:23 +0000 (22:26 -0700)]
mtree: Add missing directories to BSD.root.dist

While here, align to the output produced by mtree.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/912

5 months agomtree: Add missing directories generated by certctl
Jose Luis Duran [Thu, 28 Dec 2023 05:26:23 +0000 (22:26 -0700)]
mtree: Add missing directories generated by certctl

PR: 255639
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/912

5 months agomtree: Properly sort entries
Jose Luis Duran [Thu, 28 Dec 2023 05:26:23 +0000 (22:26 -0700)]
mtree: Properly sort entries

Reduce the diff with the output generated by mtree.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/912

5 months agomtree: Use spaces not tabs
Jose Luis Duran [Thu, 28 Dec 2023 05:26:23 +0000 (22:26 -0700)]
mtree: Use spaces not tabs

The indentation generated by mtree -j uses spaces, not tabs.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/912

5 months agomtree: Update mtree flags in README file
Jose Luis Duran [Thu, 28 Dec 2023 05:26:23 +0000 (22:26 -0700)]
mtree: Update mtree flags in README file

- Add -b (suppress blank lines before directories).
- The equivalent of `-i` in fmtree is `-j` in mtree (nmtree) (indent the
  output 4 spaces).
- Add `-F freebsd9` compatibility flavor (print the closing `..` at the
  end).

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/912

5 months agotree: Use 1 semicolon at the end of a statement
Elyes Haouas [Thu, 28 Dec 2023 04:02:07 +0000 (21:02 -0700)]
tree: Use 1 semicolon at the end of a statement

Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/889

5 months agotree: Use 1 semicolon at the end of a statement
Elyes Haouas [Thu, 28 Dec 2023 04:02:07 +0000 (21:02 -0700)]
tree: Use 1 semicolon at the end of a statement

Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/889

5 months agoCONTRIBUTING.md: add note about upstreams.
Warner Losh [Thu, 28 Dec 2023 03:40:57 +0000 (20:40 -0700)]
CONTRIBUTING.md: add note about upstreams.

Sponsored by: Netflix

5 months agoroute6d: Fix typo (triple S)
Jose Luis Duran [Thu, 28 Dec 2023 03:17:17 +0000 (20:17 -0700)]
route6d: Fix typo (triple S)

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/955

5 months agobmake: Fix typo (triple S)
Jose Luis Duran [Thu, 28 Dec 2023 03:17:17 +0000 (20:17 -0700)]
bmake: Fix typo (triple S)

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/955

5 months agosys: Fix typo (triple S)
Jose Luis Duran [Thu, 28 Dec 2023 03:17:17 +0000 (20:17 -0700)]
sys: Fix typo (triple S)

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/955

5 months agonetpfil: Fix typo (triple S)
Jose Luis Duran [Thu, 28 Dec 2023 03:17:17 +0000 (20:17 -0700)]
netpfil: Fix typo (triple S)

While here, align the comment box.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/955

5 months agonet: Fix typo (triple S)
Jose Luis Duran [Thu, 28 Dec 2023 03:17:17 +0000 (20:17 -0700)]
net: Fix typo (triple S)

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/955

5 months agofuse: Fix typo (triple S)
Jose Luis Duran [Thu, 28 Dec 2023 03:17:17 +0000 (20:17 -0700)]
fuse: Fix typo (triple S)

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/955

5 months agoqat: Fix typo (triple S)
Jose Luis Duran [Thu, 28 Dec 2023 03:17:17 +0000 (20:17 -0700)]
qat: Fix typo (triple S)

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/955

5 months agopms: Fix typo (triple S)
Jose Luis Duran [Thu, 28 Dec 2023 03:17:17 +0000 (20:17 -0700)]
pms: Fix typo (triple S)

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/955

5 months agopci: Fix typo (triple S)
Jose Luis Duran [Thu, 28 Dec 2023 03:17:16 +0000 (20:17 -0700)]
pci: Fix typo (triple S)

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/955

5 months agoisci: Fix typo (triple S)
Jose Luis Duran [Thu, 28 Dec 2023 03:17:16 +0000 (20:17 -0700)]
isci: Fix typo (triple S)

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/955

5 months agonetvsc: Fix typo (triple S)
Jose Luis Duran [Thu, 28 Dec 2023 03:17:16 +0000 (20:17 -0700)]
netvsc: Fix typo (triple S)

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/955

5 months agoddb: Fix typo (triple S)
Jose Luis Duran [Thu, 28 Dec 2023 03:17:16 +0000 (20:17 -0700)]
ddb: Fix typo (triple S)

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/955

5 months agoarm: Fix typo (triple S)
Jose Luis Duran [Thu, 28 Dec 2023 03:17:16 +0000 (20:17 -0700)]
arm: Fix typo (triple S)

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/955

5 months agostand: Fix typo (triple S)
Jose Luis Duran [Thu, 28 Dec 2023 03:17:16 +0000 (20:17 -0700)]
stand: Fix typo (triple S)

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/955

5 months agosecurity.7: Fix typo (triple S)
Jose Luis Duran [Thu, 28 Dec 2023 03:17:16 +0000 (20:17 -0700)]
security.7: Fix typo (triple S)

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/955

5 months agonetgdb.4: Fix typo (triple S)
Jose Luis Duran [Thu, 28 Dec 2023 03:17:16 +0000 (20:17 -0700)]
netgdb.4: Fix typo (triple S)

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/955

5 months agolibdevdctl: Fix typo (triple S)
Jose Luis Duran [Thu, 28 Dec 2023 03:17:15 +0000 (20:17 -0700)]
libdevdctl: Fix typo (triple S)

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/955

5 months agociss: Fix typo (triple T)
Jose Luis Duran [Thu, 28 Dec 2023 03:17:07 +0000 (20:17 -0700)]
ciss: Fix typo (triple T)

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/954

5 months agolibcasper: Fix typo (triple T)
Jose Luis Duran [Thu, 28 Dec 2023 03:17:07 +0000 (20:17 -0700)]
libcasper: Fix typo (triple T)

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/954

5 months agosa: Make sa_param_table[] const and static
Mark Johnston [Wed, 27 Dec 2023 21:40:12 +0000 (16:40 -0500)]
sa: Make sa_param_table[] const and static

No functional change intended.

Reviewed by: ken, imp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D43204

5 months agosa: Check for errors from copyout()
Mark Johnston [Wed, 27 Dec 2023 21:28:28 +0000 (16:28 -0500)]
sa: Check for errors from copyout()

This is in preparation for annotating copyin() and related functions
with __result_use_check.

Reviewed by: ken
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D43203

5 months agoCONTRIBUTING: class work
Warner Losh [Thu, 28 Dec 2023 00:21:58 +0000 (17:21 -0700)]
CONTRIBUTING: class work

Add note about contacting me for professors including this as part of
their class work.

5 months agocontributing: Add note about static analyzers
Warner Losh [Thu, 28 Dec 2023 00:16:33 +0000 (17:16 -0700)]
contributing: Add note about static analyzers

Please don't submit the raw results of some static analysis. Please do
submit the thoughtful results, though. Please test with kyua and create
test cases for any actual bugs that might be fixed.

5 months ago<bsd.progs.mk>: Allow using SRCS for common sources
VexedUXR [Thu, 28 Dec 2023 00:01:29 +0000 (17:01 -0700)]
<bsd.progs.mk>: Allow using SRCS for common sources

Instead of having to do:

PROGS= program1 program2
SRCS.program1= program1.c common.c
SRCS.program2= program2.c common.c

This can now be done instead:

PROGS= program1 program2
SRCS= common.c
SRCS.program1= program1.c
SRCS.program2= program2.c

This shouldn't effect any existing projects using <bsd.progs.mk>.

Reviewed by: imp, sjg
Pull Request: https://github.com/freebsd/freebsd-src/pull/766

5 months agoauto_master.5: Fix my push
Warner Losh [Wed, 27 Dec 2023 23:59:48 +0000 (16:59 -0700)]
auto_master.5: Fix my push

Forgot the commit --amend before the push to fix the date. My bad.
Fixes: fc8ac5fedf7e
5 months agoauto_master.5: improve description, bump date
concussious [Wed, 27 Dec 2023 23:56:43 +0000 (16:56 -0700)]
auto_master.5: improve description, bump date

Add autofs automounter to description to improve visibility.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/824

5 months agobsd-family-tree: tidiness, width
Graham Perrin [Wed, 27 Dec 2023 23:36:26 +0000 (16:36 -0700)]
bsd-family-tree: tidiness, width

Tidy the raggedness in the section that begins [44B]. As the line that begins
[KB] was previously tidied, now tidy the section to accommodate [BSDI] and
[TUHS]. Rewrap the section to fit the same number of columns.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/812

5 months agobsd-family-tree: QCU: ISBN and EAN numbers
Graham Perrin [Wed, 27 Dec 2023 23:36:25 +0000 (16:36 -0700)]
bsd-family-tree: QCU: ISBN and EAN numbers

ISBN 0201547775 and International Article Number (EAN) 9780201547771 for
'A Quarter Century of UNIX' by Peter H. Salus.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/812

5 months agorc(8): angle brackets to avoid link breakage
Graham Perrin [Wed, 27 Dec 2023 23:26:46 +0000 (16:26 -0700)]
rc(8): angle brackets to avoid link breakage

<https://datatracker.ietf.org/doc/html/rfc3986#appendix-C>

Double-quotes are not suitably effective. Instead, use angle brackets.

Whilst here:
- remove superfluous quotation marks from the %T title.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/811

5 months agozfs: merge openzfs/zfs@233d34e47
Martin Matuska [Wed, 27 Dec 2023 21:51:21 +0000 (22:51 +0100)]
zfs: merge openzfs/zfs@233d34e47

Notable upstream pull request merges:
 #15635 eff77a802 ZIL: Improve next log block size prediction
 #15675 6930ecbb7 spa: make read/write queues configurable
 #15677 5a4915660 Don't panic on unencrypted block in encrypted dataset
 #15716 07e95b467 Fix the FreeBSD userspace build

Obtained from:  OpenZFS
OpenZFS commit: 233d34e47ef88ee9e9a1e1ad02384f2063cd039b

5 months agox86: Adjust base addr for PCI MCFG regions
Colin Percival [Wed, 27 Dec 2023 08:09:08 +0000 (00:09 -0800)]
x86: Adjust base addr for PCI MCFG regions

Each bus gets 1 MB of address space; the actual base address for an
MCFG bus range is the address from the table plus the starting bus
number times 1 MB.

The PCI spec is unclear on this point, but this change matches what
Linux does, which is likely enough of a de facto standard regardless
of what any de jure standard might attempt to say.

Fixes: f54a3890b1f4 ("x86: Support multiple PCI MCFG regions")
Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D43206

5 months agoFix the FreeBSD userspace build (#15716)
Mark Johnston [Wed, 27 Dec 2023 20:17:53 +0000 (15:17 -0500)]
Fix the FreeBSD userspace build (#15716)

- Mark some parameters to zpool_power*() as unused.
- Add a stub zpool_disk_wait().

Fixes: a9520e6e5 ("zpool: Add slot power control, print power status")
Signed-off-by: Mark Johnston <markj@FreeBSD.org>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
5 months agonvme: Add some bits from NVMe 2.0c spec.
Alexander Motin [Wed, 27 Dec 2023 18:50:54 +0000 (13:50 -0500)]
nvme: Add some bits from NVMe 2.0c spec.

MFC after: 1 week