The branch main has been updated by gallatin: URL: https://cgit.FreeBSD.org/src/commit/?id=c56a266434678faf961d737714d47291b88a3f9e
commit c56a266434678faf961d737714d47291b88a3f9e Author: Andrew Gallatin <[email protected]> AuthorDate: 2025-11-13 21:55:17 +0000 Commit: Andrew Gallatin <[email protected]> CommitDate: 2025-11-13 21:57:10 +0000 mlx5: Fix compilation error when not building with KERN_TLS Reported by: np Fixes: 9349214a2815 mlx5: Preallocate ktls tags asynchronously Sponsored by: Netflix --- sys/dev/mlx5/mlx5_en/mlx5_en_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c index ee9c53bb0a60..4658bebb7845 100644 --- a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c +++ b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c @@ -3335,8 +3335,10 @@ mlx5e_open_locked(if_t ifp) mlx5e_update_carrier(priv); +#ifdef KERN_TLS if ((if_getcapenable(ifp) & (IFCAP_TXTLS4 | IFCAP_TXTLS6)) != 0) mlx5e_tls_prealloc_tags(priv); +#endif return (0);
