OpenBSD cvs log

created 2023-05-22T06:46:39Z
begin 2023-05-16T00:00:00Z
end 2023-05-17T00:00:00Z
path src/sys
commits 4

date 2023-05-16T14:32:54Z
author jan
files src/sys/dev/pci/if_ix.c log diff annotate
src/sys/net/if.c log diff annotate
src/sys/net/if.h log diff annotate
src/sys/net/if_aggr.c log diff annotate
src/sys/net/if_bridge.c log diff annotate
src/sys/net/if_tpmr.c log diff annotate
src/sys/net/if_veb.c log diff annotate
src/sys/net/if_vlan.c log diff annotate
src/sys/netinet/ip_carp.c log diff annotate
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

date 2023-05-16T19:36:00Z
author mvs
files src/sys/kern/uipc_domain.c log diff annotate
src/sys/netinet/in_proto.c log diff annotate
src/sys/netinet/ip_input.c log diff annotate
src/sys/sys/protosw.h log diff annotate
message Introduce temporary PR_MPSYSCTL flag to mark (*pr_sysctl)() handler MP
safe. We have may of them, so use flag instead of pushing kernel lock
within.

Unlock ip_sysctl(). Still take kernel lock within IPCTL_MRTSTATS case.
It looks like `mrtstat' protection is inconsistent, so keep locking as
it was. Since `mrtstat' are counters, it make sense to rework them into
per CPU counters with separate diffs.

Feedback and ok from bluhm@

date 2023-05-16T19:44:55Z
author mvs
files src/sys/sys/protosw.h log diff annotate
message Replace tab by space after #define in PR_* definitions.

ok bluhm@

date 2023-05-16T20:09:27Z
author mvs
files src/sys/kern/uipc_mbuf.c log diff annotate
message Always set maximum queue length to passed in the IFQCTL_MAXLEN case.
This is not the fast path, so dropping mq->mq_maxlen check doesn't
introduce any performance impact, but makes code MP consistent.

Discussed with and ok from bluhm@