Use TSO and LRO on the loopback interface to transfer TCP faster.
authorbluhm <bluhm@openbsd.org>
Sun, 2 Jul 2023 19:59:15 +0000 (19:59 +0000)
committerbluhm <bluhm@openbsd.org>
Sun, 2 Jul 2023 19:59:15 +0000 (19:59 +0000)
commita3c0391fc73a54e77dd41ef73342d3e6d2863697
tree8e06c86045a6c3b3b91af672f7864f50134d1840
parent68270c64c62e5b7be6b0ab170ccfabbb8e58ca57
Use TSO and LRO on the loopback interface to transfer TCP faster.

If tcplro is activated on lo(4), ignore the MTU with TCP packets.
They are passed along with the information that they have to be
chopped in case they are forwarded later.  New netstat(1) counter
shows that software LRO is in effect.  The feature is currently
turned off by default.

tested by jan@; OK claudio@ jan@
sys/net/if.c
sys/net/if_loop.c
sys/netinet/tcp_usrreq.c
sys/netinet/tcp_var.h
usr.bin/netstat/inet.c