From nobody Tue Dec 17 21:50:00 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 4YCVpc558Vz5hmSm; Tue, 17 Dec 2024 21:50:00 +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 4YCVpc4ZqKz4kbR; Tue, 17 Dec 2024 21:50:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734472200; 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=0zJpcOQ5dzpERgbHY0Ou7VPTwllYgDYHFJPT9/+KiZU=; b=uG2tixFhTV1ytCOu8ZMRQEHgv01coGd2gMgwNWXccZ3wpEKWr31RrJxR78L01onc62kgS4 ylGCnRsMycyd46bbFrnddQkto7BuSqal8h36YpNOngh4L+YzJ5DA9QNarwG4CAlV2JwrCm s/VqWZUdi9tbQxrIOIqvUz3OX2+QhB8/sYsZToNgnVqt94z9fVoGqxrtA1kVP3U8FMOCyP meY5D4b1a7dFXbR5VqpLLE1HS1km5+Mud9HTds0h0+I2K8BM8vBb8w7OkEdeGnqj5MRSeM RMI1IKauzPEcb1Uf9XE8m+nB96rtxeFK1QNn1UFtapx4eRpKwOjLbqk9B1+z8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734472200; 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=0zJpcOQ5dzpERgbHY0Ou7VPTwllYgDYHFJPT9/+KiZU=; b=Zp2U74pdcgg1SLUVcYD2sO0Vpm/ewz6I3KkRX5PJIBKfWG8TyZPUq0R8CAk9nt2JBO+9F0 YBjHyPAXaix9LWXugceeSCDZ04O446MqJ5eqSOcki/NcLvcDIpMIpQKnojQvkuJ754CXZg wGj2DiaMp9Yqyx+R2R5bn1NgCH01hSu/N/AdgXR5MZaD0xJvHyrFVV/LbMgbUbq9EQ45Ax Edcd5UvrQ8YJx4TtpbzEJOg/7MUCHCGcPVhiCvUDNV5f2bK877OG7q/ZvI6BNQPEBpn6Zb T78WzbsZyOYNAOU8AnQ0Xpa45ZhnRM7oZISfnwSgO6PPnkwHApBdiMbq5vJpXw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734472200; a=rsa-sha256; cv=none; b=RhE8oHvxKAZUYOHYvD0iOF1tHvF8d0cPIBFlZEW9CYhBNSSF3puA/XsyQQmF90TI44M0uR XhBjpl42fq7AWbYb0frS85V40TUyfu3aFpau+OlK1JTnr8IKEIHU532m+Sov+YYXDKDkJF E5eAPYzM0ROmDMNs5EZ8yl307A2psVKpkXjSjDEksaHKn+Xv71cs+8R1vwDzIXQxR6MQ5z ddpWO1w+7/Ksya69Vtz8DT+rXctIrZfwIdKuDwrOUscdqxNfAj+CIcFjzNCLBnxG6O77WA 3S2ADPhdz3soP+vGqNk1vK6AIA3zQ+KpUNywoFi7cY0nrER1sWZhKLPyW4+A9Q== 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 4YCVpc4BFQzh17; Tue, 17 Dec 2024 21:50:00 +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 4BHLo04E031178; Tue, 17 Dec 2024 21:50:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BHLo0mQ031152; Tue, 17 Dec 2024 21:50:00 GMT (envelope-from git) Date: Tue, 17 Dec 2024 21:50:00 GMT Message-Id: <202412172150.4BHLo0mQ031152@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: c7d13682a1ad - main - lagg: do not advertize support for ipsec offload 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: c7d13682a1ad0e8f35d59989d64546c74da80eed Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=c7d13682a1ad0e8f35d59989d64546c74da80eed commit c7d13682a1ad0e8f35d59989d64546c74da80eed Author: Konstantin Belousov AuthorDate: 2024-12-16 12:38:39 +0000 Commit: Konstantin Belousov CommitDate: 2024-12-17 21:49:31 +0000 lagg: do not advertize support for ipsec offload It is not implemented, and most likely cannot be, in a robust manner. Reviewed by: Ariel Ehrenberg , slavash Sponsored by: NVidia networking --- sys/net/if_lagg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/net/if_lagg.c b/sys/net/if_lagg.c index 988f23fc029c..9bc42cb8cbe6 100644 --- a/sys/net/if_lagg.c +++ b/sys/net/if_lagg.c @@ -692,6 +692,7 @@ lagg_capabilities(struct lagg_softc *sc) ena2 &= lp->lp_ifp->if_capenable2; } } while (pena != ena || pena2 != ena2); + ena2 &= ~IFCAP2_BIT(IFCAP2_IPSEC_OFFLOAD); /* Get other capabilities from the lagg ports */ cap = cap2 = ~0; @@ -703,6 +704,7 @@ lagg_capabilities(struct lagg_softc *sc) hwa &= lp->lp_ifp->if_hwassist; if_hw_tsomax_common(lp->lp_ifp, &hw_tsomax); } + cap2 &= ~IFCAP2_BIT(IFCAP2_IPSEC_OFFLOAD); if (CK_SLIST_FIRST(&sc->sc_ports) == NULL) cap = cap2 = hwa = 0;