Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108397694
D42368.id129403.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
746 B
Referenced Files
None
Subscribers
None
D42368.id129403.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D42368: mlx5: fix deadlock in mlx5_fs_tree.c
Attached
Detach File
Event Timeline
Log In to Comment