]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5: fs, Fix inverted cap check in tx flow table root disconnect
authorShay Drory <shayd@nvidia.com>
Tue, 27 Jan 2026 08:52:38 +0000 (10:52 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 29 Jan 2026 04:36:05 +0000 (20:36 -0800)
commit2610a3d65691a1301ab10c92ff6ebab0bedf9199
treed128e7b74aa0bdb17a6ce8bf9b61d670d77bdf2c
parent2aa1545ba8d4801fba5be83a404e28014b80196a
net/mlx5: fs, Fix inverted cap check in tx flow table root disconnect

The capability check for reset_root_to_default was inverted, causing
the function to return -EOPNOTSUPP when the capability IS supported,
rather than when it is NOT supported.

Fix the capability check condition.

Fixes: 3c9c34c32bc6 ("net/mlx5: fs, Command to control TX flow table root")
Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/1769503961-124173-2-git-send-email-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c