CVS: cvs.openbsd.org: src

2024-05-28 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/05/28 06:11:26

Modified files:
sys/dev/pv : if_vio.c 

Log message:
vio(4): fix jumbo frames

vio_rx_offload() was called too early.  So, the consistency checks
of ether_extact() cause wrong packet detection and wrong checkums.

also tested by bluhm

ok bluhm@



CVS: cvs.openbsd.org: src

2024-05-21 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/05/21 13:49:06

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

Log message:
Refactor vmx(4) receive offloading.

- avoid combination of M_TCP_CSUM_IN_OK and M_UDP_CSUM_IN_OK
- remove useless letoh32() calls
- simplify the IPv4 checksum flag check

ok bluhm@



CVS: cvs.openbsd.org: src

2024-05-08 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/05/08 11:52:11

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

Log message:
ixl(4): force mss of tso packets in hardware supported range.

ok bluhm@



CVS: cvs.openbsd.org: src

2024-05-07 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/05/07 12:35:23

Modified files:
sys/dev/pci: if_bnxt.c if_em.c if_igc.c if_ix.c if_ixl.c 
 if_vmx.c 
sys/dev/pv : if_vio.c 

Log message:
Additional check for TSO packets with 0 MSS.

Tested by bluhm

ok bluhm@



CVS: cvs.openbsd.org: src

2024-05-01 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/05/01 04:43:42

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

Log message:
Refactor receive offloading code in ix(4)

- reduce complexcity
- avoid combination of TCP and UDP IN_OK mbuf annotaions

with tweaks from bluhm
tested by bluhm

ok bluhm@



CVS: cvs.openbsd.org: src

2024-04-12 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/12 13:27:43

Modified files:
sys/dev/pci: if_bnxt.c if_igc.c if_ixl.c if_ngbe.c ixgbe.h 

Log message:
remove useless includes of ip.h and ip6.h

ok bluhm



CVS: cvs.openbsd.org: src

2024-04-10 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/10 13:55:50

Modified files:
sys/dev/pv : if_vio.c 

Log message:
Implement TCP Segmentation Offload for vio(4)

Tested by Brian Conway and bluhm
With tweaks from bluhm

ok bluhm



CVS: cvs.openbsd.org: src

2024-04-02 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/02 14:59:48

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

Log message:
Implement and enable TSO in vmx(4)

Tested with IPv4/IPv6 and vlan(4).

ok jmatthew@



CVS: cvs.openbsd.org: www

2024-03-30 Thread Jan Klemkow
CVSROOT:/cvs
Module name:www
Changes by: j...@cvs.openbsd.org2024/03/30 13:38:42

Modified files:
.  : 75.html 

Log message:
75.html: network hardware improvement

* simplify sentences
* correct TSO spelling
* rm ..., i guess this section is finished
* rm useless 



CVS: cvs.openbsd.org: www

2024-03-25 Thread Jan Klemkow
CVSROOT:/cvs
Module name:www
Changes by: j...@cvs.openbsd.org2024/03/25 16:55:11

Modified files:
.  : 75.html 

Log message:
Add network hardware improvements.



CVS: cvs.openbsd.org: www

2024-03-25 Thread Jan Klemkow
CVSROOT:/cvs
Module name:www
Changes by: j...@cvs.openbsd.org2024/03/25 13:50:08

Modified files:
.  : plus.html 

Log message:
typo



CVS: cvs.openbsd.org: src

2024-03-22 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/03/22 15:49:52

Modified files:
regress/sbin/disklabel: 12000.ok 18000.ok 2.ok 30.ok 
4.ok 9.ok 90.ok 
sbin/disklabel : disklabel.8 editor.c 

Log message:
Increase /usr/src partition to 2GB - 5GB

ok miod@, deraadt@, otto@ and bluhm@



CVS: cvs.openbsd.org: src

2024-03-07 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/03/07 10:09:02

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

Log message:
Disable LRO in ix(4) on sparc64 by default

As discussed on icb, we disables this here for a stable ix(4) in the 7.5
release to avoid buggy behavior.

ok claudio@, deraadt@



CVS: cvs.openbsd.org: src

2024-02-29 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/02/29 15:09:33

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

Log message:
Add missing include of vlan.h in vmx(4).

ok bluhm@



CVS: cvs.openbsd.org: src

2024-02-15 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/02/15 06:24:45

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

Log message:
vmx(4): Add TCP/UDP Checksum Offloading for IPv4/6

ok jmatthew@, bluhm@



CVS: cvs.openbsd.org: src

2024-02-09 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/02/09 08:22:41

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

Log message:
vmx(4): add missing NVLAN checks

ok bluhm@



CVS: cvs.openbsd.org: src

2024-01-26 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/01/26 14:14:08

Modified files:
sys/net: bpf.c bpf.h 
sbin/dhcpleased: dhcpleased.h engine.c frontend.c 

Log message:
Put checksum flags in bpf_hdr to use them in userland dhcpleased.

Thus, dhcpleased accept non-calculated checksums which were verified by
hardware/hypervisor.

With tweaks from dlg@

ok bluhm@
mkay tobhe@



CVS: cvs.openbsd.org: src

2024-01-15 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/01/15 14:37:58

Modified files:
sbin/iked  : ikev2.c 

Log message:
Add debug message for no policy found.

In this case iked would just silently drop incomming connections.
Thus, the user has a chance to figure out whats going on.

ok tobhe@



CVS: cvs.openbsd.org: src

2024-01-11 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/01/11 10:22:04

Modified files:
sbin/ifconfig  : ifconfig.8 

Log message:
ifconfig.8: reorder hwfeature list

ok jmc@



CVS: cvs.openbsd.org: src

2024-01-11 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/01/11 10:13:48

Modified files:
sys/arch/amd64/amd64: vmm_machdep.c 
sys/dev/vmm: vmm.h 

Log message:
fix build with VMM_DEBUG option

ok dv@



CVS: cvs.openbsd.org: src

2023-12-20 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/12/20 02:51:06

Modified files:
sys/dev/pv : if_vio.c 

Log message:
vio(4): checksum offloading for TCP/UDP in IPv6 Packets

ok sf@



CVS: cvs.openbsd.org: src

2023-12-11 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/12/11 02:40:42

Modified files:
sys/dev/pv : if_vio.c 

Log message:
vio(4): simplify mbuf parsing with ether_extract_headers()

ok sf@



CVS: cvs.openbsd.org: src

2023-12-09 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/12/09 03:36:05

Modified files:
sys/dev/pv : if_vio.c 

Log message:
vio(4) add recv TCP/UDP checksum offloading

tested on Linux/KVM
tested on proxmox and vultr by florian

ok florian



CVS: cvs.openbsd.org: src

2023-10-27 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/10/27 14:56:48

Modified files:
sys/net: if.c if_bpe.c if_gre.c if_vlan.c if_vxlan.c 

Log message:
Forward TCP LRO disabling to parent devices.

Also disable TCP LRO on bridged vlan(4) and default for bpe(4), nvgre(4) and
vxlan(4).

ok bluhm@



CVS: cvs.openbsd.org: src

2023-10-20 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/10/20 07:21:15

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

Log message:
Add missing tcps_outpkttso counter to ixl(4) TSO setup.

ok bluhm@



CVS: cvs.openbsd.org: src

2023-10-20 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/10/20 01:31:12

Modified files:
sys/dev/pci: if_ix.c if_ixl.c 

Log message:
Improve bad comment.

pointed out by kn@

ok kn@



CVS: cvs.openbsd.org: src

2023-10-19 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/10/19 10:28:03

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

Log message:
Enable TCP Segmentation Offloading for ixl(4)

Tested on amd64 and sparc64.
Also tested by bluhm@.

ok bluhm@



CVS: cvs.openbsd.org: src

2023-10-18 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/10/18 08:24:29

Modified files:
sys/arch/sparc64/dev: iommu.c 

Log message:
Avoid segments greater than maxsegsz during map merging

Found with hints from kettenis@

Tested on Sun-Fire-V215.
Also tested on U2 and UltraBook IIe by miod@

ok miod@



CVS: cvs.openbsd.org: src

2023-09-23 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/09/23 03:17:21

Modified files:
sys/kern   : uipc_syscalls.c 

Log message:
Fix unreliable sys_setsockopt() with consistent use of M_WAIT

Also remove useless NULL check.

ok bluhm@



CVS: cvs.openbsd.org: src

2023-08-04 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/08/04 04:58:27

Modified files:
sys/dev/pci: if_ix.h 

Log message:
Remove unused struct field vlan_stripping.

pointed out by bluhm

ok bluhm@



CVS: cvs.openbsd.org: src

2023-08-03 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/08/03 12:56:32

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

Log message:
Enable vlan stripping of LRO packets in ix(4)

tested by bluhm

ok bluhm@



CVS: cvs.openbsd.org: src

2023-07-27 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/27 14:21:25

Modified files:
sys/dev/pci: if_ix.c 
sys/net: if_ethersubr.c 
sys/netinet: if_ether.h 

Log message:
Fix inline vlan-tag handling of forwarded LRO packets from ix(4)

Implement vlan-tag parsing ether_extract_header() to use this information
to adjust the MSS calculation of LRO packets.

pointed out by mbuhl and bluhm

with tweaks from bluhm

ok bluhm@



CVS: cvs.openbsd.org: src

2023-07-19 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/19 14:22:05

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

Log message:
Protect ixl(4) admin queue with mutex(9).

with tweaks from bluhm

tested by bluhm

ok bluhm@



CVS: cvs.openbsd.org: src

2023-07-10 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/10 13:36:54

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

Log message:
ix(4): allocate less memory for tx buffers

TSO packets are limited to MAXMCLBYTES (64k).  Thus, we don't need to
allocate IXGBE_TSO_SIZE (256k) per packet for the transmit buffers.

tested by bluhm

ok bluhm@



CVS: cvs.openbsd.org: src

2023-07-04 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/04 07:37:47

Modified files:
sys/net: if.c 

Log message:
Check for interface type ethernet before call ether_brport_isset()

Pointed out by bluhm.

ok bluhm@



CVS: cvs.openbsd.org: src

2023-06-01 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/06/01 03:05:33

Modified files:
sys/dev/pci: if_ix.c 
sys/netinet6   : ip6_forward.c 

Log message:
Enable forwarding of ix(4) LRO Pakets via TSO

Also fix ip6_forwarding of TSO packets with tcp_if_output_tso().

With a lot of testing from Hrvoje Popovski
and a lot of tweaks from bluhm@

ok bluhm@



CVS: cvs.openbsd.org: src

2023-05-23 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/05/23 03:16:16

Modified files:
sys/dev/pci: if_ix.c 
sys/netinet: tcp_usrreq.c tcp_var.h 
usr.bin/netstat: inet.c 

Log message:
New counters for LRO packets from hardware TCP offloading.

With tweaks from patrick@ and bluhm@.

OK bluhm@



CVS: cvs.openbsd.org: src

2023-05-18 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/05/18 02:22:37

Modified files:
sys/dev/pci: if_ix.c ixgbe.h ixgbe_type.h 
sys/netinet: tcp_var.h 

Log message:
Use TSO offloading in ix(4).

With a lot of tweaks, improvements and testing from bluhm.

Thanks to Hrvoje Popovski from the University of Zagreb for
his great testing effort to make this happen.

ok bluhm



CVS: cvs.openbsd.org: src

2023-05-16 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/05/16 08:32:54

Modified files:
sbin/ifconfig  : ifconfig.8 ifconfig.c 
sys/dev/pci: if_ix.c 
sys/net: if.c if.h if_aggr.c if_bridge.c if_tpmr.c 
 if_veb.c if_vlan.c 
sys/netinet: ip_carp.c 

Log message:
Use separate IFCAPs for LRO and TSO.

This diff introduces separate capabilities for TCP offloading.  We split this
into LRO (large receive offloading) and TSO (TCP segmentation offloading).
LRO can be turned on/off via tcprecvoffload option of ifconfig and is not
inherited to sub interfaces.

TSO is inherited by sub interfaces to signal this hardware offloading capability
to the network stack.

With tweaks from bluhm, claudio and dlg

ok bluhm, claudio



CVS: cvs.openbsd.org: src

2023-05-12 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/05/12 12:24:13

Modified files:
sbin/ifconfig  : ifconfig.c 

Log message:
Add interface names in front of error messages.

Suggested by Hrvoje Popovski.

ok phessler@



CVS: cvs.openbsd.org: src

2023-04-25 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/25 18:14:21

Modified files:
sys/net: if.c if_vlan.c if_vlan_var.h 

Log message:
Also set TSO flag on vlan interfaces.

with tweaks from bluhm, claudio and dlg

I fine with it from claudio
looks good to me from dlg

ok bluhm



CVS: cvs.openbsd.org: src

2023-04-21 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/04/21 08:31:41

Modified files:
sys/net: if.c if_vlan.c if_vlan_var.h 

Log message:
vlan(4) inherits TSO flags

tested by Hrvoje Popovski

with tweaks from bluhm and claudio

encouraged from deraadt
ok bluhm



CVS: cvs.openbsd.org: src

2023-03-27 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/03/27 03:15:46

Modified files:
lib/libcrypto/err: err.c 

Log message:
Avoid errno is EINVAL after OpenSSL initialization

ok tb@



CVS: cvs.openbsd.org: src

2023-03-07 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/03/07 13:09:48

Modified files:
sbin/ifconfig  : ifconfig.8 
sys/net: if.c if.h 

Log message:
Avoid enabling TSO on interfaces which are already attached to a bridge.

with tweaks from claudio and deraadt

ok claudio, bluhm



CVS: cvs.openbsd.org: src

2023-02-27 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/02/27 02:35:32

Modified files:
sys/net: if.c if.h if_bridge.c if_tpmr.c if_veb.c 

Log message:
Turn off TSO if interface is added to layer 2 devices.

ok bluhm@, claudio@



CVS: cvs.openbsd.org: src

2023-02-06 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/02/06 13:27:45

Modified files:
sys/dev/pci: if_ix.c if_ixl.c 
sys/net: if_ethersubr.c 
sys/netinet: if_ether.h 

Log message:
consolidate mbuf header parsing on device driver layer

with tweaks from mvs@, mpi@, dlg@, naddy@ and bluhm@

"go for it" deraadt@

ok naddy@, mvs@



CVS: cvs.openbsd.org: src

2023-01-24 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/01/24 15:35:47

Modified files:
sys/dev/pci: if_ix.c if_ixl.c 
sys/net: if_ethersubr.c 
sys/netinet: if_ether.h 

Log message:
consolidate mbuf header parsing on device driver layer

with tweaks from mvs@, mpi@ and dlg@

ok mvs@, dlg@



CVS: cvs.openbsd.org: src

2022-11-05 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/11/05 16:33:11

Modified files:
sys/net: if_pfsync.c 
sys/netinet: ip_ipsp.c 

Log message:
Fix kernel build without IPSEC option.

ok deraadt@



CVS: cvs.openbsd.org: src

2022-09-02 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/09/02 08:08:09

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

Log message:
Fix TSO large receive offloading in ix(4).

Without this diff it might happen that content of different
TCP connection get mixed up, when reading coalesced buffers
from the receive ring.

Thanks, for a lot of testing effort to mbuhl.

OK mbuhl@



CVS: cvs.openbsd.org: src

2022-06-28 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/06/28 03:41:24

Modified files:
sys/net: if.c 

Log message:
ifconfig(8) return "Not supported" if you try to configure tso on a non-tso
supported interface.

pointed out by bluhm@

OK bluhm@



CVS: cvs.openbsd.org: src

2022-06-27 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/06/27 09:11:23

Modified files:
sbin/ifconfig  : ifconfig.8 ifconfig.c 
sys/dev/pci: if_ix.c if_ix.h 
sys/net: if.c if.h 

Log message:
Introduce Large Receive Offloading of TCP segment offloading for ix(4).  It is
disabled by default.  Also add a tso option to ifconfig(8) to enable and
disable this feature.

ok deraadt



CVS: cvs.openbsd.org: src

2022-06-27 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/06/27 07:14:49

Modified files:
sys/dev/usb: ucom.c 

Log message:
Remember the error of ucomreadcb() for the next ucomread() call and returns an
EIO.  Thus the userland notices the error and closes the device.  We forget the
error on reopen and the device works again.

Ok mbuhl



CVS: cvs.openbsd.org: src

2022-03-15 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/03/15 05:22:10

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

Log message:
Enable IP header checksum offloading in ix(4).

ok jmatthew@



CVS: cvs.openbsd.org: src

2022-01-10 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/01/10 07:07:59

Modified files:
sys/net: if_vxlan.c 

Log message:
Use NULL instead of 0 for pointers.

OK bluhm@



CVS: cvs.openbsd.org: src

2021-11-21 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/11/21 16:44:55

Modified files:
lib/libc/sys   : kbind.2 kqueue.2 ktrace.2 nfssvc.2 poll.2 
 ptrace.2 read.2 recv.2 semctl.2 shmctl.2 
 sigaltstack.2 stat.2 statfs.2 swapctl.2 write.2 

Log message:
improve legibility of structs in several manpages

General uses tabs for general indentation and 4 spaces
on tight spots.  Also uses extra space to align pointers
and non-pointers as we do this on certain places in our
source.

with improvements from schwarze@

OK schwarze@



CVS: cvs.openbsd.org: src

2021-11-09 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/11/09 02:26:18

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

Log message:
Add IPv4, TCP4/6 and UDP4/6 checksum offloading.

ok jmatthew@



CVS: cvs.openbsd.org: src

2021-11-05 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/11/05 04:18:50

Modified files:
usr.sbin/vmd   : fw_cfg.c 

Log message:
Fix bootorder string for disk

ok mlarkin@



CVS: cvs.openbsd.org: src

2021-11-04 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/11/04 11:50:05

Modified files:
usr.sbin/vmd   : fw_cfg.c 

Log message:
Fix broken "boot device cdrom" feature after a fix in seabios.

seabios fixes wrong LUN handling upstream.  Thus, we have to adapt the LUN
of our cdrom bootorder string, too.

ok brynet@, dv@



CVS: cvs.openbsd.org: src

2021-09-14 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/09/14 02:19:58

Modified files:
sys/arch/amd64/conf: GENERIC 

Log message:
Enable cy(4) on amd64.

ok deraadt



CVS: cvs.openbsd.org: src

2021-09-01 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/09/01 10:10:39

Modified files:
sys/arch/sparc64/dev: sab.c 
sys/dev/ic : cy.c 
sys/dev/sbus   : magma.c spif.c 

Log message:
Use ttopen in tty drivers open functions as ttysleep string, as the others do.

ok patrick@



CVS: cvs.openbsd.org: src

2021-09-01 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/09/01 03:29:31

Modified files:
sys/dev/fdt: exuart.c imxuart.c 
sys/dev/ic : pluart.c 

Log message:
Remove dead poweroff functions, as they not appear in other
serial drivers.

ok patrick@



CVS: cvs.openbsd.org: src

2021-08-31 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/08/31 06:24:15

Modified files:
sys/arch/riscv64/dev: sfuart.c 
sys/dev/fdt: amluart.c imxuart.c mvuart.c 
sys/dev/ic : pluart.c 

Log message:
Using suser() instead of doing it manually.

ok patrick@



CVS: cvs.openbsd.org: src

2021-08-09 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/08/09 12:13:09

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

Log message:
Remove useless code.  The driver_data is ignored by the host system.
Set the pointer to all 1s as linux do.

OK patrick@



CVS: cvs.openbsd.org: src

2021-05-31 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/05/31 10:18:01

Modified files:
libexec/ftpd   : ftpcmd.y monitor.c 

Log message:
Convert K function definitions to modern C.

OK naddy@, millert@



CVS: cvs.openbsd.org: src

2021-05-23 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/05/23 11:01:21

Modified files:
libexec/ftpd   : extern.h ftpcmd.y ftpd.c logwtmp.c 

Log message:
Constify function parameters.

OK martijn@



CVS: cvs.openbsd.org: src

2021-05-22 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/05/22 08:30:46

Modified files:
libexec/ftpd   : ftpd.c 

Log message:
Remove useless fflush(3) calls.  lreply() already called fflush(3).

OK martijn@



CVS: cvs.openbsd.org: src

2021-05-22 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/05/22 08:25:30

Modified files:
libexec/ftpd   : ftpcmd.y 

Log message:
Remove useless islower(2) before toupper(3).

OK martijn@



CVS: cvs.openbsd.org: src

2021-05-20 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/05/20 09:21:03

Modified files:
libexec/ftpd   : extern.h ftpcmd.y ftpd.c monitor.c 

Log message:
Removes the useless FILE* parameter of get_line().
While here fix minor whitespace mistake.

"looks fine to me" chris@



CVS: cvs.openbsd.org: src

2021-05-15 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/05/15 07:37:44

Modified files:
libexec/ftpd   : monitor.c 

Log message:
Add pledge for ftpd's user processes.

OK tobhe@



CVS: cvs.openbsd.org: src

2021-05-09 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/05/09 08:26:45

Modified files:
regress/libexec/ftpd: Makefile 

Log message:
Add subtest for EPRT command in ftpd regression test



CVS: cvs.openbsd.org: src

2021-05-09 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/05/09 08:05:42

Modified files:
regress/libexec/ftpd: Makefile 

Log message:
Add subtest for SIZE command in ftpd regression tests



CVS: cvs.openbsd.org: src

2021-05-09 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/05/09 07:16:33

Modified files:
regress/libexec/ftpd: Makefile 

Log message:
Add subtest for RNFR and RNTO in ftpd regression tests



CVS: cvs.openbsd.org: src

2021-03-26 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/03/26 02:17:23

Modified files:
sys/dev/pci: pcidevs_data.h 

Log message:
regen



CVS: cvs.openbsd.org: src

2021-03-26 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/03/26 02:02:34

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

Log message:
Add PCI ID for Intel X710 10G SFP+ NIC

ok patrick@



CVS: cvs.openbsd.org: src

2021-03-26 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/03/26 02:00:02

Modified files:
sys/dev/pci: pcidevs.h 

Log message:
regen



CVS: cvs.openbsd.org: src

2021-03-26 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/03/26 01:58:44

Modified files:
sys/dev/pci: pcidevs 

Log message:
Add missing PCI ID for Intel X710 SFP+ NIC

ok patrick@



CVS: cvs.openbsd.org: src

2021-03-13 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/03/13 18:10:35

Modified files:
sys/dev/pci: pcidevs.h pcidevs_data.h 

Log message:
regen



CVS: cvs.openbsd.org: src

2021-03-13 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/03/13 18:09:30

Modified files:
sys/dev/pci: pcidevs 

Log message:
Add ID for Intel SSD DC

ok jsg@



CVS: cvs.openbsd.org: src

2021-03-05 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/03/05 13:06:39

Modified files:
usr.sbin/pcidump: pcidump.c 

Log message:
Avoid print for NULL pointer

The subclass arrays have to be empty.

OK deraadt@



CVS: cvs.openbsd.org: src

2021-03-05 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/03/05 05:57:20

Modified files:
usr.sbin/pcidump: pcidump.c 

Log message:
add missing PCI classes

OK dlg@



CVS: cvs.openbsd.org: src

2021-02-26 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/02/26 04:41:02

Modified files:
sys/dev/pci: pcidevs.h pcidevs_data.h 

Log message:
touch pcidevs again to generated new rcs ids in headers

advince from sthen@



CVS: cvs.openbsd.org: src

2021-02-26 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/02/26 03:36:46

Modified files:
sys/dev/pci: if_ixl.c pcidevs pcidevs.h pcidevs_data.h 

Log message:
Add missing PCI product IDs for x710 10GBase-T into ixl(4)

OK phessler



Re: CVS: cvs.openbsd.org: src

2021-02-25 Thread Jan Klemkow
On Thu, Feb 25, 2021 at 12:30:36AM -0700, Jan Klemkow wrote:
> CVSROOT:  /cvs
> Module name:  src
> Changes by:   j...@cvs.openbsd.org2021/02/25 00:30:36
> 
> Modified files:
>   sys/dev/ic : nvme.c 
> 
> Log message:
> Prevent zero size devices from attaching
> 
> This also fixes two NULL ptr derefs in later code path.
> 
> OK patick@, krw@

OK dlg@



CVS: cvs.openbsd.org: src

2021-02-24 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/02/25 00:30:36

Modified files:
sys/dev/ic : nvme.c 

Log message:
Prevent zero size devices from attaching

This also fixes two NULL ptr derefs in later code path.

OK patick@, krw@



CVS: cvs.openbsd.org: src

2021-02-16 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/02/16 14:39:17

Modified files:
regress/usr.bin/openssl: Makefile 
Added files:
regress/usr.bin/openssl/x509: Makefile 
  create-libressl-test-certs.pl 

Log message:
Add x509 certificate validation regression tests

The validation tests are originaly createtd by Steffen Ullrich.

OK tb@
No objection jsing@



CVS: cvs.openbsd.org: src

2021-02-16 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/02/16 14:35:03

src/regress/usr.bin/openssl/x509

Update of /cvs/src/regress/usr.bin/openssl/x509
In directory cvs.openbsd.org:/tmp/cvs-serv57782/x509

Log Message:
Directory /cvs/src/regress/usr.bin/openssl/x509 added to the repository



CVS: cvs.openbsd.org: src

2021-02-08 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/02/08 12:37:15

Modified files:
sys/netinet: tcp.h tcp_output.c 

Log message:
Remove maxburst feature from tcp_output

OK bluhm@, claudio@, deraadt@



CVS: cvs.openbsd.org: src

2021-02-03 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/02/03 06:40:06

Modified files:
sys/netinet: tcp_input.c 

Log message:
Turns off the direct ACK on every other segment

The kernel uses a huge amount of processing time for sending ACKs to the sender
on the receiving interface.  After receiving a data segment, we send out two
ACKs.  The first one in tcp_input() direct after receiving.  The second ACK is
send out, after the userland or the sosplice task read some data out of the
socket buffer.  Thus, we save some processing time and improve network
performance.

Longer tested by sthen@
OK claudio@



CVS: cvs.openbsd.org: src

2021-01-01 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/01/01 03:21:26

Modified files:
sys/arch/luna88k/dev: siotty.c 
sys/arch/sh/dev: scif.c 
sys/dev/pci: cz.c 

Log message:
Remove useless redundant call of ttyopen().
Also remove dead DIALOUT macro.

ok mpi@



CVS: cvs.openbsd.org: src

2020-12-12 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/12/12 15:59:21

Modified files:
sys/net: pf_lb.c 

Log message:
Correct wrong type of variable and remove useless casts.

OK bluhm@



CVS: cvs.openbsd.org: src

2020-12-12 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/12/12 04:49:02

Modified files:
share/man/man9 : mbuf.9 
sys/arch/octeon/dev: if_cnmac.c if_ogx.c 
sys/arch/sparc64/dev: vnet.c 
sys/dev/fdt: if_dwge.c if_dwxe.c if_fec.c if_mvneta.c 
 if_mvpp.c 
sys/dev/ic : ar5008.c ar9003.c bcmgenet.c elink3.c gem.c 
 hme.c re.c rt2860.c ti.c xl.c 
sys/dev/pci: if_bge.c if_bnx.c if_bnxt.c if_bwfm_pci.c 
 if_em.c if_iavf.c if_iwm.c if_iwn.c if_iwx.c 
 if_ix.c if_ixl.c if_lge.c if_mcx.c if_msk.c 
 if_myx.c if_nfe.c if_nge.c if_oce.c if_rge.c 
 if_rtwn.c if_se.c if_sis.c if_sk.c if_vic.c 
 if_vmx.c if_vr.c if_wpi.c if_xge.c 
sys/dev/pv : if_hvn.c if_vio.c if_xnf.c 
sys/dev/usb: if_uath.c 
sys/kern   : uipc_mbuf.c uipc_mbuf2.c uipc_socket.c 
sys/net: bpf.c if_aggr.c if_gre.c if_pfsync.c 
 switchctl.c 
sys/sys: mbuf.h 

Log message:
Rename the macro MCLGETI to MCLGETL and removes the dead parameter ifp.

OK dlg@, bluhm@
No Opinion mpi@
Not against it claudio@



CVS: cvs.openbsd.org: src

2020-10-07 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/10/07 07:37:33

Modified files:
sys/arch/arm64/arm64: conf.c 
sys/arch/amd64/amd64: conf.c 

Log message:
Remove dead marko cdev_joy_init.

ok mpi@, kettenis@, patrick@



CVS: cvs.openbsd.org: src

2020-10-05 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/10/05 03:19:05

Modified files:
usr.sbin/ospfd : rde_lsdb.c 

Log message:
Remove redundant code and lets code looks similar
to the ospf6d counterpart.

OK remi@



CVS: cvs.openbsd.org: src

2020-10-03 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/10/03 07:39:56

Modified files:
usr.sbin/ospf6d: rde_lsdb.c 

Log message:
The new intra area db entry has to be saved into the tree before
orig_intra_area_prefix_lsas() is called.  If not, the ospf6d will not
announce the new intra area db for a newly learned link from another
ospf router of the broadcast domain.

OK denis@



CVS: cvs.openbsd.org: src

2020-09-06 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/09/06 10:12:23

Modified files:
usr.sbin/snmpd : mib.c 

Log message:
replace duplicated sizeofa marco with predefined nitems

OK martijn@



CVS: cvs.openbsd.org: src

2020-08-21 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/08/21 04:17:36

Modified files:
usr.sbin/ospf6d: rde_lsdb.c 

Log message:
Fix wrong fall through.  The IMSG_CTL_SHOW_DB_INTRA case should only
send back LSA with type LSA_TYPE_INTRA_A_PREFIX. LSA_TYPE_INTER_A_PREFIX
should not be included there.

OK claudio@



CVS: cvs.openbsd.org: src

2020-08-21 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/08/21 02:32:23

Modified files:
usr.sbin/ospf6d: rde_lsdb.c 

Log message:
Remove redundent code.

OK claudio@, looks fine from tb@



CVS: cvs.openbsd.org: src

2020-07-23 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/07/23 16:33:29

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

Log message:
Fix wrong and missleading information in cy(4).

- Correct error messages
- RxFifoThreshold is named RX_FIFO_THRESHOLD with value of 6
- LogOverruns does not exist, error logging is always on

ok bluhm@



CVS: cvs.openbsd.org: src

2020-05-23 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/05/23 00:15:09

Modified files:
sys/uvm: uvm_km.c 

Log message:
Prevent km_alloc() from returning garbage if pagelist is empty.

ok bluhm@, visa@



CVS: cvs.openbsd.org: src

2020-05-12 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2020/05/12 02:49:54

Modified files:
sys/dev/pci: if_em.c 
sys/net: if_var.h 
share/man/man9 : if_rxr_init.9 

Log message:
Set timeout(9) to refill the receive ring descriptors if the amount of
descriptors runs below the low watermark.

The em(4) firmware seems not to work properly with just a few descriptors in
the receive ring.  Thus, we use the low water mark as an indicator instead of
zero descriptors, which causes deadlocks.

ok kettenis@



  1   2   >