]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 months agosmp: Drop confusing braces and return statement as panic() is never returns.
Dmitry Chagin [Sun, 29 Jan 2023 12:33:16 +0000 (15:33 +0300)]
smp: Drop confusing braces and return statement as panic() is never returns.

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

(cherry picked from commit 6fdf04a2be9b5b509c5b3d927e087122189ad1fb)

16 months agolinux_common: Fixup .PATH.
Dmitry Chagin [Sat, 28 Jan 2023 17:31:38 +0000 (20:31 +0300)]
linux_common: Fixup .PATH.

Since we have arm64, and awaiting ppc64 Linuxulator, do not include x86 specific
path to the module build for non x86 architectures.

MFC after: 1 week

(cherry picked from commit c19fc5cd9b49115604ce2b89279e3434c7f120cc)

16 months agolinux(4): Convert mount exported flags for statfs system calls.
Dmitry Chagin [Sat, 28 Jan 2023 10:20:27 +0000 (13:20 +0300)]
linux(4): Convert mount exported flags for statfs system calls.

MFC after: 1 week

(cherry picked from commit 9922bccbc9c4effb02b99391088d0405f9c0f75e)

16 months agolinux(4): Rework statfs conversion routine.
Dmitry Chagin [Sat, 28 Jan 2023 10:19:41 +0000 (13:19 +0300)]
linux(4): Rework statfs conversion routine.

Rework the routines to convert a native statfs structure (with fixed-size 64-bit
counters) to a Linux statfs structure (with long-sized counters) for 32-bit apps.

Instead of following Linux and return an EOVERFLOW error from statfs() family of
syscalls when actual fs stat value(s) are large enough to not fit into 32 bits,
apply scale logics used by FreeBSD to convert a 5.x statfs structure to a 4.x
statfs structure.

For more details see cc479dda.

Tested by: glebius
MFC after: 1 week

(cherry picked from commit 953688e823a67c3e9c0096252c33b1e7ecf9a095)

16 months agobsd-family-tree: add DragonFly 6.4.0
Sergey A. Osokin [Thu, 5 Jan 2023 21:36:57 +0000 (16:36 -0500)]
bsd-family-tree: add DragonFly 6.4.0

MFC after: 3 days

(cherry picked from commit c47015fafa4836d881977607c4de86f444ae8f14)

17 months agoman(1): Support zstd compressed manpages using zstdcat
Cameron Katri [Mon, 30 Jan 2023 18:11:14 +0000 (13:11 -0500)]
man(1): Support zstd compressed manpages using zstdcat

Reviewed by: emaste, markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D32296

(cherry picked from commit c8abb673a57587fdf9de2d5bd4d3d1f54dfedc19)

17 months agobridge: Fix whitespace
Mark Johnston [Tue, 24 Jan 2023 16:00:56 +0000 (11:00 -0500)]
bridge: Fix whitespace

No functional change intended.

MFC after: 1 week

(cherry picked from commit 92b7d1db9291f11fa56e2c88f70149f319e31622)

17 months agorelease: Don't install ubldr.bin
Warner Losh [Mon, 7 Feb 2022 20:16:15 +0000 (13:16 -0700)]
release: Don't install ubldr.bin

ubldr.bin was obsoleted by our uboot ports last year, so this is
completely unused in the default config (some customers still use
it, but that's not relevant to this script). Don't copy it at all
since it won't be used for re@ produced images.

Sponsored by: Netflix
Reviewed by: kevans, gjb (re@)
Differential Revision: https://reviews.freebsd.org/D34192

(cherry picked from commit 4e46c6fb35b3d5803f10c5edb5dabaf3cc308517)

17 months agorelease: Remove C-like string comparison operator
Jose Luis Duran [Sun, 20 Jun 2021 00:00:19 +0000 (21:00 -0300)]
release: Remove C-like string comparison operator

Per [(1), i.e. test(1), the string comparison operator should be `=`,
not `==` in sh(1) scripts.

No functional change. FreeBSD's test accepts `==` as an alias for `=`
for compatibility with gnu test's `==` extension.

Reviewed by: imp@, gjb@
Pull Request: https://github.com/freebsd/freebsd-src/pull/485

(cherry picked from commit 3f197b101f71ee4f4949c53bf330f61b43749ce9)

17 months agosound: add patch for Lenovo Legion 5 Intel
Nuno Teixeira [Fri, 16 Sep 2022 13:29:30 +0000 (14:29 +0100)]
sound: add patch for Lenovo Legion 5 Intel

Laptop Legion Lenovo 5 15MH05 (Intel)

Patch to fix the sound on this machine.
It requires sending the speaker and the headphone jack to the same nid.

PR: 265632
Approved by: emaste
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D36511

(cherry picked from commit b44869cba1b391931b831135a9cefcc6ca635103)

17 months agozfs: fix mounting snapshots in .zfs/snapshot as a regular user
Martin Matuska [Sat, 4 Feb 2023 18:39:12 +0000 (19:39 +0100)]
zfs: fix mounting snapshots in .zfs/snapshot as a regular user

This is a cherry-pick from vendor/openzfs/master resulting
in a direct commit to stable/13

The cherry-pick to branch zfs-2.1-release has been proposed upstream.

Vendor pull requeset merges:
  #13758 Allow mounting snapshots in .zfs/snapshot as a regular user
  #14218 Bugfix: Avoid a null pointer dereference in zfs_mount() on FreeBSD

PR: 260160

(cherry picked from commit 595d3ac2ed61331124feda2cf5787c3dd4c7ae09)
(cherry picked from commit d27a00283faf4ec2b997ff2376dee4a080e1ca7b)

17 months agoiwm(4), iwmfw(4): mention iwm7265Dfw
Piotr Kubaj [Sat, 4 Feb 2023 13:12:56 +0000 (14:12 +0100)]
iwm(4), iwmfw(4): mention iwm7265Dfw

Correct documentation by mentioning iwm7265Dfw.

PR: 234584
Differential review: https://reviews.freebsd.org/D38374
Approved by: erj

(cherry picked from commit 29fa34aadbd3d93343573220a521caa0c248682d)

17 months agoetcupdate: Chase test case after pwd_mkdb(8) no longer copies comments.
Xin LI [Mon, 30 Jan 2023 04:40:58 +0000 (20:40 -0800)]
etcupdate: Chase test case after pwd_mkdb(8) no longer copies comments.

(cherry picked from commit 4bbf45cf561012da0eb10afe14d4da841add84f5)

17 months agopwd_mkdb(8): Don't copy comments from /etc/master.passwd to /etc/passwd.
Andre Albsmeier [Thu, 11 Mar 2010 10:53:47 +0000 (11:53 +0100)]
pwd_mkdb(8): Don't copy comments from /etc/master.passwd to /etc/passwd.

The intention of /etc/passwd was to support legacy applications that are
not yet converted to use modern API like getpwent(3). Comments are not
defined in the legacy format, so copying them could break these
applications. Plus, it could leak sensitive information (e.g. encrypted
form of password of an user that was commented out instead of deleted
or disabled).

PR: bin/144652
(cherry picked from commit 0deb25bd9d6d2cdd4aa22f0e2754161e35f3785c)

17 months agosbin/devfs: Correct usage
Enji Cooper [Sat, 30 Apr 2022 17:54:43 +0000 (10:54 -0700)]
sbin/devfs: Correct usage

The -s applies to rule keyword only and it follows the rule keyword.

PR: 263289
Submitted by: Yuichiro NAITO <naito.yuichiro@gmail.com>
Reviewed by: ngie
Fixes: c3e412c08333 sbin/devfs: clarify usage
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D34934

(cherry picked from commit f9f42a709b2b3f8c8d3de517f301d4ccb33e7b16)

17 months agorelease.7: Correct a variable name
Mark Johnston [Fri, 27 Jan 2023 19:00:23 +0000 (14:00 -0500)]
release.7: Correct a variable name

MFC after: 1 week

(cherry picked from commit 96bc40f4dfae4bb40b2512436f58cd2183e42886)

17 months agoDisable sandboxing when building with WITHOUT_CAPSICUM.
Xin LI [Sat, 28 Jan 2023 18:53:47 +0000 (10:53 -0800)]
Disable sandboxing when building with WITHOUT_CAPSICUM.

PR: bin/269185

(cherry picked from commit 8f02c0d15669949bb3b5086800aaf11a65e4c871)

17 months agostat(1): Do not pass S_IFBLK to devname unconditionally
Alexander Naumochkin [Sat, 28 Jan 2023 13:31:39 +0000 (15:31 +0200)]
stat(1): Do not pass S_IFBLK to devname unconditionally

PR: 269190

(cherry picked from commit 050e4bca94e907c046e9ed63f90b5dd0e49fb405)

17 months agodevname(3): apply S_ISBLK() to type, not dev_t
Alexander Naumochkin [Sat, 28 Jan 2023 13:22:50 +0000 (15:22 +0200)]
devname(3): apply S_ISBLK() to type, not dev_t

PR: 269190

(cherry picked from commit 0311fe403d35f6241fa94104c4b92c9d73214cbc)

17 months agoamd64: do not enable PKRU if user disabled saving PKRU register in xsave mask
Konstantin Belousov [Fri, 27 Jan 2023 10:45:02 +0000 (12:45 +0200)]
amd64: do not enable PKRU if user disabled saving PKRU register in xsave mask

(cherry picked from commit 153643a5bc8ac3b1d47fc8e4de18d8c8a59817da)

17 months agox86: add more definitions for XCR0 bits
Konstantin Belousov [Fri, 27 Jan 2023 10:43:56 +0000 (12:43 +0200)]
x86: add more definitions for XCR0 bits

(cherry picked from commit 11989314dc4a62c82193b6727d33625f2269e511)

17 months agocxgbe tom: Force unsigned modulus for queue indices.
John Baldwin [Wed, 4 May 2022 22:59:44 +0000 (15:59 -0700)]
cxgbe tom: Force unsigned modulus for queue indices.

The final transmit and receive queue indices need to be positive
values.  However, since txq_idx and rxq_idx are signed (to permit
using -1 to as a marker for uninitialized values), using %= with
another integer type (vi->nofld[tr]xq) yielded a sign-extended modulus
value.  This resulted in negative queue indices and a buffer underrun
when arc4random() returned a value with the sign bit set.  Use a
temporary unsigned variable to hold the "raw" queue index to force
unsigned modulus.

This worked previously because the modulus was previously applied
directly to the return value of arc4random() which is unsigned before
the result was assigned to txq_idx and rxq_idx.

Discussed with: np
Fixes: db28d4a0cd1c cxgbe/t4_tom: Support for round-robin selection of offload queues.
Sponsored by: Chelsio Communications

(cherry picked from commit b483b6b256b2957f857db9092ef3c420a5143972)

17 months agofb: Add a default getinfo method
Emmanuel Vadot [Tue, 21 Jun 2022 13:52:49 +0000 (15:52 +0200)]
fb: Add a default getinfo method

fb_getinfo is badly designed as it returns either the
info if the driver have the method or ENXIO via the kobj stuff
if the driver doesn't have it.
Add a default method that returns NULL as the code already checks this
and it avoid changing the interface.
None of the drm drivers supported have this method and it sometimes
fails and panic when loading them (for now only usb-c docks seems to be
affected).

MFC after: 3 days
Sponsored by: Beckhoff Automation GmbH & Co. KG

(cherry picked from commit 3cbf6518d6eea08e0fbe6d7c609debac5ab31992)

17 months agousb/dwc3: Only force USB2 based on the PHY register and IP version
Emmanuel Vadot [Tue, 15 Nov 2022 12:54:49 +0000 (13:54 +0100)]
usb/dwc3: Only force USB2 based on the PHY register and IP version

We shouldn't force USB2 only based on if we have an external PHY.
The internal PHY register tell us what link speed we can acheive
and we need to force USB2 only if it cannot do USB3.
This is only available after revision 0x290A of the dwc3 IP.

Reviewed by: andrew
Differential Revision: https://reviews.freebsd.org/D37394
Fixed: 1331c0f44b6a ("Add support for RockChip RK356X to DWC3 driver.")
Sponsored by: Beckhoff Automation GmbH & Co. KG

(cherry picked from commit d47f5f2886f082281ae6f97dd5fe9440ad31e6d5)

17 months agolinuxkpi: Move cpu_relax out of ifdef for x86
Emmanuel Vadot [Thu, 10 Nov 2022 11:50:51 +0000 (12:50 +0100)]
linuxkpi: Move cpu_relax out of ifdef for x86

It's needed by drm-kmod and this allow building on arm64 and powerpc.

Reported by: jhibbits
Sponsored by: Beckhoff Automation GmbH & Co. KG

(cherry picked from commit ee247fc1e93e6d37cf509a640a7d273616056f5d)

17 months agousb/dwc3: Use more () for macros variables
Emmanuel Vadot [Wed, 16 Nov 2022 10:57:56 +0000 (11:57 +0100)]
usb/dwc3: Use more () for macros variables

Suggested by: andrew
Sponsored by: Beckhoff Automation GmbH & Co. KG

(cherry picked from commit 0860c27fe8cf144cb10f8916a0b8fe5ad57a3d9e)

17 months agousb/dwc3: Read the full IDs/version
Emmanuel Vadot [Tue, 15 Nov 2022 10:22:23 +0000 (11:22 +0100)]
usb/dwc3: Read the full IDs/version

We need to enable some quirks based on the version so read it.

Reviewed by: andrew
Differential Revision: https://reviews.freebsd.org/D37393
Sponsored by: Beckhoff Automation GmbH & Co. KG

(cherry picked from commit 0e87f58bd7e566d2b7d50cf0ab636e745af591fc)

17 months agodwc3: Handle optional clocks
Emmanuel Vadot [Tue, 15 Nov 2022 08:58:30 +0000 (09:58 +0100)]
dwc3: Handle optional clocks

Usually dwc3 needs a glue node that contain the SoC specific clocks/resets.
For some reason the RK3328 DTS doesn't have this glue node and the clocks
are specified in the dwc3 node directly.
The bindings says that it is allowed but doesn't specified some strict names
for them.
Add a specific case for RK3328 based on the compatible string.

Reviewed by: andrew
Differential Revision: https://reviews.freebsd.org/D37392
Sponsored by: Beckhoff Automation GmbH & Co. KG

(cherry picked from commit 0a5f342aa5a0ddd5d173bdfc856c6a81d1c12c6c)

17 months agoAdd support for RockChip RK356X to DWC3 driver.
Søren Schmidt [Tue, 16 Aug 2022 12:24:44 +0000 (12:24 +0000)]
Add support for RockChip RK356X to DWC3 driver.
For RK356x platform, we can set bit 26 of DWC3_GUCTL1 register
for usb 2.0 device.

Reviewed by: manu
Differential Revision: https://reviews.freebsd.org/D36211

(cherry picked from commit 1331c0f44b6a3b6dec1fbd638103fa15bffac5d8)

17 months agolinuxkpi: seq_read: Fix off by one error
Emmanuel Vadot [Wed, 21 Dec 2022 11:42:24 +0000 (12:42 +0100)]
linuxkpi: seq_read: Fix off by one error

strscpy needs the buffer length not the string length (so including
the '\0').

Reviewed by: bz
Fixes: f697b9432d9c ("linuxkpi: drm-kmod debugfs support")
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D37771

(cherry picked from commit ccd8c4488afb15c2b866b58d5aa9dd994f300f95)

17 months agolinuxkpi: Fix style for dma_map_sgtable
Emmanuel Vadot [Tue, 6 Dec 2022 15:52:16 +0000 (16:52 +0100)]
linuxkpi: Fix style for dma_map_sgtable

Reported by: bz
Sponsored by: Beckhoff Automation GmbH & Co. KG

(cherry picked from commit 72621b543e984a2074e1945adc26b49ac04af7e8)

17 months agolinuxkpi: Fix return value of dma_map_sgtable
Austin Shafer [Tue, 6 Dec 2022 15:25:53 +0000 (16:25 +0100)]
linuxkpi: Fix return value of dma_map_sgtable

dma_map_sgtable internally uses the dma_map_sg_attrs helper. The problem is
that dma_map_sg_attrs returns the number of entries mapped, whereas
dma_map_sgtable returns nonzero on failure. This leads to dma_map_sgtable
returning non-zero-but-positive values which tricks other areas of the stack
into thinking nents is a valid pointer.

This checks if nents is valid and returns zero if so, updating the nents field
in sgt. This fixes PRIME render offload with nvidia-drm.

Fixes: 9202c95f47c2 ("linuxkpi: Add dma_{un,}map_sgtable")
(cherry picked from commit 4085bde9fa2ea7ebe861a2e4a07312aac00a26fc)

17 months agorc.d: Put resolv script in FreeBSD-resolvconf
Emmanuel Vadot [Fri, 28 Oct 2022 07:33:38 +0000 (09:33 +0200)]
rc.d: Put resolv script in FreeBSD-resolvconf

Differential Revision: https://reviews.freebsd.org/D37190

(cherry picked from commit a6a21bbedc744bae9ce7b20948b53a6d4033adcf)

17 months agorc.d: Put dhclient script in FreeBSD-dhclient
Emmanuel Vadot [Fri, 28 Oct 2022 07:32:27 +0000 (09:32 +0200)]
rc.d: Put dhclient script in FreeBSD-dhclient

Differential Revision: https://reviews.freebsd.org/D37187

(cherry picked from commit 81b18bea0935c33fc6aafb084ca72fd427d8364a)

17 months agorc.d: Put devmatch script in FreeBSD-devmatch
Emmanuel Vadot [Fri, 28 Oct 2022 07:31:59 +0000 (09:31 +0200)]
rc.d: Put devmatch script in FreeBSD-devmatch

Differential Revision: https://reviews.freebsd.org/D37192

(cherry picked from commit d8799160c2db46ea0caa3752838808c3126e2a6c)

17 months agorc.d: Put devd script in FreeBSD-devd package
Emmanuel Vadot [Fri, 28 Oct 2022 07:31:17 +0000 (09:31 +0200)]
rc.d: Put devd script in FreeBSD-devd package

Differential Revision: https://reviews.freebsd.org/D37186

(cherry picked from commit f0435696920bd18d46a31c69105d8cbaa7d479e5)

17 months agopkgbase: share rules for packages without pkgdeps
Ed Maste [Fri, 6 Jan 2023 14:44:54 +0000 (09:44 -0500)]
pkgbase: share rules for packages without pkgdeps

Have liby and libcompat share *-dev and *-lib32_dev rules, and share
*-man rule for libcompat and libelftc.  Also correct name substitution
and description for man rules.

Reviewed by: manu
Fixes: 5391bcf0f7e4 ("pkgbase: Do not record dependency on...")
Fixes: 65fa2fd23b9d ("pkgbase: Do record dependency on non-...")
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D37964

(cherry picked from commit 0eccd618a36aed1fb33d2f712e6624fdf111406d)

17 months agopkgbase: Do record dependency on non-existent libelftc package
Emmanuel Vadot [Thu, 5 Jan 2023 22:38:14 +0000 (23:38 +0100)]
pkgbase: Do record dependency on non-existent libelftc package

libelftc is an internal lib so it's never installed.
When building with WITH_MANSPLITPKG=yes the libelftc-man package
will have a dependecy on a non-existent libelftc package.

Sponsored by: Beckhoff Automation GmbH & Co. KG

(cherry picked from commit 65fa2fd23b9de1dd81a0a5fafc1d69757792edac)

17 months agopkgbase: Do not record dependency on non-existent libcompat package
Emmanuel Vadot [Thu, 5 Jan 2023 22:27:22 +0000 (23:27 +0100)]
pkgbase: Do not record dependency on non-existent libcompat package

libcompat only provides a .a which is put in the -dev package.
Add a special record for it so we do not require a dependency on the
non-existent package FreeBSD-libcompat.

Sponsored by: Beckhoff Automation GmbH & Co. KG

(cherry picked from commit 5391bcf0f7e4f9021b56d050cbd798940858d9c0)

17 months agopkgbase: Stop adding FreeBSD-runtime as a dep for every package
Emmanuel Vadot [Thu, 8 Dec 2022 10:55:39 +0000 (11:55 +0100)]
pkgbase: Stop adding FreeBSD-runtime as a dep for every package

shlib_required/provided is enough for the dependencies and this also
causes problems for packages like rescue which shouldn't depend on runtime
at all.

PR: 268063
Sponsored by: Beckhoff Automation GmbH & Co. KG

(cherry picked from commit 6933abc3e4bd316c1a10862d7dfc0688765fb723)

17 months agopkgbase: Put less in FreeBSD-runtime
Emmanuel Vadot [Tue, 16 Aug 2022 19:25:38 +0000 (21:25 +0200)]
pkgbase: Put less in FreeBSD-runtime

Useful to have a pager in it.

Differential Revision: https://reviews.freebsd.org/D36231

(cherry picked from commit 069ebe6fbae56a70058d24db4d6e310f1f916733)

17 months agopkgbase: Create a FreeBSD-games package
Emmanuel Vadot [Mon, 8 Aug 2022 17:56:50 +0000 (19:56 +0200)]
pkgbase: Create a FreeBSD-games package

And put :
- pom
- caesar
- grdc

Differential Revision: https://reviews.freebsd.org/D36230

(cherry picked from commit feec04b3554483ab8e6998200117949ed9ffed61)

17 months agopkgbase: Put devmatch in its own package
Emmanuel Vadot [Fri, 22 Jul 2022 20:30:11 +0000 (22:30 +0200)]
pkgbase: Put devmatch in its own package

devmatch is useful on standalone machine but not on jails.
Put devinfo(8) and libdevinfo there too.

Differential Revision: https://reviews.freebsd.org/D36229

(cherry picked from commit e7a5a60ed57d1eeb638f4824479b2ab3663eb8a1)

17 months agopkgbase: Put devd in its own package
Emmanuel Vadot [Fri, 22 Jul 2022 12:46:30 +0000 (14:46 +0200)]
pkgbase: Put devd in its own package

It's not that useful in a jail or in a mdroot.

Differential Revision: https://reviews.freebsd.org/D36228

(cherry picked from commit ea0850e4be1a027ba00a53f630bddd8cebebce1d)

17 months agopkgbase: Put ufs related tools and lib in their own package
Emmanuel Vadot [Fri, 22 Jul 2022 11:22:29 +0000 (13:22 +0200)]
pkgbase: Put ufs related tools and lib in their own package

It's not really useful in a jail or in a mdroot or even if a users
wants to do a full zfs machine.

Reviewed by: mckusick
Differential Revision: https://reviews.freebsd.org/D36227

(cherry picked from commit a7ffc948497e04354fa512915f7e383ee04ae269)

17 months agopkgbase: Put libwrap in FreeBSD-tcpd package
Emmanuel Vadot [Fri, 22 Jul 2022 09:06:05 +0000 (11:06 +0200)]
pkgbase: Put libwrap in FreeBSD-tcpd package

It belongs there with the tcp wrapper utilities

Differential Revision: https://reviews.freebsd.org/D36226

(cherry picked from commit a099694ecdbdc50445487c5b1ebebdc13c2f0b43)

17 months agopkgbase: Put zfs utilities and lib in their own package
Emmanuel Vadot [Fri, 22 Jul 2022 08:43:39 +0000 (10:43 +0200)]
pkgbase: Put zfs utilities and lib in their own package

It is useful to have zfs utilities and lib in a separate package as
it allow users to create image that can support ZFS (i.e. not with
WITHOUT_ZFS in src.conf set) without bloating the default image with
all zfs tools (for example for jails).

Differential Revision: https://reviews.freebsd.org/D36225

(cherry picked from commit a71ea7bea0d2a8ba86373377c3c1443acbeab5d2)

17 months agopkgbase: Put geom utilities in their own package
Emmanuel Vadot [Fri, 22 Jul 2022 08:19:07 +0000 (10:19 +0200)]
pkgbase: Put geom utilities in their own package

For most users it's not needed to boot and they are also
available in the FreeBSD-rescue package in case an update
break and FreeBSD-geom package isn't updated correctly.

Differential Revision: https://reviews.freebsd.org/D36224

(cherry picked from commit 0bf688786f7d5508b43b50c62f50f022e33b1352)

17 months agopkgbase: Put resolvconf in its own package
Emmanuel Vadot [Fri, 22 Jul 2022 08:01:59 +0000 (10:01 +0200)]
pkgbase: Put resolvconf in its own package

It doesn't really make sense to have it in runtime and let's not
bloat utilities more.

Differential Revision: https://reviews.freebsd.org/D36223

(cherry picked from commit 6987b552ddad55a0392622f6598e4dd6f983d287)

17 months agopkgbase: Put dhclient in its own package
Emmanuel Vadot [Fri, 22 Jul 2022 08:00:03 +0000 (10:00 +0200)]
pkgbase: Put dhclient in its own package

It doesn't really make sense to have it in runtime and let's not
bloat utilities more.

Reviewed by: emaste, imp
Differential Revision: https://reviews.freebsd.org/D36222

(cherry picked from commit ab4bd66752fb8aca307a7a4b4523a1c44a21fc45)

17 months agopkgbase: Put nvmecontrol in its own package
Emmanuel Vadot [Fri, 22 Jul 2022 07:58:11 +0000 (09:58 +0200)]
pkgbase: Put nvmecontrol in its own package

It doesn't really make sense to have it in runtime and let's not
bloat utilities more.

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D36221

(cherry picked from commit 5f9db65d8af0b8419ba71749f15ee06d636fb9c4)

17 months agopkgbase: Put accounting utilities in the acct package
Emmanuel Vadot [Thu, 21 Jul 2022 15:09:34 +0000 (17:09 +0200)]
pkgbase: Put accounting utilities in the acct package

(cherry picked from commit 0c6b2a91795167203f442a84aac2570397226e56)

17 months agolib: Gate libfigpar under MK_DIALOG
Emmanuel Vadot [Thu, 21 Jul 2022 14:52:24 +0000 (16:52 +0200)]
lib: Gate libfigpar under MK_DIALOG

libfigpar is only used by dpv and dpv isn't built if WITHOUT_DIALOG
is set.

(cherry picked from commit 15d781b5323315afaed06fb2f2499f9164e1ef86)

17 months agopkgbase: Put mount_nfs in the FreeBSD-nfs package
Emmanuel Vadot [Fri, 22 Jul 2022 11:23:14 +0000 (13:23 +0200)]
pkgbase: Put mount_nfs in the FreeBSD-nfs package

(cherry picked from commit 4efb514b70ba9acdc27026daf3c8c93917ed4fe9)

17 months agopkgbase: mtree: Correctly tag /var/db entries
Emmanuel Vadot [Fri, 22 Jul 2022 09:21:44 +0000 (11:21 +0200)]
pkgbase: mtree: Correctly tag /var/db entries

(cherry picked from commit 1a104a3bf3d23bfe8a1d899f3b668dec7d2f0a27)

17 months agopkgbase: mtree: Correctly tag /var/run entries
Emmanuel Vadot [Fri, 22 Jul 2022 09:14:40 +0000 (11:14 +0200)]
pkgbase: mtree: Correctly tag /var/run entries

(cherry picked from commit d2888f5ccf7dc61a31ceb981d488f648795aa878)

17 months agoumcs(4): Fix a typo in a kernel message
Gordon Bergling [Sat, 28 Jan 2023 14:45:52 +0000 (15:45 +0100)]
umcs(4): Fix a typo in a kernel message

- s/confguration/configuration/
- s/nornal/normal/

Obtained from: NetBSD

(cherry picked from commit ee27834d740df50b7e5834a2075b94ae3c15d81a)

17 months agopciconf(8): Decode ACS extended capability.
Navdeep Parhar [Fri, 4 Nov 2022 19:30:09 +0000 (12:30 -0700)]
pciconf(8): Decode ACS extended capability.

Sponsored by: Chelsio Communications
Reviewed by: kib@
Differential Revision: https://reviews.freebsd.org/D37271

(cherry picked from commit 118cfb829f355a4545f079f12bab5ea8e41fe214)

17 months agopcireg.h: Add values for ACS PCIe Extended capability.
Navdeep Parhar [Fri, 4 Nov 2022 19:22:11 +0000 (12:22 -0700)]
pcireg.h: Add values for ACS PCIe Extended capability.

These values come from section 7.7.11 ("ACS Extended Capability") of the
PCI Express Base Specification Revision 6.0, dated 16 Dec 2021.

Sponsored by: Chelsio Communications
Reviewed by: kib@
Differential Revision: https://reviews.freebsd.org/D37270

(cherry picked from commit b2700160cc4f5ff7d64926ea55a214b5ac970cf5)

17 months agocxgbe/cxgbei: Do not validate the hardware iSCSI tag mask.
Navdeep Parhar [Wed, 5 Oct 2022 18:05:12 +0000 (11:05 -0700)]
cxgbe/cxgbei: Do not validate the hardware iSCSI tag mask.

This was added in 7cba15b16eb2 in 2016 and firmwares at that time were
already setting up the iSCSI tag mask properly.  Since then it has also
become possible to split the iSCSI region between multiple PCIE PFs but
the driver's calculation takes only its own PF's allocation into account
and that means this code is incorrect and not just a harmless no-op.

Sponsored by: Chelsio Communications

(cherry picked from commit 661faa1f77c0fa9d28d60d71087820aaaaee8b1b)

17 months agocxgbe/tom: Fix assertions in the code that maintains TCB history.
Navdeep Parhar [Thu, 29 Sep 2022 02:56:14 +0000 (19:56 -0700)]
cxgbe/tom: Fix assertions in the code that maintains TCB history.

The tids used for TOE connections start from tid_base, not 0.

Sponsored by: Chelsio Communications

(cherry picked from commit 8d2c13931b7e4897ca5d73af57f4cf35e440ec54)

17 months agocxgbe(4): Add knob to control congestion behavior for TOE queues.
Navdeep Parhar [Fri, 9 Sep 2022 22:21:18 +0000 (15:21 -0700)]
cxgbe(4): Add knob to control congestion behavior for TOE queues.

hw.cxgbe.ofld_cong_drop works just like hw.cxgbe.cong_drop but for TOE
rx queues.

Sponsored by: Chelsio Communications

(cherry picked from commit 998eb37aca6670b1ecbb7b5cad2b5b2d85d744b8)

17 months agocxgbe(4): Add another setting to the knob that controls congestion.
Navdeep Parhar [Fri, 9 Sep 2022 22:16:22 +0000 (15:16 -0700)]
cxgbe(4): Add another setting to the knob that controls congestion.

hw.cxgbe.cong_drop=2 will generate backpressure *and* drop frames for
queues that are congested.

Sponsored by: Chelsio Communications

(cherry picked from commit df275ae5090048fb7a8c082d509fae57e891957a)

17 months agocxgbe(4): Specify the ingress queue's type when creating it.
Navdeep Parhar [Thu, 8 Sep 2022 18:47:38 +0000 (11:47 -0700)]
cxgbe(4): Specify the ingress queue's type when creating it.

The firmware takes the type into account when setting up the PCIe
channel for the queue.

Sponsored by: Chelsio Communications

(cherry picked from commit c387ff0045d620d60ed8250360d4196a4c962a13)

17 months agocxgbetool: remove unnecessary vertical whitespace.
Navdeep Parhar [Fri, 19 Aug 2022 19:46:32 +0000 (12:46 -0700)]
cxgbetool: remove unnecessary vertical whitespace.

No functional change.

(cherry picked from commit f6cc21e8e14344ca698c19a2931c04867249dd60)

17 months agocxgbe(4): Add a knob to request that clocks be gated on suspend.
Navdeep Parhar [Tue, 16 Aug 2022 07:48:21 +0000 (00:48 -0700)]
cxgbe(4): Add a knob to request that clocks be gated on suspend.

Sponsored by: Chelsio Communications

(cherry picked from commit a8dc67388ae11a3bbb0175acb3ef9f6478d0c233)

17 months agocxgbe(4): Decode and display some more bits in the PL interrupt handler.
Navdeep Parhar [Sat, 13 Aug 2022 04:11:13 +0000 (21:11 -0700)]
cxgbe(4): Decode and display some more bits in the PL interrupt handler.

Sponsored by: Chelsio Communications

(cherry picked from commit a7d081a8ce0e1f4c985d2a771859d35561602b5c)

17 months agocxgbe(4): Update firmwares to 1.27.0.0.
Navdeep Parhar [Sun, 14 Aug 2022 23:57:39 +0000 (16:57 -0700)]
cxgbe(4): Update firmwares to 1.27.0.0.

Changes since 1.26.6.0 are listed here.  This list comes from the
Release Notes for "Chelsio Unified Wire 3.17.0.0 for Linux" dated
2022-07-29.

Fixes
-----

BASE:
- Enabled all MA parity interrupt bits.
- Use config file value to override number of rx channel. nrxch=1 was not
  handled in the firmware.
- Replaced read only registers with new registers EDC_H_BIST_USER_WDATA0,
  EDC_H_BIST_USER_WDATA1 and EDC_H_BIST_CMD_LEN to dump the uP memory parity
  error status registers.
- 10G simplex module support enabled.

Obtained from: Chelsio Communications
Sponsored by: Chelsio Communications

(cherry picked from commit 2bb28b5f8cb5700945539584e7864773f0dfcd51)

17 months agocxgbe/iw_cxgbe: c4iw_zero_addr should not use IN_ZERONET.
Navdeep Parhar [Thu, 19 May 2022 19:25:30 +0000 (12:25 -0700)]
cxgbe/iw_cxgbe: c4iw_zero_addr should not use IN_ZERONET.

c4iw_zero_addr is supposed to check for all-zero addresses but was using
IN_ZERONET (which does something different) for IPv4 addresses.  Fix it
by simply checking for 0 as is done for IPv6 addresses.

Reported by: karels@
Sponsored by: Chelsio Communications

(cherry picked from commit 87c5ff0648a8e88b71a66994e1f9ca127fd4ed83)

17 months agocxgbetool(8): User interface to round-robin queue selection via COP.
Navdeep Parhar [Thu, 14 Apr 2022 22:54:13 +0000 (15:54 -0700)]
cxgbetool(8): User interface to round-robin queue selection via COP.

Queue "roundrobin" in a COP rule means the driver should select queues
for new tids in a round-robin manner.

Reviewed by: jhb@
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D34922

(cherry picked from commit 811a82d53aaf905bebb523600d375a457069f022)

17 months agocxgbe/t4_tom: Support for round-robin selection of offload queues.
Navdeep Parhar [Thu, 14 Apr 2022 22:49:58 +0000 (15:49 -0700)]
cxgbe/t4_tom: Support for round-robin selection of offload queues.

A COP (Connection Offload Policy) rule can now specify that the tx
and/or rx queue for a new tid should be selected in a round-robin
manner. There is no change in default behavior.

Reviewed by: jhb@
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D34921

(cherry picked from commit db28d4a0cd1c7a8505d6cbb3e8772b794cd55e53)

17 months agocxgbe(4): Add support for PPOD_EDRAM feature.
Navdeep Parhar [Thu, 14 Apr 2022 22:43:32 +0000 (15:43 -0700)]
cxgbe(4): Add support for PPOD_EDRAM feature.

The driver queries the firmware to find out if it supports this feature
and enables it if it does. The firmware moves the iSCSI page pod region
to a lower address so that some of it is located in the faster on-chip
memory instead of external DDR.

Reviewed by: jhb@
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D34895

(cherry picked from commit 169e94c41e235191014503de06915b0c1b60db91)

17 months agocxgbe(4): Fix control flow issues reported by Coverity.
Navdeep Parhar [Thu, 14 Apr 2022 07:17:36 +0000 (00:17 -0700)]
cxgbe(4): Fix control flow issues reported by Coverity.

CID 1487932:  Control flow issues  (NESTING_INDENT_MISMATCH).
The macro on this line expands into multiple statements, only the first
of which is nested within the preceding parent while the rest are not.
9828                    ulp_region(RX_TLS_KEY);

Reported by: Coverity (CID 1487932)
Fixes: f88b31885c4 cxgbe(4): meminfo should get the TLS region's limits from the hardware.
Sponsored by: Chelsio Communications

(cherry picked from commit 239170f29210a21a68284dc967e57ed8047fb2ba)

17 months agocxgbe/cxgbei: Allow max PDU payload lengths to be changed with a sysctl.
Navdeep Parhar [Tue, 25 Jan 2022 22:27:28 +0000 (14:27 -0800)]
cxgbe/cxgbei: Allow max PDU payload lengths to be changed with a sysctl.

New connections will use the new values.  Existing connections are not
affected.

Obtained from: jhb@
Sponsored by: Chelsio Communications

(cherry picked from commit f8058d33337425549e42dcccdd0f55c837bb8775)

17 months agocxgbe(4): Display the number of free PM pages and p-structs in meminfo.
Navdeep Parhar [Wed, 6 Apr 2022 00:15:31 +0000 (17:15 -0700)]
cxgbe(4): Display the number of free PM pages and p-structs in meminfo.

Sponsored by: Chelsio Communications

(cherry picked from commit c5a7885c80260f5eccb616ecbc77d7e919ce2614)

17 months agocxgbe(4): meminfo should get the TLS region's limits from the hardware.
Navdeep Parhar [Tue, 5 Apr 2022 21:54:11 +0000 (14:54 -0700)]
cxgbe(4): meminfo should get the TLS region's limits from the hardware.

meminfo is meant for debugging and it should read hardware configuration
directly when possible instead of relying on values queried from the
firmware.  Rename the region to "TLSKey region" to match other drivers
while here.

Sponsored by: Chelsio Communications

(cherry picked from commit f88b31885c4fd1f80bed2c3b3f2eb05f98367f31)

17 months agocxgbe(4): Fix the sorting order of the regions listed in meminfo.
Navdeep Parhar [Tue, 5 Apr 2022 21:13:11 +0000 (14:13 -0700)]
cxgbe(4): Fix the sorting order of the regions listed in meminfo.

Sponsored by: Chelsio Communications

(cherry picked from commit 9983e5cce6c77c791bd914648b2acc2e54acc515)

17 months agosdio: Do not allow setting a block size if function doesn't support it
Emmanuel Vadot [Wed, 26 May 2021 11:15:58 +0000 (13:15 +0200)]
sdio: Do not allow setting a block size if function doesn't support it

(cherry picked from commit 49da0242e798ade8a578036929bff493a2d6ef75)

17 months agosdio: Add CCCR speed defines
Emmanuel Vadot [Wed, 14 Jul 2021 15:25:36 +0000 (17:25 +0200)]
sdio: Add CCCR speed defines

Those are the defines needed to change speed on a SDIO card.

(cherry picked from commit 348164aa9e5d862b65c8436861a3eb2b33bcb16e)

17 months agosdio: Change the sdio helper name and arg order
Emmanuel Vadot [Fri, 21 May 2021 09:56:39 +0000 (11:56 +0200)]
sdio: Change the sdio helper name and arg order

Do not use b/l but _1/_4 also address comes first and then data.
This makes them closer to something like bus_space_{read,write}
We have no users in the tree.

(cherry picked from commit b9db5e0a8f38cfcfada7238a9895ad45f39f10a9)

17 months agosdio: Always use increment address for read/write_4
Emmanuel Vadot [Fri, 21 May 2021 11:33:34 +0000 (13:33 +0200)]
sdio: Always use increment address for read/write_4

SDIO CMD53 (RW Extented) can either write to the same address (useful for FIFO)
or auto increment the destination address (to write to multiple registers).
It is more logical to have read/write_4 to use incremental mode and make other
helper function for writing to a FIFO destination especially since most FIFO
write/read will be 8bits based and not 32bits based.

(cherry picked from commit 1ee7a8049218e6dc0a520e6e298626d11d254a2b)

17 months agomodules: if_awg: Add miibus_if.h to the source
Emmanuel Vadot [Sun, 14 Nov 2021 19:53:10 +0000 (20:53 +0100)]
modules: if_awg: Add miibus_if.h to the source

Needed by the module.

(cherry picked from commit d38a784b61e35d4281b06c94bcedbc26d25982a1)

17 months agomodules: aw_mmc: Add mmc_pwrseq_if to the source
Emmanuel Vadot [Sun, 14 Nov 2021 19:52:44 +0000 (20:52 +0100)]
modules: aw_mmc: Add mmc_pwrseq_if to the source

Needed by the module.

(cherry picked from commit fbc50a695433b870275c5da112af4eb1cab7fe94)

17 months agoarm64: rockchip: rk_gpio: Improve mode switching
Emmanuel Vadot [Wed, 22 Sep 2021 14:55:54 +0000 (16:55 +0200)]
arm64: rockchip: rk_gpio: Improve mode switching

Changing mode on a pin (input/output/pullup/pulldown) is a bit slow.
Improve this by caching what we can.
We need to check if the pin is in gpio mode, do that the first time
that we have a request for this pin and cache the result. We can't do
that at attach as we are a child of rk_pinctrl and it didn't finished
its attach then.
Cache also the flags specific to the pinctrl (pullup or pulldown) if the
pin is in input mode.
Cache the registers that deals with input/output mode and output value. Also
remove some register reads when we change the direction of a pin or when we
change the output value since the bit changed in the registers only affect output
pins.

(cherry picked from commit 87f642ac03e3cefea7048cb46b17810d01e97dd5)

17 months agoarm64: rockchip: pinctrl: Do not rely on the node name
Emmanuel Vadot [Wed, 10 Aug 2022 13:47:22 +0000 (15:47 +0200)]
arm64: rockchip: pinctrl: Do not rely on the node name

Node names for gpio bank were made generic in Linux 5.16 so stop
using them to map the gpio controller to the pin controller bank unit.

Sponsored by: Beckhoff Automation GmbH & Co. KG

(cherry picked from commit 8d6b3a85701062ee795a5aeabb0771c93a8f6f72)

17 months agoBBLog: improve sysctl variables
Cheng Cui [Sat, 24 Dec 2022 21:10:31 +0000 (22:10 +0100)]
BBLog: improve sysctl variables

Correct the format in sysctl net.inet.tcp.bb.disable_all and
sysctl net.inet.tcp.bb.log_auto_all.
Correct the format and the description in
net.inet.tcp.bb.log_auto_mode.

Reviewed by: rscheff, tuexen
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D37776

(cherry picked from commit 57cc27a3325af74553e852851d5e84e308ae79f4)

17 months agoppp: improve MSS clamping
Michael Tuexen [Thu, 8 Dec 2022 08:48:29 +0000 (09:48 +0100)]
ppp: improve MSS clamping

ppp supports MSS clamping for TCP/IPv4. This patch
* improves MSS clamping for TCP/IPv4 by using the MSS as specified
  in RFC 6691.
* adds support for MSS clamping for TCP/IPv6.

Reported by: Timo Voelker
Reviewed by: thj
Differential Revision: https://reviews.freebsd.org/D37624

(cherry picked from commit cef3c4e0bab8bd5e84ab8cfa2fa48a1e3dca5876)

17 months agotcp: remove unused t_rttbest
Michael Tuexen [Wed, 16 Nov 2022 10:22:13 +0000 (11:22 +0100)]
tcp: remove unused t_rttbest

No functional change intended.

Reviewed by: rscheff@
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D37401

(cherry picked from commit bd4f986644b3804e19b92d39f1f90ffabff83e14)

17 months agolibalias: improve handling of invalid SCTP packets
Michael Tuexen [Tue, 15 Nov 2022 20:05:02 +0000 (21:05 +0100)]
libalias: improve handling of invalid SCTP packets

In case of a paritial chunk only pretend the result is OK if
the packet is not the last fragment and there is a valid association.

PR: 267476

(cherry picked from commit 9a714376212ec1685fdc4cf254f2136a07ae6d2c)

17 months agoUnbreak builds having SCTP support compiled in
Michael Tuexen [Mon, 7 Nov 2022 07:50:51 +0000 (08:50 +0100)]
Unbreak builds having SCTP support compiled in

Including sctp_var.h requires INET to be defined if IPv4 support
is needed.

(cherry picked from commit 126f8248ccfee8e9252a8b449694b8619738599f)

17 months agosctp: improve sending of ABORT packets in response to INIT-ACKs
Michael Tuexen [Wed, 12 Oct 2022 23:05:44 +0000 (01:05 +0200)]
sctp: improve sending of ABORT packets in response to INIT-ACKs

Ensure that the initiate tag of the INIT-ACK chunk is used as the
verification tag of the packet containing the ABORT chunk.

Reported by: Suganya Dharma

(cherry picked from commit dd36606b1bc90d1459e0d04be4ea5859d3eabb16)

17 months agoSync TCP related kernel config options
Michael Tuexen [Mon, 10 Oct 2022 13:40:26 +0000 (15:40 +0200)]
Sync TCP related kernel config options

Add TCP_BLACKBOX to the remaining platforms (arm64, RISC-V) and add
TCP_RFC7413 to the remaining platform (RISC-V).

Reviewed by: rscheff@
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D36918

(cherry picked from commit ad20efdde208485db97027a00c4b08a7daa9c663)

17 months agotraceroute6: fix capabilities for the rcv socket
Michael Tuexen [Tue, 4 Oct 2022 21:34:58 +0000 (23:34 +0200)]
traceroute6: fix capabilities for the rcv socket

On the receive socket, recvmsg() and poll()/select() is called.
Therefore, CAP_EVENT is needed in addition to CAP_RECV.

While there, check the socket for readbility before calling recvmsg().

Reviewed by: markj@
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D36878

(cherry picked from commit 8ff4fc03e6933dd69f99a8f34f2aa0760300f248)

17 months agotcp: improve handling of SYN-ACK segments in TIMEWAIT state
Michael Tuexen [Mon, 3 Oct 2022 12:46:47 +0000 (14:46 +0200)]
tcp: improve handling of SYN-ACK segments in TIMEWAIT state

Only consider segments with the SYN bit set and the ACK bit cleared
as "new connection attempts", which result in re-using a connection
being in TIMEWAIT state. This results in consistent handling of
SYN-ACK segments.

Reviewed by: rscheff@
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D36864

(cherry picked from commit 2515552e6216095c3fa61d93ee024bb8861e07c2)

17 months agotcp: honor drop_synfin sysctl variable in TIME-WAIT
Michael Tuexen [Mon, 3 Oct 2022 10:48:30 +0000 (12:48 +0200)]
tcp: honor drop_synfin sysctl variable in TIME-WAIT

Reviewed by: rrs@
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D36862

(cherry picked from commit f8b5681094dd752604bfa0603ba0be2873698f46)

17 months agotcp: fix stats counter for SYN_RCVD state when TCP-FO is used
Michael Tuexen [Sun, 28 Aug 2022 16:45:59 +0000 (18:45 +0200)]
tcp: fix stats counter for SYN_RCVD state when TCP-FO is used

Reviewed by: glebius
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D36384

(cherry picked from commit c624b9a549f0fe82dd74dc66c9369e5da856b506)

17 months agotcp: improve BBLog for output events when using the FreeBSD stack
Michael Tuexen [Mon, 8 Aug 2022 11:07:10 +0000 (13:07 +0200)]
tcp: improve BBLog for output events when using the FreeBSD stack

Put the return value of ip_output()/ip6_output in the output event
instead of adding another one in case of an error. This improves
consistency with other similar places.

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

(cherry picked from commit bd30a1216e03e14cfaa7e91b1fc72ad76e9cd240)

17 months agosctp: improve handling of send() calls with no user data`
Michael Tuexen [Mon, 8 Aug 2022 10:53:42 +0000 (12:53 +0200)]
sctp: improve handling of send() calls with no user data`

In particular, don't report EAGAIN on send() calls with no user
data, which might trigger a KASSERT in asyc IO.

Reported by: syzbot+3b4dc5d1d63e9bd01eda@syzkaller.appspotmail.com

(cherry picked from commit bb995f2ef0e75e2e9cc784fc36fc3eb02d3e3113)

17 months agosctp: tweak panic message
Michael Tuexen [Wed, 3 Aug 2022 15:28:15 +0000 (17:28 +0200)]
sctp: tweak panic message

(cherry picked from commit 979bc32c7c14f944a340058fcd1a580a7492f785)

17 months agotcp rack: simplify computation of rsm start and end
Michael Tuexen [Tue, 2 Aug 2022 10:45:56 +0000 (12:45 +0200)]
tcp rack: simplify computation of rsm start and end

While there, also fix the setting of the SYN related flag.

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

(cherry picked from commit 1abc27dd52e5fd151472439004f20dc798887ae1)