| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Obtained from: sysutils/iichid
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In order to efficiently serve web traffic on a NUMA
machine, one must avoid as many NUMA domain crossings as
possible. With SO_REUSEPORT_LB, a number of workers can share a
listen socket. However, even if a worker sets affinity to a core
or set of cores on a NUMA domain, it will receive connections
associated with all NUMA domains in the system. This will lead to
cross-domain traffic when the server writes to the socket or
calls sendfile(), and memory is allocated on the server's local
NUMA node, but transmitted on the NUMA node associated with the
TCP connection. Similarly, when the server reads from the socket,
he will likely be reading memory allocated on the NUMA domain
associated with the TCP connection.
This change provides a new socket ioctl, TCP_REUSPORT_LB_NUMA. A
server can now tell the kernel to filter traffic so that only
incoming connections associated with the desired NUMA domain are
given to the server. (Of course, in the case where there are no
servers sharing the listen socket on some domain, then as a
fallback, traffic will be hashed as normal to all servers sharing
the listen socket regardless of domain). This allows a server to
deal only with traffic that is local to its NUMA domain, and
avoids cross-domain traffic in most cases.
This patch, and a corresponding small patch to nginx to use
TCP_REUSPORT_LB_NUMA allows us to serve 190Gb/s of kTLS encrypted
https media content from dual-socket Xeons with only 13% (as
measured by pcm.x) cross domain traffic on the memory controller.
Reviewed by: jhb, bz (earlier version), bcr (man page)
Tested by: gonzo
Sponsored by: Netfix
Differential Revision: https://reviews.freebsd.org/D21636
Notes:
svn path=/head/; revision=368819
|
|
|
|
|
|
|
|
|
|
| |
- missing comma before name: Nm SYSCTL_UQUAD
- bad NAME section content: text
MFC after: 1 week
Notes:
svn path=/head/; revision=368798
|
|
|
|
|
|
|
|
|
|
|
| |
- missing comma before name: Nm ofw_bus_status_okay
- missing comma before name: Nm ofw_bus_node_status_okay
- skipping paragraph macro: Pp after Sh
MFC after: 1 week
Notes:
svn path=/head/; revision=368797
|
|
|
|
|
|
|
|
|
|
|
|
| |
- missing comma before name: Nm ofw_bus_is_compatible_strict
- missing comma before name: Nm ofw_bus_node_is_compatible
- missing comma before name: Nm ofw_bus_search_compatible
- skipping paragraph macro: Pp after Sh
MFC after: 1 week
Notes:
svn path=/head/; revision=368796
|
|
|
|
|
|
|
|
|
|
| |
- function name without markup: return()
- function name without markup: print()
MFC after: 1 week
Notes:
svn path=/head/; revision=368795
|
|
|
|
|
|
|
|
|
| |
- sections out of conventional order: Sh SEE ALSO
MFC after: 1 week
Notes:
svn path=/head/; revision=368794
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- skipping paragraph macro: Pp before Bl
- skipping paragraph macro: Pp after Ss
- skipping paragraph macro: Pp at the end of Ss
- unusual Xr punctuation: none before bhnd_driver_get_erom_class(9)
- unusual Xr punctuation: none before bus_space(9)
MFC after: 1 week
Notes:
svn path=/head/; revision=368793
|
|
|
|
|
|
|
|
|
|
|
|
| |
- skipping paragraph macro: Pp before Bl
- skipping paragraph macro: Pp at the end of Ss
- missing section argument: Xr device_set_desc
- unusual Xr punctuation: none before bhnd_erom(9)
MFC after: 1 week
Notes:
svn path=/head/; revision=368792
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- function name without markup: g_io_deliver()
- function name without markup: disk_gone()
- sections out of conventional order: Sh SEE ALSO
- referenced manual not found: Xr MAKE_DEV 9
Actually the man page of MAKE_DEV has never existed.
MFC after: 3 days
Notes:
svn path=/head/; revision=368791
|
|
|
|
|
|
|
| |
- no blank before trailing delimiter
Notes:
svn path=/head/; revision=368790
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The argument is a void * so there's no need to cast it to caddr_t.
Update documentation to match function decleration.
Reviewed by: freqlabs
Obtained from: CheriBSD
MFC after: 1 week
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D27093
Notes:
svn path=/head/; revision=368744
|
|
|
|
|
|
|
| |
MFC after: 1 week
Notes:
svn path=/head/; revision=368742
|
|
|
|
| |
Notes:
svn path=/head/; revision=368695
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
nids(4) was a clever idea in the early 2000's when the market was
flooded with 10/100 NICs with Windows-only drivers, but that hasn't been
the case for ages and the driver has had no meaningful maintenance in
ages. It only supports Windows-XP era drivers.
Reviewed by: imp, bcr
MFC after: 3 days
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D27527
Notes:
svn path=/head/; revision=368561
|
|
|
|
|
|
|
|
|
|
|
|
| |
The hme (Happy Meal Ethernet) driver was the onboard NIC in most
supported sparc64 platforms. A few PCI NICs do exist, but we have seen
no evidence of use on non-sparc systems.
Reviewed by: imp, emaste, bcr
Sponsored by: DARPA
Notes:
svn path=/head/; revision=368559
|
|
|
|
|
|
|
|
|
| |
MFC after: 1 week
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D27557
Notes:
svn path=/head/; revision=368557
|
|
|
|
| |
Notes:
svn path=/head/; revision=368549
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Macfilter to route packets through different hooks based on sender MAC address.
Based on ng_macfilter written by Pekka Nikander
Sponsered by Retina b.v.
Reviewed by: afedorov
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D27268
Notes:
svn path=/head/; revision=368443
|
|
|
|
| |
Notes:
svn path=/head/; revision=368442
|
|
|
|
| |
Notes:
svn path=/head/; revision=368440
|
|
|
|
| |
Notes:
svn path=/head/; revision=368413
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Sync serial (T1/E1) interfaces are largely irrelevant today and phk
confirms this driver is unnecessary in review D23928.
This leaves ce(4) and cp(4) in the tree. They're likely not relevant
either, but glebius contacted the manufacturer and those devices are
still available for purchase. At glebius' suggestion leave them in
the tree as long as they do not impose a maintenace burden.
Approved by: phk
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/head/; revision=368397
|
|
|
|
|
|
|
|
|
| |
- sections out of conventional order: Sh EXAMPLES
- sections out of conventional order: Sh SEE ALSO
- skipping end of block that is not open: El
Notes:
svn path=/head/; revision=368368
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable in-kernel acceleration of SHA1 and SHA2 operations on arm64 by adding
support for the ossl(4) crypto driver. This uses OpenSSL's assembly routines
under the hood, which will detect and use SHA intrinsics if they are
supported by the CPU.
Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D27390
Notes:
svn path=/head/; revision=368350
|
|
|
|
| |
Notes:
svn path=/head/; revision=368310
|
|
|
|
|
|
|
| |
MFC after: 1 week
Notes:
svn path=/head/; revision=368267
|
|
|
|
|
|
|
| |
Submitted by: rmacklem
Notes:
svn path=/head/; revision=368247
|
|
|
|
|
|
|
|
| |
Submitted by: Mina Galić <me_igalic.co>
Differential Revision: https://reviews.freebsd.org/D27408
Notes:
svn path=/head/; revision=368157
|
|
|
|
| |
Notes:
svn path=/head/; revision=368130
|
|
|
|
|
|
|
| |
MFC-with: r368045
Notes:
svn path=/head/; revision=368046
|
|
|
|
|
|
|
|
|
|
|
|
| |
This subsumes some of the content from tcp(4) describing the socket
options but also adds additional notes.
Reviewed by: gallatin, hselasky
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D27272
Notes:
svn path=/head/; revision=368040
|
|
|
|
| |
Notes:
svn path=/head/; revision=368007
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Crypto file descriptors were added in the original OCF import as a way
to provide per-open data (specifically the list of symmetric
sessions). However, this gives a bit of a confusing API where one has
to open /dev/crypto and then invoke an ioctl to obtain a second file
descriptor. This also does not match the API used with /dev/crypto on
other BSDs or with Linux's /dev/crypto driver.
Character devices have gained support for per-open data via cdevpriv
since OCF was imported, so use cdevpriv to simplify the userland API
by permitting ioctls directly on /dev/crypto descriptors.
To provide backwards compatibility, CRIOGET now opens another
/dev/crypto descriptor via kern_openat() rather than dup'ing the
existing file descriptor. This preserves prior semantics in case
CRIOGET is invoked multiple times on a single file descriptor.
Reviewed by: markj
Relnotes: yes
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D27302
Notes:
svn path=/head/; revision=368005
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This driver provides support for Realtek PCI SD card readers. It attaches
mmc(4) bus on card insertion and detaches it on card removal. It has been
tested with RTS5209, RTS5227, RTS5229, RTS522A, RTS525A and RTL8411B. It
should also work with RTS5249, RTL8402 and RTL8411.
PR: 204521
Submitted by: Henri Hennebert (hlh at restart dot be)
Reviewed by: imp, jkim
Differential Revision: https://reviews.freebsd.org/D26435
Notes:
svn path=/head/; revision=367998
|
|
|
|
|
|
|
|
|
|
| |
Reviewed by: 0mp, bcr, imp
MFC after: 2 weeks
Sponsored by: EPSRC
Differential Revision: https://reviews.freebsd.org/D27248
Notes:
svn path=/head/; revision=367954
|
|
|
|
|
|
|
|
|
| |
Reviewed by: arichardson
Sponsored by: Dell EMC
Differential Revision: https://reviews.freebsd.org/D27200
Notes:
svn path=/head/; revision=367910
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This removes 288KB (36%) of the driver code and zillions of hacks and
workarounds, making single driver uniformly support several different
generations of hardware interfaces, not counting minor card variations.
After years of the hopeless fight, I don't think it worth to continue
support for hardware obsolete for 15-20 years. Instead much cleaner
now code should allow to move forward toward better locking, multiple
queues and other cool features.
All the remaining Qlogic cards starting from 4Gb 24xx to 32Gb 27xx use
the same hardware/firmware interface with minor incremental improvements,
so it seems to be a good new starting point. Except one PCI-X model all
all of them are PCIe and so still usable in modern systems.
Discussed with: ken, scottl, jpaetzel, imp
Relnotes: yes
Notes:
svn path=/head/; revision=367857
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There are many cases where one would choose avoid entering the debugger
on a normal panic, opting instead to reboot and possibly save a kernel
dump. However, recursive kernel panics are an unusual case that might
warrant attention from a human, so provide a secondary tunable,
debug.debugger_on_recursive_panic, to allow entering the debugger only
when this occurs.
For for simplicity in maintaining existing behaviour, the tunable
defaults to zero.
Reviewed by: cem, markj
Sponsored by: NetApp, Inc.
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D27271
Notes:
svn path=/head/; revision=367848
|
|
|
|
|
|
|
|
|
|
|
| |
First stab at documenting the different disk ioctl commands defined in
sys/disk.h.
Reviewed by: phk (prior version)
Differential Revision: https://reviews.freebsd.org/D26994
Notes:
svn path=/head/; revision=367847
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Section 7 of the manual pages contain lots of very useful information, but
finding the pages is not always obvious - to assist people in finding the
information, add missing cross-references.
Reviewed by: 0mp (mentor), mhorne, yuripv
Approved by: 0mp (mentor
Differential Revision: https://reviews.freebsd.org/D27284
Notes:
svn path=/head/; revision=367846
|
|
|
|
| |
Notes:
svn path=/head/; revision=367804
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Refering to guide: https://wiki.freebsd.org/SPDX the SPDX tag should not
replace the standard license text, however it should be added over the
standard license text to make the automation easier.
Because of that, the old license was kept, but the SPDX tag was added
on top of every ENA driver file.
Submited by: Michal Krawczyk <mk@semihalf.com>
Obtained from: Semihalf
Sponsored by: Amazon, Inc
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D27117
Notes:
svn path=/head/; revision=367801
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As this ABI is still fresh (r367287), let's correct some mistakes now:
- Version the structure to allow for future changes
- Include sender's pid in control message structure
- Use a distinct control message type from the cmsgcred / sockcred mess
Discussed with: kib, markj, trasz
Differential Revision: https://reviews.freebsd.org/D27084
Notes:
svn path=/head/; revision=367776
|
|
|
|
|
|
|
|
|
| |
PR: 251166
Submitted by: marcus
MFC after: 2 weeks
Notes:
svn path=/head/; revision=367772
|
|
|
|
|
|
|
| |
INIT_ALL_ZERO / INIT_ALL_PATTERN
Notes:
svn path=/head/; revision=367649
|
|
|
|
|
|
|
| |
MFC after: 3 days
Notes:
svn path=/head/; revision=367619
|
|
|
|
|
|
|
|
|
|
|
| |
Perhaps it made sense in 1998 (r32836), but now it feels a bit out of
place. We tend to avoid documenting non-essential ports variables in
the manual page (we try to document them in the Porter's Handbook instead).
MFC after: 1 week
Notes:
svn path=/head/; revision=367552
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- map those IPv4 / IPv6 socket options which exist in FreeBSD
+ most of them visually verified to have the same type/layout of arguments
+ not tested with linux programs to behave as intended
- be more human readable for known options which are not handled
- be more verbose for unhandled socket message flags we know about
- print the jail ID in linux_msg if run in a jail
- add possibility to print debug message about known missing parts only once
- add multiple levels of sysctl linux.debug:
1: print debug messages, tell about unimplemented stuff (only once)
2: like 1, but also print messages about implemented but not tested
stuff (only once)
3+: like 2, but no rate limiting of messages
- increase default linux debug level from 1 to 3
We are a lot more verbose in as we need to be (e.g. some of the IP socket
options which are the same, and share the same memory layout, and are
believed to work). The reason is that we have no good testsuite to test those
linux-bits. The LTP or other test suites like the python one, are not fully
up to the task we need. As such the excessive messages about emulated but not
tested socket options.
IMO any MFC (possible, but most probably not by me) should set the default
debug level to 1.
Discussed with: trasz
Notes:
svn path=/head/; revision=367481
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Disabled by default.
PR: 86388
Submitted by: Miroslav Lachman <000.fbsd@quip.cz>
Reviewed by: allanjude, gbe
Approved by: allanjude (mentor)
MFC after: 4 weeks
Event: July 2020 Bugathon
Differential Revision: https://reviews.freebsd.org/D25631
Notes:
svn path=/head/; revision=367443
|