CVS: cvs.openbsd.org: src

2022-03-19 Thread Jonathan Matthew
CVSROOT:/cvs
Module name:src
Changes by: jmatt...@cvs.openbsd.org2022/03/19 18:01:34

Modified files:
sys/dev/pci: if_aq_pci.c 

Log message:
Enable interrupt moderation, targeting around 20k interrupts per second.
There are separate timers for rx and tx interrupts, so we can use longer
timeouts for tx since that doesn't affect packet processing latency.

ok dlg@



CVS: cvs.openbsd.org: src

2022-03-19 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/03/19 12:19:24

Removed files:
lib/libssl/test: asn1test.c methtest.c r160test.c 

Log message:
Remove three useless tests files

The asn1test depends on asn1_mac.h which had a date with the bitbucket a
few years back (and the test "isn't meant to run particularly, it's just
to test type checking"). methtest.c tests an API that was never present
in OpenSSL's git history. r160test.c is nothing but a licence.

"nuke away" jsing



CVS: cvs.openbsd.org: src

2022-03-19 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2022/03/19 11:49:32

Modified files:
lib/libcrypto/asn1: a_object.c asn1_locl.h 
lib/libcrypto/objects: obj_dat.c 

Log message:
Provide t2i_ASN1_OBJECT_internal() and use it for OBJ_txt2obj()

The current OBJ_txt2obj() implementation converts the text to ASN.1
object content octets, builds a full DER encoding from it, then feeds
the entire thing back through the DER to ASN.1 object conversion. Rather
than doing this crazy dance, provide an t2i_ASN1_OBJECT_internal() function
that converts the text to ASN.1 object content octets, then creates a new
ASN1_OBJECT and attaches the content octets to it.

ok inoguchi@ tb@



CVS: cvs.openbsd.org: src

2022-03-19 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2022/03/19 11:37:10

Modified files:
regress/lib/libcrypto/asn1: asn1object.c 

Log message:
Revise regress for ascii/text to ASN.1 object conversion rewrite.



CVS: cvs.openbsd.org: src

2022-03-19 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2022/03/19 11:35:52

Modified files:
lib/libcrypto/asn1: a_object.c 

Log message:
Rewrite ascii/text to ASN.1 object conversion.

Rewrite the ascii/text to ASN.1 object conversion code using CBB/CBS,
while also addressing some of the bizarre behaviour (such as allowing
mixed separators and treating '..' as a zero value).

ok inoguchi@ tb@



CVS: cvs.openbsd.org: src

2022-03-19 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/03/19 11:12:31

Modified files:
share/man/man4 : iwm.4 

Log message:
remove unused Pp;



CVS: cvs.openbsd.org: src

2022-03-19 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2022/03/19 10:23:17

Modified files:
regress/lib/libcrypto/asn1: asn1object.c 

Log message:
Add another invalid separator test case.



CVS: cvs.openbsd.org: src

2022-03-19 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2022/03/19 09:21:13

Modified files:
sys/net80211   : ieee80211_node.c 

Log message:
Fix wrongly implemented check for 5GHz access point RSSI threshold.

This check was wrong for drivers which report RSSI as a percentage,
such as iwm(4) and iwx(4). Such drivers will now prefer 5GHz with
50% or greater RSSI, as was intended.

ok phessler@



CVS: cvs.openbsd.org: src

2022-03-19 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2022/03/19 09:20:32

Modified files:
sys/net80211   : ieee80211_node.c 

Log message:
Give 11n and 11ac networks a higher score during SSID selection.

ok phessler@



CVS: cvs.openbsd.org: src

2022-03-19 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2022/03/19 09:19:51

Modified files:
sys/dev/pci: if_iwm.c 

Log message:
Fix wrong logic in a check in iwm_vht_single_rate_control() to match
what was intended.

ok phessler@



CVS: cvs.openbsd.org: www

2022-03-19 Thread T . J . Townsend
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2022/03/19 09:15:05

Modified files:
.  : arm64.html 

Log message:
fix previous



CVS: cvs.openbsd.org: src

2022-03-19 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2022/03/19 08:50:01

Modified files:
sys/dev/pci: if_iwm.c if_iwmvar.h if_iwx.c if_iwxvar.h 

Log message:
Fix attach of multiple iwm(4) or iwx(4) interfaces in the same machine.

ok kettenis@, jca@



CVS: cvs.openbsd.org: src

2022-03-19 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2022/03/19 04:43:01

Modified files:
share/man/man4 : iwm.4 

Log message:
Remove the paragraph about 802.11ac from CAVEATS in the iwm(4) man page.



CVS: cvs.openbsd.org: src

2022-03-19 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2022/03/19 04:28:44

Modified files:
sys/net80211   : ieee80211_ra.c ieee80211_ra_vht.c 

Log message:
Do not define RA_DEBUG; pointed out by miod@



CVS: cvs.openbsd.org: src

2022-03-19 Thread Stuart Henderson
CVSROOT:/cvs
Module name:src
Changes by: st...@cvs.openbsd.org   2022/03/19 04:28:38

Modified files:
usr.bin/su : su.c 

Log message:
backout r1.86 "login class routing table should be honored when doing
a full login with su -l", it breaks rc.d(8) daemon_rtable



CVS: cvs.openbsd.org: src

2022-03-19 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2022/03/19 04:26:52

Modified files:
sys/dev/pci: if_iwm.c if_iwmreg.h if_iwmvar.h 

Log message:
Add initial 802.11ac support to the iwm(4) driver.

VHT MCS and 80MHz channels can now be used.
Other 11ac features such as larger aggregates are left for later work.

Tested:
3160: stsp
7260: florian, jmatthew
7265: rfreeman, mlarkin, landry, Peter J. Philip
8260: bket
8265: jturner, Marcus MERIGHI, stsp
9260: florian, matthieu, stsp
9650: kmos, sthen

ok sthen@



CVS: cvs.openbsd.org: src

2022-03-19 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2022/03/19 04:25:09

Modified files:
sys/conf   : files 
sys/net80211   : ieee80211.c ieee80211_node.h 
Added files:
sys/net80211   : ieee80211_ra_vht.c ieee80211_ra_vht.h 

Log message:
Add 11ac/VHT Tx rate adaptation support to net80211.

Based on our existing RA module for 11n.
The main difference is in dealing with 11ac-specific ratesets.
Tx rate selection heuristics remain identical.

Only supports 80MHz channels, for now. 160MHz is left for future work.

ok sthen@



CVS: cvs.openbsd.org: www

2022-03-19 Thread Mark Kettenis
CVSROOT:/cvs
Module name:www
Changes by: kette...@cvs.openbsd.org2022/03/19 03:44:07

Modified files:
.  : arm64.html 

Log message:
Point to the Asahi Linux installer.



CVS: cvs.openbsd.org: src

2022-03-19 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2022/03/19 01:01:00

Modified files:
regress/usr.sbin/pkg_add: Makefile 

Log message:
mark injection fault test as okay to fail, since this case no longer
creates temp files with the current optimization.