aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2026-02-04 02:34:59 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2026-02-25 17:19:36 +0000
commit0e5caac7d543687d540fa83a7125726c7c9e6e58 (patch)
tree622a9b9b35b5103de7153e96fa5ea2a47f26acfc
parent477f020c7b5453bcd3bff7f1491e9830027b271e (diff)
ipsec_offload: add comment stating why ipsec_accel_sa_newkey_cb() returns 0
Reviewed by: slavash Tested by: Wafa Hamzah <wafah@nvidia.com> Sponsored by: NVidia networking MFC after: 1 week
-rw-r--r--sys/netipsec/ipsec_offload.c7
1 files changed, 7 insertions, 0 deletions
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);
}