From 36fdc42c6a4c828d334471438c4f852e4b5a25e2 Mon Sep 17 00:00:00 2001 From: Andrew Gallatin Date: Thu, 30 Jan 2025 20:07:06 -0500 Subject: [PATCH] mlx5en: Fix SIOCSIFCAPNV In 4cc5d081d8c23, a change was introduced that manipulated drv_ioctl_data->reqcap using IFCAP2 bits. This was noticed when creating a mixed lagg with mce0 and ixl0 caused the interfaces' txcsum caps to be disabled. Fixes: 4cc5d081d8c23 Reviewed by: glebius Sponsored by: Netflix MFC After: 7 days --- sys/dev/mlx5/mlx5_en/mlx5_en_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c index 3e7df834d08..c17da50c1a5 100644 --- a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c +++ b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c @@ -3557,12 +3557,12 @@ mlx5e_ioctl(if_t ifp, u_long command, caddr_t data) IFCAP_TXTLS6); } if (!mlx5e_is_tlsrx_capable(priv->mdev)) { - drv_ioctl_data->reqcap &= ~( + drv_ioctl_data->reqcap2 &= ~( IFCAP2_BIT(IFCAP2_RXTLS4) | IFCAP2_BIT(IFCAP2_RXTLS6)); } if (!mlx5e_is_ipsec_capable(priv->mdev)) { - drv_ioctl_data->reqcap &= + drv_ioctl_data->reqcap2 &= ~IFCAP2_BIT(IFCAP2_IPSEC_OFFLOAD); } if (!mlx5e_is_ratelimit_capable(priv->mdev)) {