From nobody Wed Mar 20 22:34:37 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4V0Ngd5Xbsz5F6l9; Wed, 20 Mar 2024 22:34:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V0Ngd3FFdz4fBR; Wed, 20 Mar 2024 22:34:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710974077; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DYDzzIdDkrwtYKYHrlL3GvP5Xj5PVqBcxgm8JEsWDqY=; b=QQbmvNavDNQtU0fi4lpoZBxiZ42kOOtOG4omLKhAccz72gIkkwhGFfwM2qg3ROYMRzi5wU cXWQjwNrqsRjZUJS4LvPR8dpMX8aNohF5NpyFyExK53GrCIQD7vjoL/8afqFT5M5SOVjzW uwlpuwJy2JEMsePb4nAknQwKEw22IbdG3+kfytMqXek7I16TBexzY6g4/bVRYAGNDmH5V7 205AGa5WRtqubA3sacKG3PhI9l3Gterk64PYYKZNmVGkEGCyUdA55rLtR/u9g34KkXugsQ Avp+CJKNpjpgLqYWyhdavEaXFpc2u2KAO4Tc8qeymKsNsEdpY0r9KiqB1ObUGw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710974077; a=rsa-sha256; cv=none; b=O06B1nJNI6xalk8XVns1grzBwbDKDmjEmI2Nl6U6rgA9du9QC6HSQdUg2T6EyvCu2JHS1f x/lgUX5pluyWBdTr7kbExMW7Bj8n/T6DgsnNd8/O2mmpbasLOCThhvMG5SmZpbkXBgK87l XhnBVQu6EEkwA6+bEk2X/4iKNrx4PkrvqwBhoNcpXq4jH478jN3cG+WT49eEX4n1ELySb+ LmIauXV8T/Dd1fDwT/Tc4f29OIEJvhFSe+cow00RyBka3hRwvaBM15qWbgYK6PhIpa1a9M JqZTKBdbH3lYJmjV1vpJY2KHjF3eFroXfVGOSjr9lYgF+VZBBlX00O+4sMo5EA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710974077; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DYDzzIdDkrwtYKYHrlL3GvP5Xj5PVqBcxgm8JEsWDqY=; b=rDg6wx/MAV5h+XRlBjIE8Du4g5Kfp7aRVrRerFhZx5w04O0FB6NCGq9isvGmheQB672kMY Fc/jS/p/CYe36RZuTOB9psZuO0yQjZlrap+9RoLHhOhOh+YOKzwBQd0QbaINvt+9pv5or7 rKwyfeGFWheFqCQ7iZEWaMjzmVedc0h0DkfgJV8fIZg6TgvPRpmXl1NlzMc1aD3NnATcQf U/R5/UfUlneAu/4F4jPnXs6+LEppLMGaD7gK4kXwT3aZuaqZgDSPKoNM7L3iCqmaqQxF0q aWD2Gfjh30lx8WNJ5bVQwjPi2fuKPKy3rsXIA7Q4tyen6/j+eAfmIRgqm/scAA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4V0Ngd2rsZz18Pv; Wed, 20 Mar 2024 22:34:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 42KMYbCA047853; Wed, 20 Mar 2024 22:34:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42KMYbsv047850; Wed, 20 Mar 2024 22:34:37 GMT (envelope-from git) Date: Wed, 20 Mar 2024 22:34:37 GMT Message-Id: <202403202234.42KMYbsv047850@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 3d0a736796a9 - main - tcp: Add a new kernel-only TCP_USE_DDP socket option List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3d0a736796a99fe70be9de97beec8f10970c6905 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=3d0a736796a99fe70be9de97beec8f10970c6905 commit 3d0a736796a99fe70be9de97beec8f10970c6905 Author: John Baldwin AuthorDate: 2024-03-20 22:29:02 +0000 Commit: John Baldwin CommitDate: 2024-03-20 22:29:02 +0000 tcp: Add a new kernel-only TCP_USE_DDP socket option This socket option can be used by in-kernel consumers (like NFS) to request a NIC to use optimized receive of large buffers for a connection. The current use case is to support DDP by the TOE on Chelsio NICs. Reviewed by: rscheff, tuexen, glebius Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D44000 --- sys/netinet/tcp.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/netinet/tcp.h b/sys/netinet/tcp.h index a8259fa30a3a..c97a3e04d9b6 100644 --- a/sys/netinet/tcp.h +++ b/sys/netinet/tcp.h @@ -202,6 +202,9 @@ __tcp_set_flags(struct tcphdr *th, uint16_t flags) #define TCP_RXTLS_MODE 42 /* Receive TLS mode */ #define TCP_IWND_NB 43 /* Override initial window (units: bytes) */ #define TCP_IWND_NSEG 44 /* Override initial window (units: MSS segs) */ +#ifdef _KERNEL +#define TCP_USE_DDP 45 /* Use direct data placement for so_rcvbuf */ +#endif #define TCP_LOGID_CNT 46 /* get number of connections with the same ID */ #define TCP_LOG_TAG 47 /* configure tag for grouping logs */ #define TCP_USER_LOG 48 /* userspace log event */