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
This commit is contained in:
Konstantin Belousov
2026-02-04 04:34:59 +02:00
parent 477f020c7b
commit 0e5caac7d5
+7
View File
@@ -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);
}