aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gallatin <gallatin@FreeBSD.org>2025-11-13 21:55:17 +0000
committerAndrew Gallatin <gallatin@FreeBSD.org>2025-11-13 21:57:10 +0000
commitc56a266434678faf961d737714d47291b88a3f9e (patch)
tree4f980eaad5450ce62432b6db59bd96280c939761
parent3a572775bfc3b1dc127e2db1a7c95ca776ff5245 (diff)
mlx5: Fix compilation error when not building with KERN_TLS
Reported by: np Fixes: 9349214a2815 mlx5: Preallocate ktls tags asynchronously Sponsored by: Netflix
-rw-r--r--sys/dev/mlx5/mlx5_en/mlx5_en_main.c2
1 files changed, 2 insertions, 0 deletions
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);