From nobody Mon Dec 16 12:10:59 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 4YBf0z6Cqnz5hLqG; Mon, 16 Dec 2024 12:10:59 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YBf0z5jwLz43v6; Mon, 16 Dec 2024 12:10:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734351059; 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=TEJ8ZNzhucq43di1OuXeuRjJrNiwqSKwRoT+cRzwvOg=; b=ms4hj++tMNvs2+R1wynHK0hOKy/EbbkuEBA0rLcCDZ0jnTQmcSA3Fb+aQ6TlB1mPZwDbaD SrTjmUZ35R2G6TKWwlvqnNiaLlwdDZAnng6OwxWWt6A9NxlbKNU38YCq4LFqImrp0AOlgP 8fhvNPv50HduEbPdu6DEaT3uHSMg8GWAG2eCwzJBAqATgDqQk/t56qbNWnFw7YYjWbh8/o k4qUBj9uNypY+v9b+FnRabb6ZqSzFF17r9qh/qsiTmvMEyzGjE7aYuicXGOCa7A6mGP3Ua 7FYr9iIxXVzDsJwCQqY5L10L0gL4I4sObo9e6leYW+Cd9lu1HIQ5E7fR2rh6uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734351059; 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=TEJ8ZNzhucq43di1OuXeuRjJrNiwqSKwRoT+cRzwvOg=; b=vQXyI3WUUrCJPWmFzWPNBLY35Kpr5klPxOYmws8FfzG1hr/GXfI0dzkCGDffytqtGrd7+8 TwDKAZlV+YkLVoE57sONPznzaA7yqxhDEY0J6j//CrAvYCwYoUFKgp5p+unQ1hKXVC2MTV uGWyH1ASmQUKwFG92j+S7qWztpp80n1qqyNGkGVzQOvZtxxIO8mNX69Q+GxDPphCbLhjmZ Wl0RXg9O2iqcoTo3J9uMS5WKuFL+8hTNHLfd5JRiZ8SMybIw+/zVY9ZpeapXsKS72nFpa1 eSOk+AH49vlG5zwZmyk6woPp+ZHxLEUodqAGtDNVD5HZEmwi9COGqzNYzoq7GA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734351059; a=rsa-sha256; cv=none; b=eyZS2grCe5h+xzl+pVtukvZRMSaMN1yXF7sH2Y4eudFGv9lBxE6tJZMogPMy06gJL/YefE wLQMZ8FcgyXjll5PFVZHSs2PVg2GKSrxmcPQgWRpVX8NMeJZxGp9kNLOa4q69+3cWHSv+K UI6jG3JQt+QwWy3dw3KbejmVxwWq4v4m8O9p37Ya1Bi7G/iPdPy19ZXozMgQ91FQTDX43Z RyQC+JM9ATA6t0Sm0pJyUvp5ICwnLe5K6oFGwzSng+KhCibjm/9ZJQmqy2efA0u8CFS2Gg yL4DNu4Nz82FpLT+Muwk0DOoZdGHJ9l1dJke9kIt11vJVBw5PgE+ivipl/vSvg== 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 4YBf0z5Jv7zs8S; Mon, 16 Dec 2024 12:10:59 +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 4BGCAxFS064430; Mon, 16 Dec 2024 12:10:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BGCAxgR064427; Mon, 16 Dec 2024 12:10:59 GMT (envelope-from git) Date: Mon, 16 Dec 2024 12:10:59 GMT Message-Id: <202412161210.4BGCAxgR064427@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: f87074000873 - main - ip6_output(): if mtu is not yet computed for ipsec hook, use ifp mtu 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: f8707400087361394703271b412477ff41583ab6 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=f8707400087361394703271b412477ff41583ab6 commit f8707400087361394703271b412477ff41583ab6 Author: Konstantin Belousov AuthorDate: 2024-11-27 14:27:42 +0000 Commit: Konstantin Belousov CommitDate: 2024-12-16 12:10:29 +0000 ip6_output(): if mtu is not yet computed for ipsec hook, use ifp mtu Sponsored by: NVidia networking --- sys/netinet6/ip6_output.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index 7eea64bb6344..9e4985cdc6cd 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -798,7 +798,8 @@ nonh6lookup: error = ENOBUFS; goto bad; } - if ((error = IPSEC_OUTPUT(ipv6, ifp, m, inp, mtu)) != 0) { + if ((error = IPSEC_OUTPUT(ipv6, ifp, m, inp, mtu == 0 ? + ifp->if_mtu : mtu)) != 0) { if (error == EINPROGRESS) error = 0; goto done;