From nobody Fri Jul 12 11:24:52 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 4WL8QD6lJVz5QBfM; Fri, 12 Jul 2024 11:24:52 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WL8QD60flz4hc0; Fri, 12 Jul 2024 11:24:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720783492; 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=NJOoq//mm0eKMv/IPkn2aMVzP5XtOu+PExLyvuriuj8=; b=j4hr1fw/p/wrxafbE9Z1uwpxXsnvjYEJ7MH5XHyjGHpfkdWpzkvukJKsxdOxkC713rQWcn HjCrdjvCgUN+dwq2708GgBOc9/69nS70MQ53pedeH/qa3m3JcAdH9yhZfJG7sNo05+Iuim hNBDvYbj5Lp6loCx9wdQTci6bePdN6C7V+WwypU1lpA9ySD9Swgwww/yeqlMlNHR4pBj5U NDG16cxRMcw+GqfDaD/wjUa33d+Cs+Fm7N+BCJZ6TkV/l9xki6HGpiF7XZ0nE0BfJwXBWj 5DfeS8G8to8I+YZesUSrmBH8urctX29NSKJi5atOYXYV1534NFR12JyK5OWpJQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720783492; a=rsa-sha256; cv=none; b=q61gOx31Do9qvOD7XVAhjN1XGSskQ4sidgk8HPI+CQL3dDMhvgHtXgQC6d9u3VzRHvhrQ9 QfrLcTdd/CmSrRhXihUHvNFuGcEMCFhukhHSTJFIJzm14krRhHRzZO83ViEPZfpB9BVxog yHwPReSjJU8V+gmu3MmK9gRBlxv52PB8dYC1ecFZqROjmUzrwoIiDslpdQgWbvrNNy7UJU 8KY1NipfouzqGVY+BBuqMU2yrRrYIClM1DSZ6lMTUL2B964xZgd53y1XM9lbfYKRiNjeY5 32hZV3xy1MiuUiXglrHCLIJzccPr2RFlTIRlGNZE3yZJg8Oz/5nXK4+oi68TEw== 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=1720783492; 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=NJOoq//mm0eKMv/IPkn2aMVzP5XtOu+PExLyvuriuj8=; b=sb7Hy0YpS6V1P6LnfZAnPc9b4Rgn++SaarY6ugwsPwIlAkzJ7/9ywYF58Bd2i6Os+kAWYG Zw6UZadXUBDQpP4w4Fj1QKVtFqcJZvwLokWS0eiUNBqT07TGs1kTrxlZMY+D20QO+OGCBc nBYEQkZ3yZOJvu0vf9ywlf0HbhgHBYN2qRk8ItkPdOzmvxAOyLwRcu8whJanWaSD13aJwo vfuOXz/E39jmZZq6lQAeKIPwPlGJ2DvuILHmLfji973/PAl1z4d0rK1hBWfUpvCn6NPaLN GYXlOtDyx7c0E3mw0ixXO6KK7Y6BF9KjDDEsUZX/mtovEIna1gBnQCiNlp2haw== 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 4WL8QD5bnTzhgf; Fri, 12 Jul 2024 11:24:52 +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 46CBOqRw092400; Fri, 12 Jul 2024 11:24:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46CBOquC092396; Fri, 12 Jul 2024 11:24:52 GMT (envelope-from git) Date: Fri, 12 Jul 2024 11:24:52 GMT Message-Id: <202407121124.46CBOquC092396@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 54ac7b969f86 - main - ipsec: make key_do_allocsp() global 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 54ac7b969f8683b1398625cc283eb8383f95b263 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=54ac7b969f8683b1398625cc283eb8383f95b263 commit 54ac7b969f8683b1398625cc283eb8383f95b263 Author: Konstantin Belousov AuthorDate: 2022-12-25 21:56:45 +0000 Commit: Konstantin Belousov CommitDate: 2024-07-12 03:29:31 +0000 ipsec: make key_do_allocsp() global Sponsored by: NVIDIA networking --- sys/netipsec/key.c | 1 - sys/netipsec/key.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netipsec/key.c b/sys/netipsec/key.c index a077f8007e47..501f5c0a7339 100644 --- a/sys/netipsec/key.c +++ b/sys/netipsec/key.c @@ -622,7 +622,6 @@ static struct callout key_timer; static void key_unlink(struct secpolicy *); static void key_detach(struct secpolicy *); -static struct secpolicy *key_do_allocsp(struct secpolicyindex *spidx, u_int dir); static struct secpolicy *key_getsp(struct secpolicyindex *); static struct secpolicy *key_getspbyid(u_int32_t); static struct mbuf *key_gather_mbuf(struct mbuf *, diff --git a/sys/netipsec/key.h b/sys/netipsec/key.h index 5c46c00feb39..d62426e6733e 100644 --- a/sys/netipsec/key.h +++ b/sys/netipsec/key.h @@ -49,6 +49,7 @@ struct xformsw; struct secpolicy *key_newsp(void); struct secpolicy *key_allocsp(struct secpolicyindex *, u_int); +struct secpolicy *key_do_allocsp(struct secpolicyindex *spidx, u_int dir); struct secpolicy *key_msg2sp(struct sadb_x_policy *, size_t, int *); int key_sp2msg(struct secpolicy *, void *, size_t *); void key_addref(struct secpolicy *);