summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-08-21offset rx buffers by ETHER_ALIGN so ip payloads are properly aligned.David Gwynne
2024-08-21use 2k clusters on the rx ring instead of 9k clusters.David Gwynne
rge can chain mbufs from multiple rx descriptors together to build a jumbo packet. 1514 byte packets are still the most common, so avoiding the waste of most of a 9k cluster if we can still makes sense.
2024-08-21support building a single packet out of multiple rx descriptors.David Gwynne
rge is a bit like intel nics where you can put small mbufs on the rx ring and it will chain them together to make a jumbo packet. except unlike intel you can use any sized mbufs for the rx descriptors. this adds the handling of these packets to the rx path. we're still putting 9k frames on the ring though.
2024-08-21be more careful about bus_dmamap_syncs for rx ring descriptors.David Gwynne
this is very similar to the changes made for tx where we fill in everything except the OWN flag on the rx descriptor, call bus_dmamap_sync as a barrier for the hw, and then flip the ownership of the OWN bit. this avoids the potential for the hw to see the own bit before other things in the descriptor, such as the address and length of the buffer. while here, trim code that's not currently used. we don't currently support rxing one packet by assembling buffers from multiple descriptors, so stop fiddling with the queue mbuf head and tail pointers. delete rge_discard_rxbuf() cos it looks like a leftover from code which tries to reuse mbufs on the rx ring. we free mbufs when there's an error and let the rxr stuff refill. ok patrick@ no objections from kevlo@
2024-08-20Now that we have dup2(), csh can use it instead of close()+dup().Philip Guenther
Also, as used here, dup/dup2 will clear the close-on-exec flag, so delete the superfluous fcntl(F_SETFD,0) calls ok deraadt@
2024-08-20Update handling of transfer rings.Patrick Wildt
2024-08-20Introduce and update HAL SRNG ops.Patrick Wildt
1995-10-18initial import of NetBSD treeTheo de Raadt
2024-08-20match the config_activate_children() sequences found in other usb hostTheo de Raadt
controller drivers.
2024-08-20having a file called "OWNER" lying around in a directory ofTheo de Raadt
(effectively) public dommain software is weird. put that info into a better place.
2024-08-20annotate signal raceTheo de Raadt
2024-08-20Fix whitespace in amd64 bus dma.Alexander Bluhm
2024-08-20Use msgbuf_queuelen() instead of accessing the queued member directly.Claudio Jeker
OK tb@
2024-08-20Unlock KERN_MAXFILES.Vitaliy Makkoveev
`maxfiles' is atomically accessed integer which is lockless and read-only accessed in file descriptors layer. lim_startup() called during kernel bootstrap, no need to atomic_load_int() within. ok mpi
2024-08-20Update Geofeed referenceJob Snijders
RFC 9632 introduced additional constraints and requirements for RPKI-based Geofeed authenticators (at my request).
2024-08-20Send only as much data as needed to trigger rekeying.Darren Tucker
Speeds up tests by about 10% in the common case, hopefully more when instrumented with something like valgrind.
2024-08-20fix bus_dmamap_destroyStefan Fritsch
With bounce buffers, we must pass a larger size to free() ok bluhm@ hshoexer@
2024-08-20regenJonathan Gray
2024-08-20add Samsung PM9C1 and PM9C1aJonathan Gray
from bmercer@ and Bryan Vyhmeister
2024-08-20Use stats.msg_queue_len instead of looking into the msgbuf struct.Claudio Jeker
OK tb@
2024-08-20Use msgbuf_queuelen() instead of accessing wbuf.queue for msgbuf structs.Claudio Jeker
Also export the msgbuf queue len as a stats member so bgpctl does not need to dig into the msgbuf structure inside struct peer. This skips imsg related msgbuf since that will be handled by a imsgbuf specific function. OK tb@
2024-08-20Calculate used bounce buffers in amd64 bus dma correctly.Alexander Bluhm
There was an off-by-one bug when comparing the used pages for bounce buffers with the available pages. As a result _bus_dmamap_load_buffer() returned ENOMEM although there was one buffer left. Also the _dm_nused field was updated and never reset in case of an error. Use a local variable to count the used pages and update global map->_dm_nused only if _bus_dmamap_load_buffer() was successful. This fixes hanging network transmits if bounce buffers are enforced for vio(4). OK sf@ hshoexer@
2024-08-20actually use the length parameter that was passed in rather than aDamien Miller
constant (this makes no difference in practice because the length is always the same); reported by martin AT nmkd.net
2024-08-20Merge AEAD test into main test loop. Removes 3 duplicate tests andDarren Tucker
speeds overall test up by about 1%.
1995-10-18initial import of NetBSD treeTheo de Raadt
2024-08-20Set a default RekeyLimit of 256k. Used unless overridden by aDarren Tucker
command-line flag, which simplifies some of the ssh command lines.
2024-08-20Add Compression=no to default ssh_config. All of the rekey tests use itDarren Tucker
(otherwise the encrypted byte counts would not match) so this lets us simplify the command lines.
2024-08-20Unlock KERN_MAXPROC and KERN_MAXTHREAD from `kern_vars'. BothVitaliy Makkoveev
`maxprocess' and `maxthread' are atomically accessed integers. ok mpi
2024-08-20Unlock etherip_sysctl().Vitaliy Makkoveev
- ETHERIPCTL_ALLOW - atomically accessed integer; - ETHERIPCTL_STATS - per-CPU counters ok bluhm
2024-08-20Unlock igmp_sysctl(), pfsync_sysctl() and rip6_sysctl(). Each of them isVitaliy Makkoveev
the only IGMPCTL_STATS, PFSYNCCTL_STATS and RIPV6CTL_STATS per-CPU counters. sysctl_rdstruct() has "newp != NULL" check within and also returns EPERM, no need for redundant check in igmp_sysctl(). ok bluhm
2024-08-20Unlock sysctl_audio().Vitaliy Makkoveev
It is the only KERN_AUDIO_RECORD. `audio_record_enable' is atomically accessed integer. Reasonable from deraadt
2024-08-20Remove duplicate curve25519-sha256 kex. curve25519-sha256@libssh.orgDarren Tucker
is the pre-standardization name for the same thing, so remove it as a duplicate. Speeds up test by a tiny amount.
2024-08-20Unnest rekey param parsing test and use ssh not sshd. ssh uses the sameDarren Tucker
parsing code, now has "-G" to dump its config and is slightly faster to start up. This speeds up the test slightly (~5%) in the common case but should help more during instrumented tests, eg under valgrind, where startup costs are magnified.
2024-08-20virtio_mmio: Return early if no deviceStefan Fritsch
If there is no device, don't write to any registers. ok jan@
2024-08-20another FXE -> FXeJonathan Gray
ok miod@
2024-08-20add (), | has higher precedence than ?:Jonathan Gray
ok mglocker@
2024-08-20nasty whitespaceTheo de Raadt
2024-08-20place shielded keys (i.e. keys at rest in RAM) into memory allocatedDamien Miller
using mmap(3) with MAP_CONCEAL set. This prevents exposure of the key material in coredumps, etc (this is in addition to other measures we take in this area). ok deraadt@
1995-10-18initial import of NetBSD treeTheo de Raadt
2024-08-20rework rge tx start and completion to better bus_dmamap_sync tx descriptorsDavid Gwynne
ok patrick@ thanks to kettenis@ for reminding me how computers work again.
2024-08-19Fix CVE-2024-43688, buffer underflow for very large step valuesTodd C. Miller
In get_number(), reject values that are so large that they are interpreted as negative numbers. In set_range(), step values smaller than one or larger than the "stop" value are ignored. This prevents bit_nset() from being called with out-of-range values. Bug found by Dave G. of Supernetworks.
2024-08-19whitespacesTheo de Raadt
2024-08-19now that suspend operations are done as quiesce, we can try to useTheo de Raadt
the MXT_T7_POWER_MODE_DEEP_SLEEP operation.
2024-08-19correctly indent a lineJonathan Gray
2024-08-19Prepare for releasing version 9.2Job Snijders
2024-08-19correct vm_fault_gtt() merge error in rev 1.19Jonathan Gray
fixes panic when starting X on x40 (855GM gen 2) problem with 945GM (gen 3) and G41 (gen 4) reported by semarie@
2024-08-19Use M_WAITOK where we can; this includes during autoconf where the onlyMark Kettenis
realistic option is to panic if we're doing smallish allocations and run out of memory. ok deraadt@
1995-10-18initial import of NetBSD treeTheo de Raadt
2024-08-19Allow REP to work with Unicode characters, GitHub issue 3687.Nicholas Marriott
2024-08-19Both terminators \007 and \033\\ leave the index pointing to the finalNicholas Marriott
character of the terminator, so correct the size calculation to always add one. GitHub issue 4082.