From nobody Wed Sep 04 08:50:23 2024 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 4WzGR357yHz5TRcs; Wed, 04 Sep 2024 08:50:23 +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 4WzGR34PHtz4W54; Wed, 4 Sep 2024 08:50:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725439823; 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=h0NnCJprF2oikLNuoYNyYoIq2klsyXZxswitoI6TDHs=; b=T0DVotO+JHXczrn94Cik/H6+Qz5m9Elp7ZzUgtjN+Os55iKtWsag1MU/vXNpLQ9uLRqbid xJMP/I5wl7rIS5bZpDYyTbcgl30dUSooS8bZJtwalGZGS8QLYMJ8iFe3aWeH1C5Gl9zx+9 CqZJljF6QyA2aAuTx10cpYmp5rwzKf8vT7SlF+ROB89hvtgkrjJNT7s8mZG0cOos8ZFcgA gRMb5QrWvk4gV8NzLxDbfLQMW8IHARibQrxairKznEn341xUYwAL7PsRnWYreqIiNbTZOf dV8HmmdhT0E1fPqCA+JwUsoDhiFVB+tPRTptwrlfNdZUQ54WkxAQ1exKVdSUdg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725439823; a=rsa-sha256; cv=none; b=sSmRULZqk05Z1o7fgGqSgXPr4VZq7ZoCp1uCqoNdmr/WNpinzZqjXiv5GfzPhQytkoruF4 GYsNoh4MAfPaIsWpJA8nUMZp23KtJWOTozeZL//pDPQ9509DMbVPLICAWST8hyCDqlRICJ niwguISbqOQs9ZEkx6rDppQ0govDrSiuhv93HbSevfWe6VSua4vhdMoB3khFQeEJhFgqNI OsG5r36hgEJBbKktDhRp4EWlYjp6LIzyh9oAA7Gl71oAqS4JT83FZZZydDMPUf3Q88KQbf p/m8XmbUyC575CSmmgqwRfQ8g04r3h3bgi/5pEkeca8e3VBieejFI2MsHNC/bA== 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=1725439823; 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=h0NnCJprF2oikLNuoYNyYoIq2klsyXZxswitoI6TDHs=; b=MGJCpjNwbqzZM5JXGnm8IPV2+xmaZYXHqhkUXnm3HiKsZ/nfoywphGSgn8GZ0GSirCkD8v tX40HS5YfSBlIQWS4uNYxaiXeOdCDPjoAV8bA2u4O9PiberX5AQQBPLcuH/AkZJ3kFBg3e 0MDHaD+28IqY8v812J9S4T1dH0g8T0blkUIJObpbgqIGYtau4EnS5HLcLRqtFjYey+RlN0 +xEAjKqBPz86NvcgTtaeI8fXqZQPsGOdcTRuiBWi8WZ0VsiSGD6mqovzEI4LmSB/2Y6nzw WKak7yVADa76n4pAcSgVy8KVQu2feaZiNzPY7AsUSz9LXaqBiWwDUhLP4jBrTg== 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 4WzGR33wq2zHSD; Wed, 4 Sep 2024 08:50:23 +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 4848oNfQ096766; Wed, 4 Sep 2024 08:50:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4848oN9M096763; Wed, 4 Sep 2024 08:50:23 GMT (envelope-from git) Date: Wed, 4 Sep 2024 08:50:23 GMT Message-Id: <202409040850.4848oN9M096763@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: d02e1a3ffac7 - main - ipsec_accel_output(): do not process packet if interface rejected offload 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d02e1a3ffac76c17ac4d9fd45dd5edd8bc944c82 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=d02e1a3ffac76c17ac4d9fd45dd5edd8bc944c82 commit d02e1a3ffac76c17ac4d9fd45dd5edd8bc944c82 Author: Konstantin Belousov AuthorDate: 2024-08-28 10:16:38 +0000 Commit: Konstantin Belousov CommitDate: 2024-09-04 08:49:38 +0000 ipsec_accel_output(): do not process packet if interface rejected offload Sponsored by: NVidia networking --- sys/netipsec/ipsec_offload.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/netipsec/ipsec_offload.c b/sys/netipsec/ipsec_offload.c index bbf98ac7a676..7453fb3818a6 100644 --- a/sys/netipsec/ipsec_offload.c +++ b/sys/netipsec/ipsec_offload.c @@ -876,7 +876,8 @@ ipsec_accel_output(struct ifnet *ifp, struct mbuf *m, struct inpcb *inp, } i = ipsec_accel_is_accel_sav_ptr(sav, ifp); - if (i == NULL) + if (i == NULL || (i->flags & (IFP_HS_HANDLED | IFP_HS_REJECTED)) != + IFP_HS_HANDLED) goto out; if ((m->m_pkthdr.csum_flags & CSUM_TSO) == 0) {