From nobody Wed Feb 25 17:20:20 2026 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 4fLhDj1JsVz6TJn3 for ; Wed, 25 Feb 2026 17:20:21 +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" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fLhDh6Q9Zz3Zj1 for ; Wed, 25 Feb 2026 17:20:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1772040020; 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=fhDb7azHn0/x9uABes9ttNhICuWK/F6PewIId5wBzn0=; b=VJbBRSFnYOxLA8uR5AxKtc4uao8CvAGjmqZ+K1powxyQyZtkHJ7cWgTcNUH6eWIyC+tbTT cnfbzXK1TB8Nt/jCGx6nnOaqzUwwbFxC4U+2qw8q4fczwtxii3yYXa0IwEh6ZImMRVK3jj vuO0ZZEn5a1NythHYqwjTG6+wEvDWIuhuwbtnAPphiN6/dvkCMjuFEICvx9eK52VW5bf8P OTagDoI+UcQcXlC/nCgzJ0JNNVl9Jb+FURSy4fhBeqYYLDpyDXkzG3RxtSn1HWZG3XkPQf FKoOoquZtpIZFdlGJS1Ic+DvZs2/nKoEZsR+XDp2tRqDM+LaFgnexLoRuRGE/w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1772040020; a=rsa-sha256; cv=none; b=Gke5H/0g4P5Eo8at23S6EhNbPOa2ojydWgFVwgP5hKtVjbtRi4emdFNJDOu7i/E7jEmckk nZJ+oYzrznEbtOaA1wa0nP9jgOxdpNw74+6Ln3Ui5GXMXYAH0NQhYoSo2iqNa17bz7XQTD pAT+JrtE5WDm0wDAXZvY9FCdRdoUPwkI9iLEPDDgtDLjHzgtv/ANpkO9KszVWdY77Vrs8X AXaOTyhJ1s7eSDUE6N5zketKRKESIHY2ocFLXeiYqCWwPgFzkYIQcT4DFiI+upula+yU3S wWNkNKg+LmQsgv9Oy5ohQxvvm2gIgQFIIS6bZ8ZwLun0Py1pZh9+jIvgmeNa8A== 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=1772040020; 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=fhDb7azHn0/x9uABes9ttNhICuWK/F6PewIId5wBzn0=; b=AcrLNaocnhho9qlXe6zFZDWxPOUxD1O1htIKnAkHYFf/WtmJQ5abJWm0KKQuvUW0HE/Kay MeD8Beh9xCGzQ9w60BN+OpvXPRvve95vPkunyh3NsHAO12gs6qNcwrvEqT4vk+uRvCgygQ 58KLZz3mT0kq6IhV89sOH5ISi3wYKm10Ux7yUjPr1d+GqOL7wBwG8dXn+lwyA87cSEZYLw Rqzt5NM6Mangd7CVn1D8go8zcES73VZbEJVTnZ5xLb6SOdw5z5v4BdNfAnNG1Gk+vu70VO r3nnykZ6hSGHze4FibqyF91lt8pWYVR7NUUktrZYENuUGxfjPk3bygzBmPY53A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fLhDh5n8pz1962 for ; Wed, 25 Feb 2026 17:20:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3891e by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 25 Feb 2026 17:20:20 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 0e5caac7d543 - main - ipsec_offload: add comment stating why ipsec_accel_sa_newkey_cb() returns 0 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: 0e5caac7d543687d540fa83a7125726c7c9e6e58 Auto-Submitted: auto-generated Date: Wed, 25 Feb 2026 17:20:20 +0000 Message-Id: <699f2f54.3891e.7d80e848@gitrepo.freebsd.org> The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=0e5caac7d543687d540fa83a7125726c7c9e6e58 commit 0e5caac7d543687d540fa83a7125726c7c9e6e58 Author: Konstantin Belousov AuthorDate: 2026-02-04 02:34:59 +0000 Commit: Konstantin Belousov CommitDate: 2026-02-25 17:19:36 +0000 ipsec_offload: add comment stating why ipsec_accel_sa_newkey_cb() returns 0 Reviewed by: slavash Tested by: Wafa Hamzah Sponsored by: NVidia networking MFC after: 1 week --- sys/netipsec/ipsec_offload.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/netipsec/ipsec_offload.c b/sys/netipsec/ipsec_offload.c index 23d36c395c43..e3a9d3247491 100644 --- a/sys/netipsec/ipsec_offload.c +++ b/sys/netipsec/ipsec_offload.c @@ -343,6 +343,13 @@ ipsec_accel_sa_newkey_cb(if_t ifp, void *arg) } } out: + /* + * Return 0, ignoring any errors from the SA installation. + * This function is a callback for if_foreach_sleep(), which + * stops iteration if one of the callbacks returns non-zero. + * We need to offer the SA to all interfaces that could + * offload it. + */ return (0); }