From nobody Fri May 03 00:16:08 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 4VVrtx2nQLz5KK7V; Fri, 3 May 2024 00:16:09 +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 4VVrtx03bdz4R0V; Fri, 3 May 2024 00:16:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714695369; 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=68hFpHlySKQGOhZ4W4tFrP4R+G8YxJ14P2ZidiNhtHs=; b=O2MXSqYjVQWuod6pZSLe05kjEG4hKnaXKdZZlW222aoXj41rXI8WdLp3Ndr0lr4nYbA7Qv JBxbO6GlLATBlDnQyQgts5oA3TS/HLL+sUPnmFnaPiiTJXf6LaTCSkrK4u+UguuC7wDjPu y63grNP0+5pOsOnQagbImcqxnkzny6m+Ngvx6vi04UVVBBMSTEwEMgKGo/hgh7+tJCcXpD wHYZDrnI28BFlQnGh9nnNgty0fGQ5MVrUIGPI5/7Cg2QdnIfOxx5ooaPpZ/WIwcrWjFQW8 j0O4rJ0YKmQMEFc9NsJfozaTwhERtQ06JqriGqTYt45UMHKZHg/q4VX8k6zWmA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714695369; a=rsa-sha256; cv=none; b=DX+jiQaflBD/V3ftDKfXHQrigYGlUkD/cdPLpfpsVB3dUbfu2ZxrBysbKIEj+llGmfAKrj T+ozieFCewO6UXmW9/hQlp4rofnxhh1s2S9bED8q3ERwjrDS6ubnT2BlTMH6oLUGCmeiX1 YA+LuFU5xdpBOxQncE7VmFjNviqSXOqcEW892Yr+O/qyUxpUJkOQhZc5zW0SijpMrnPe/Q AWgSSL3sZDkQuEa4B8unMQa4xdxRQiirfzpSpOdYyb6d3zdPpMQv9TYWptp6vovObCTXkP qp+SM32eDrZQUE2At3n1UOp/rLG+7cUk+jgBQQItpd1wcACf0hWXly8oPaycgg== 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=1714695369; 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=68hFpHlySKQGOhZ4W4tFrP4R+G8YxJ14P2ZidiNhtHs=; b=de7MpVIa2EAvjlxp365poq6L0wPs0rC8KHJgpV8PMXJyRKww9RD5up63Md8r9M1SECiMv8 UgPTQAT0ABR/+O1RfX+YfVFIyGSWvqmgZipyw1/42kTsHFokWzuWwARJ1g7mDb2k1I3YAe 8wXb5z+NxNWQovRknbt6a7pke0rdg+WOHcNYQBNQkCkBwTBSIoQEEsCWY9Odfuky02VCGd HNxFDpTLZxgsXgpVEg7g+nblLeVGKfsM35JUucOf97zBuahqRjX5EmGE0BKrPrn8dXuR7c WJwF1q83+zqZgUXJznFCAwdH1nvtbVNhEMHjJIzRpcdH53hj6gr0SCCh1Vgfdw== 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 4VVrtw6fjrzNcy; Fri, 3 May 2024 00:16:08 +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 4430G8hH080098; Fri, 3 May 2024 00:16:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4430G8og080095; Fri, 3 May 2024 00:16:08 GMT (envelope-from git) Date: Fri, 3 May 2024 00:16:08 GMT Message-Id: <202405030016.4430G8og080095@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: 51346bd59458 - main - mbuf: Add EXT_CTL for mbufs backed by a CTL backend buffer 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-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: 51346bd594585614bc99f29a124a2473df3155bd Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=51346bd594585614bc99f29a124a2473df3155bd commit 51346bd594585614bc99f29a124a2473df3155bd Author: John Baldwin AuthorDate: 2024-05-02 23:34:36 +0000 Commit: John Baldwin CommitDate: 2024-05-02 23:38:30 +0000 mbuf: Add EXT_CTL for mbufs backed by a CTL backend buffer This is somewhat similar to EXT_NET_DRV, but CTL isn't a network driver. Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D44725 --- sys/kern/kern_mbuf.c | 1 + sys/sys/mbuf.h | 1 + 2 files changed, 2 insertions(+) diff --git a/sys/kern/kern_mbuf.c b/sys/kern/kern_mbuf.c index 0df807e47bd6..44b6584f7331 100644 --- a/sys/kern/kern_mbuf.c +++ b/sys/kern/kern_mbuf.c @@ -1212,6 +1212,7 @@ mb_free_ext(struct mbuf *m) break; case EXT_SFBUF: case EXT_NET_DRV: + case EXT_CTL: case EXT_MOD_TYPE: case EXT_DISPOSABLE: KASSERT(mref->m_ext.ext_free != NULL, diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h index e13ba39c27aa..741ae1b7c387 100644 --- a/sys/sys/mbuf.h +++ b/sys/sys/mbuf.h @@ -593,6 +593,7 @@ m_epg_pagelen(const struct mbuf *m, int pidx, int pgoff) #define EXT_PACKET 6 /* mbuf+cluster from packet zone */ #define EXT_MBUF 7 /* external mbuf reference */ #define EXT_RXRING 8 /* data in NIC receive ring */ +#define EXT_CTL 9 /* buffer from a ctl(4) backend */ #define EXT_VENDOR1 224 /* for vendor-internal use */ #define EXT_VENDOR2 225 /* for vendor-internal use */