Page MenuHomeFreeBSD

D42368.id129403.diff
No OneTemporary

D42368.id129403.diff

diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls_rx.c b/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls_rx.c
--- a/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls_rx.c
+++ b/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls_rx.c
@@ -73,6 +73,10 @@
CTASSERT((MLX5_FLD_SZ_BYTES(sw_tls_rx_cntx, param) % 16) == 0);
+static int mlx5_ktls_rx_enable = 0;
+SYSCTL_INT(_hw_mlx5, OID_AUTO, ktls_rx_enable, CTLFLAG_RWTUN,
+ &mlx5_ktls_rx_enable, 0, "Enable hardware TLS receive");
+
static uint32_t
mlx5e_tls_rx_get_ch(struct mlx5e_priv *priv, uint32_t flowid, uint32_t flowtype)
{
@@ -664,6 +668,9 @@
uint32_t value;
int error;
+ if (mlx5_ktls_rx_enable == 0)
+ return (EOPNOTSUPP);
+
priv = if_getsoftc(ifp);
if (unlikely(priv->gone != 0 || priv->tls_rx.init == 0 ||

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 25, 11:27 AM (13 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16140124
Default Alt Text
D42368.id129403.diff (746 B)

Event Timeline