| #
6fb93e47 |
| 15-Dec-2024 |
dlg <dlg@openbsd.org> |
add an AF_FRAME socket domain and an IFT_ETHER protocol family under it.
this allows userland to use sockets to send and receive Ethernet frames. as per the upcoming frame.4 man page:
frame pr
add an AF_FRAME socket domain and an IFT_ETHER protocol family under it.
this allows userland to use sockets to send and receive Ethernet frames. as per the upcoming frame.4 man page:
frame protocol family sockets are designed as an alternative to bpf(4) for handling low data and packet rate communication protocols. Rather than filtering every frame entering the system before the network stack like bpf(4), the frame protocol family processing avoids this overhead by running after the built in protocol handlers in the kernel. For this reason, it is not possible to handle IPv4 or IPv6 packets with frame protocol sockets because the kernel network stack consumes them before the receive handling for frame sockets is run.
if you've used udp sockets then these should feel much the same.
my main motivation is to implement an lldp agent in userland, but without having to have bpf look at every packet when lldp happens every minute or two.
the only feedback i had was positive, so i'm putting it in ok claudio@
show more ...
|
| #
51d8761d |
| 31-Oct-2024 |
claudio <claudio@openbsd.org> |
Stop abusing ufs inodes and with it the ufs_ihash. Instead extend fusefs_node with the few required fields. Tested by kirill@ with input from miod@ OK beck@
|
| #
ceaa8a7a |
| 14-Sep-2024 |
jsg <jsg@openbsd.org> |
vxlan.h not needed
|
| #
f4336680 |
| 14-Sep-2024 |
jsg <jsg@openbsd.org> |
ccp.h no longer required
|
| #
d2b6e45e |
| 09-Sep-2024 |
jsg <jsg@openbsd.org> |
move some server only functions from nfs_subs.c to nfs_srvsubs.c saves space on ramdisks that have option NFSCLIENT
initial diff from and ok miod@
|
| #
8eadc5ec |
| 04-Sep-2024 |
jsg <jsg@openbsd.org> |
make psp attach to ccp as a different driver 'fine with me' hshoexer, ok bluhm@
|
| #
45a062b0 |
| 31-Aug-2024 |
dlg <dlg@openbsd.org> |
add rport(4) for p2p l3 connectivity between route domains.
you can basically plug rdomains together and route between them over rport interfaces. people keep asking me if this is so you can leak ro
add rport(4) for p2p l3 connectivity between route domains.
you can basically plug rdomains together and route between them over rport interfaces. people keep asking me if this is so you can leak routes between rdomains, and the answer is yes.
this is like pair(4) but cheaper because it avoids all the mucking around with putting an ethernet header on the mbuf just to take it off again later, and is more efficient with address space because it's a p2p ip interface.
it has a small tweak from mvs@ ok denis@ claudio@
show more ...
|
| #
4bba8532 |
| 14-Aug-2024 |
patrick <patrick@openbsd.org> |
Introduce qwz(4), a work-in-progress port of the Linux ath12k driver.
This driver is not working yet, it's a copy of qwx(4) which bit-by-bit will be adjusted to work on the newer generation of chips
Introduce qwz(4), a work-in-progress port of the Linux ath12k driver.
This driver is not working yet, it's a copy of qwx(4) which bit-by-bit will be adjusted to work on the newer generation of chips. Even though this is only a minor bump over the previous generation, the changes are large enough that bringup, debugging and long-term maintenance would suffer trying to squash them into a single driver. This can be reconsidered once we have reached a stable state.
show more ...
|
| #
4fbed6ad |
| 13-Jul-2024 |
bluhm <bluhm@openbsd.org> |
Add condition to ip_gre.c in files.
Use gre condition in conf/files for compiling netinet/ip_gre.c only if needed. Remove #if NGRE > 0 from ip_gre.c that caused ramdisk build to compile an empty C
Add condition to ip_gre.c in files.
Use gre condition in conf/files for compiling netinet/ip_gre.c only if needed. Remove #if NGRE > 0 from ip_gre.c that caused ramdisk build to compile an empty C file.
OK kn@ deraadt@; input jsg@
show more ...
|
| #
8cb10e2e |
| 12-Jun-2024 |
bluhm <bluhm@openbsd.org> |
Add support for the AMD Platform Security Processor (PSP) to ccp(4).
Several commands for basic platform initialization and launch of SEV/SEV-ES enabled guests are implemented. These can be used by
Add support for the AMD Platform Security Processor (PSP) to ccp(4).
Several commands for basic platform initialization and launch of SEV/SEV-ES enabled guests are implemented. These can be used by e.g. vmd(8) later.
from hshoexer@; OK mlarkin@
show more ...
|
| #
bc451eb3 |
| 29-May-2024 |
mglocker <mglocker@openbsd.org> |
Set 'needs-flag' for ufshci(4) as preparation for some future hibernate code. Remove obsolete comment while here as pointed out by kettenis@.
ok kettenis@
|
| #
d0d6438e |
| 10-Apr-2024 |
naddy <naddy@openbsd.org> |
remove unused hton[ls] functions from libkern
These have been superseded by inlines from endian.h.
ok miod@ mpi@
|
| #
81fb472f |
| 03-Feb-2024 |
beck <beck@openbsd.org> |
Remove Softdep.
Softdep has been a no-op for some time now, this removes it to get it out of the way.
Flensing mostly done in Talinn, with some help from krw@
ok deraadt@
|
| #
7d022182 |
| 01-Jan-2024 |
kettenis <kettenis@openbsd.org> |
Move fdt attachment into sys/conf/files.conf instead of duplicating it on an MD basis.
ok patrick@
|
| #
c2498839 |
| 28-Dec-2023 |
stsp <stsp@openbsd.org> |
Introduce qwx(4), a work-in-progress port of the Linux ath11k driver.
This driver is not working yet. Scanning almost works but a lot more work remains to be done. So far most of the porting work wa
Introduce qwx(4), a work-in-progress port of the Linux ath11k driver.
This driver is not working yet. Scanning almost works but a lot more work remains to be done. So far most of the porting work was done by myself, with some help from mpi, patrick, and kettenis.
Obviously this driver remains disabled for now. Enable relevant lines in the kernel config if you want to help out with development.
At present firmware files must be obtained manually and placed in the directory /etc/firmware/qwx/WCN6855/hw2.1/ This will be improved later.
Thanks to the OpenBSD Foundation for supporting this effort.
show more ...
|
| #
e86eac0a |
| 21-Dec-2023 |
jsg <jsg@openbsd.org> |
add strnstr(9) string search within character limit
From Mike Barcroft in FreeBSD. Added to FreeBSD in 2001, Linux in 2010. Used in amdgpu.
ok deraadt@
|
| #
98b1b78a |
| 21-Nov-2023 |
bluhm <bluhm@openbsd.org> |
Fix kernel build without option PTRACE, but with dt(4).
Since revision 1.26 dt_ioctl_get_auxbase() is calling process_domem(). Build the latter function into kernel if pseudo device dt is enabled.
Fix kernel build without option PTRACE, but with dt(4).
Since revision 1.26 dt_ioctl_get_auxbase() is calling process_domem(). Build the latter function into kernel if pseudo device dt is enabled.
from Matthias Pitzl; OK claudio@
show more ...
|
| #
405b3c7e |
| 07-Aug-2023 |
dlg <dlg@openbsd.org> |
wire sec(4) into the kernel config.
this makes #include "sec.h" and #if NSEC > 0 work in kernel code.
|
| #
a72a7a26 |
| 23-Apr-2023 |
dlg <dlg@openbsd.org> |
add iosf(4), a driver for the Intel OnChip System Fabric
The OnChip System Fabric is mostly an implementation detail on a bunch of Intel SoC platforms we usually don't care about, except on some of
add iosf(4), a driver for the Intel OnChip System Fabric
The OnChip System Fabric is mostly an implementation detail on a bunch of Intel SoC platforms we usually don't care about, except on some of these machines there are devices shared between the kernel and the platform that need to coordinate. The iosf(4) driver allows the kernel to talk via a mailbox interface to take and release a semaphore that the hardware also uses to lock around accesses to some components.
There are two ways to talk to the mailbox interface, one via mmio ops on an INT33BD acpi device. The other is via magic pci conf space operations on the pci host device. This provides a generic iosf driver with attachment glue for both acpi and pci so either can be used. According to linux, the pci ops are a lot more reliable and less buggy, so if both acpi and pci are available we will prefer the pci ops after they attach.
I found this because I got a Dell Wyse 3040, which is a cherry trail/braswell system that has an acpitz(4) which talks to a tipmic(4) device attached to dwiic(4) on acpi. This box almost always locked up by the time it got to showing the console login prompt, and it turns out one of the reasons for this is because acpitz was touching the tipmic device at the same time the powerunit on the platform was also trying to use it. The tipmic device lists the iosf mailbox as a dependency, and the dwiic controller has a _SEM property, both of which indicate we should use an iosf device to coordinate iic ops when talking to the tipmic.
This adds the code, but doesn't wire it into dwiic or the build yet.
help from patrick@ jsg@ kettenis@ ok kettenis@ patrick@
show more ...
|
| #
5a9451d3 |
| 04-Apr-2023 |
jsg <jsg@openbsd.org> |
Synopsis Designware -> Synopsys DesignWare
|
| #
305ac5f9 |
| 13-Feb-2023 |
patrick <patrick@openbsd.org> |
Add dwqe(4), a driver for the Synopsis DesignWare Ethernet QoS controller used on the NXP i.MX8MP, the Rockchip RK35xx series and Intel Elkhart Lake.
For now it is committed with FDT-attachment only
Add dwqe(4), a driver for the Synopsis DesignWare Ethernet QoS controller used on the NXP i.MX8MP, the Rockchip RK35xx series and Intel Elkhart Lake.
For now it is committed with FDT-attachment only and still in rough shape, but it's time for development to occur in-tree.
Discussed with bluhm@ ok kettenis@
show more ...
|
| #
2095c737 |
| 04-Feb-2023 |
mglocker <mglocker@openbsd.org> |
Initial driver for Universal Flash Storage (UFS) Host Controllers.
ok kettenis@
|
| #
ad6271c5 |
| 22-Dec-2022 |
dlg <dlg@openbsd.org> |
use stoeplitz to generate a hash/flowid for state keys.
the hash will be used to partition work in pf and pfsync in the future, and right now it is used as the first comparison in the rb tree state
use stoeplitz to generate a hash/flowid for state keys.
the hash will be used to partition work in pf and pfsync in the future, and right now it is used as the first comparison in the rb tree state lookup.
using stoeplitz means that pf will hash traffic the same way that hardware using a stoeplitz key will hash incoming traffic on rings. stoeplitz is also used by the tcp stack to generate a flow id, which is used to pick which transmit ring is used on nics with multiple queues too. using the same algorithm throughout the stack encourages affinity of packets to rings and softnet threads the whole way through.
using the hash as the first comparison in the state rb tree comparison should encourage faster traversal of the state tree by having all the address/port bits summarised into the single hash value. however, tests by hrvoje popovski don't show performance changing. on the plus side, if this change is free from a performance point of view then it makes the future steps more straightforward.
discussed at length at h2k22 tested by sashan@ and hrvoje popovski ok tb@ sashan@ claudio@ jmatthew@
show more ...
|
| #
04270302 |
| 06-Nov-2022 |
patrick <patrick@openbsd.org> |
Add FDT-based attachment for qciic(4).
ok kettenis@
|
| #
e9f70261 |
| 06-Nov-2022 |
patrick <patrick@openbsd.org> |
Add FDT-based attachment for qcgpio(4).
ok kettenis@
|