From nobody Wed Oct 15 17:39:34 2025 X-Original-To: dev-commits-src-main@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 4cmyyH0BDJz6Ck9v; Wed, 15 Oct 2025 17:39:35 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cmyyG6Ksyz42LB; Wed, 15 Oct 2025 17:39:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760549974; 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=KWaz3BNSNLzzTTH4r9Kp9tJqIrzsav/vsNvsw2nUyZg=; b=fe78qm64YbktIlxWuIlytOk07zSbUi8TvpHOecXoMv53qxQOXCSF9zeZpBTpjZCTW8Ls20 nYxwlt1aYMWW8ci/0RUhHefil9p2kP3GIZ8eZKWwE2aNbKcQ8t+URmgpJXfuJvScQwl5td GnZJ+XdyN2yhqqrTMDGol99MLWP+rQqFOyYCYGDdxxg6SaMOrxSjGBhBYzIXj3fpM0sr2S 076e6Y090PTTD+MfBhKYs1VKccX3s7pW0co5u2sQUR84nKV1wLi6bE2s3cMMkOxgS1T9Rz 9EXxjyrAzOa3t3x0D9jPuN6TeTs8kpxpyQu+li0ElI0H5HITbHEt2z2o5zfOxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760549974; 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=KWaz3BNSNLzzTTH4r9Kp9tJqIrzsav/vsNvsw2nUyZg=; b=cIuqRJ/pOAAVp0vAzMBln9zNgy3O15U8dVdG24RN5qhwc2gD6KuTSfcQiY9X0U3qd6L04r sdfpZbEE7/jAGakIgTH031Io01iwfLCPWdHi4runT5d68CtyYyfr2f1swaUbCxx4FKImCW jkRsVuw/DkiNl/IK9QqzS4ZTENxyMv2Wk2w5i+eFZY5SEJCLvIVBbKLnFgF4bwPttCvSQ2 D9SEBztAW3JloJxIR7xrdJjGtoFYPaL8uFOhr2wB9PXGP6qLAiIh1TwP+3cCiK+kHNw0Ck w3hFBQe91v8KbI4Ao6Y6i+7QHieYQnU4wjQmA/c4d7ntX4Nvz1yKrA8HqmkQ6A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760549974; a=rsa-sha256; cv=none; b=DtfyjXcRwcIZetEgHTn1vbX2WSl6jcYLbwVhxAGsjIMafFPBcPqhbuu2jBf+1mw66h1GfM 9J9fYhFM0sjVws3XijkvvS6z/Ufv6M/dfGQvJuVg3UZ2MREzTaoCJHasmJ/OneLQXHexGr Xu7IZWz3sPBU2vtTlA1ulpMRDpOsEql5kP5I3Yi7Fv3MJoD8wiszgeScKqEB5lx0r+vYTS 1XsqUHiMMhD9dUYXNIJtgxvDKo7ISlrzdJQ6/HFhf78+DUjrmRuf1NqQYBUuir8MuJzxyr Ax+B+b4xd3kAeIul158/6PGx/QZohsmlV3rP6yKy7RRJY6+m8HHBAADD35aPJw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cmyyG5mTRzpPk; Wed, 15 Oct 2025 17:39:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 59FHdYgD023821; Wed, 15 Oct 2025 17:39:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 59FHdYvA023818; Wed, 15 Oct 2025 17:39:34 GMT (envelope-from git) Date: Wed, 15 Oct 2025 17:39:34 GMT Message-Id: <202510151739.59FHdYvA023818@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: f8b76ec4cac7 - main - tests/hpts: provide stub KTEST module compiled without TCP_HPTS_KTEST List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f8b76ec4cac745fcb1659e1ae34033a777d35a40 Auto-Submitted: auto-generated The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=f8b76ec4cac745fcb1659e1ae34033a777d35a40 commit f8b76ec4cac745fcb1659e1ae34033a777d35a40 Author: Nick Banks AuthorDate: 2025-10-15 17:37:07 +0000 Commit: Gleb Smirnoff CommitDate: 2025-10-15 17:37:07 +0000 tests/hpts: provide stub KTEST module compiled without TCP_HPTS_KTEST This will close a panic on test run when kernel is compiled without HPTS KTEST support. --- sys/netinet/tcp_hpts_test.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/sys/netinet/tcp_hpts_test.c b/sys/netinet/tcp_hpts_test.c index bab5827e0572..c5dc9cb5b03b 100644 --- a/sys/netinet/tcp_hpts_test.c +++ b/sys/netinet/tcp_hpts_test.c @@ -27,6 +27,7 @@ #include #include +#include "opt_inet.h" #include #include #include @@ -119,6 +120,8 @@ SYSCTL_INT(_net_inet_tcp_hpts_test, OID_AUTO, exit_on_failure, CTLFLAG_RW, } \ } while (0) +#ifdef TCP_HPTS_KTEST + static void dump_hpts_entry(struct ktest_test_context *ctx, struct tcp_hpts_entry *hpts) { @@ -1658,5 +1661,22 @@ static const struct ktest_test_info tests[] = { KTEST_INFO(generation_count_validation), }; +#else /* TCP_HPTS_KTEST */ + +/* + * Stub to indicate that the TCP HPTS ktest is not enabled. + */ +KTEST_FUNC(module_load_without_tests) +{ + KTEST_LOG(ctx, "Warning: TCP HPTS ktest is not enabled"); + return (0); +} + +static const struct ktest_test_info tests[] = { + KTEST_INFO(module_load_without_tests), +}; + +#endif + KTEST_MODULE_DECLARE(ktest_tcphpts, tests); KTEST_MODULE_DEPEND(ktest_tcphpts, tcphpts);