From nobody Fri Apr 12 21:31:27 2024 X-Original-To: dev-commits-src-branches@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 4VGVB81Bfkz5G9YX; Fri, 12 Apr 2024 21:31:28 +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 4VGVB80lKHz4jdP; Fri, 12 Apr 2024 21:31:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712957488; 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=nqcFnmi2q+toOpDQV1ZrU1u3UNJGcfJPv9j9OvDkyd8=; b=q8sLIMGtVtNHB7AGBYQhtpKLDD0VPFYTMzQKgUhDJeSRgKbD6MOFpiZ4eJN+t9smWejDgL 7GTb2eDz0nIpQnH7V0OhDujIhmwZYIhobW/wm9aI6rjngJUNs8HI+Bf+Qm6kqM94ksi0le bGYg0+BMDMtmIPHEHIEKxEn9woI+XxNmXj402pKO4g5/zXCl0nkYtUcV37g2aNhRuPi7oc 2yTkiiCHoDEmdli+LQHgkhS8y6Uz01cRfr7IZ2extchUqXF5fgM0/7Jh7T6n50q7SeJUdl ikTL9rZuQnB5Wmbhp6Py39AimoBNFbJlkaqET8C2cPr0MFtxIF99xWJTnUiQfA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712957488; a=rsa-sha256; cv=none; b=Iz7jogvowZnkbVA4dEeP8Digpe7P+6eggEgueyWbmem0Ny1rBqP//bQj2oUKuijYudDA2k t51mmf1NZtV2Xb6O15EjSYhV/0oJhjCNLEof1P2gQ7h58aXQAu76MrcIuWei+qhMGzYeFx BCxCDPD+ulyIq/hhJYAEjLl9VZNwLjaPJsEn2/xcLLo0KnqVzLIeCZIKb3zX9i/TbTajtE PbDuwIbPypUAQGJnJzq1aJOzOQjiU+QuWkkbQQ/O8/Rg/vyJwPznckw5aWBYX7JKeUEfP6 f5xGMoF0t+hi7EPkNro2evXx9EDCRwlrhpA4sLS7omHKbMX0Iq43toqt+vlwjQ== 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=1712957488; 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=nqcFnmi2q+toOpDQV1ZrU1u3UNJGcfJPv9j9OvDkyd8=; b=btXPc5glUY4XXWPrCfaaDY5wgiVsdTKBmoY2uXrt5Ap8mCWZ/B2TU47U4WQQVN1cwfACFJ aywCLhkyRrzHQM6gDpQ7NYjzjRPuj0ChdEvUEXfI6P4hI980qZGTba+YefrNTQLh8b6imh OF7jE4OIzGnQhuzepAS7lxTAOacBATeS2Pkvbg6sF8msBHAgsqmow5BPHFDKOpIEnyPz6T USZztGjGj3kgCIEVfFXNRuc2cQeyMT53keUR3l0gUfA5XkcE38bmpmM2igqQvBWx+A37Fh Nq6DZ64dOuJWxKQEdy771HHeT6UGrm6mC2ys0If+VZWGZkAP7GxZPNIclkJwHA== 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 4VGVB80L3tz15cs; Fri, 12 Apr 2024 21:31:28 +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 43CLVRob011724; Fri, 12 Apr 2024 21:31:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43CLVRR8011721; Fri, 12 Apr 2024 21:31:27 GMT (envelope-from git) Date: Fri, 12 Apr 2024 21:31:27 GMT Message-Id: <202404122131.43CLVRR8011721@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: ce5a6a3adda6 - stable/14 - tcp: Add a new kernel-only TCP_USE_DDP socket option List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@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/stable/14 X-Git-Reftype: branch X-Git-Commit: ce5a6a3adda64b3385312ffc9453b8ea9f556e80 Auto-Submitted: auto-generated The branch stable/14 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=ce5a6a3adda64b3385312ffc9453b8ea9f556e80 commit ce5a6a3adda64b3385312ffc9453b8ea9f556e80 Author: John Baldwin AuthorDate: 2024-03-20 22:29:02 +0000 Commit: John Baldwin CommitDate: 2024-04-12 19:25:11 +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 (cherry picked from commit 3d0a736796a99fe70be9de97beec8f10970c6905) --- sys/netinet/tcp.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/netinet/tcp.h b/sys/netinet/tcp.h index bfb825930c66..56271203bc18 100644 --- a/sys/netinet/tcp.h +++ b/sys/netinet/tcp.h @@ -187,6 +187,9 @@ struct tcphdr { #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 */