]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
RDMA/bnxt_re: Fix wrong check for CQ coalesc support
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Mon, 17 Nov 2025 06:13:06 +0000 (11:43 +0530)
committerLeon Romanovsky <leon@kernel.org>
Thu, 20 Nov 2025 15:30:52 +0000 (10:30 -0500)
Driver is not creating the debugfs hooks for CQ coalesc parameters
because of a wrong check. Fixed the condition check inside
bnxt_re_init_cq_coal_debugfs().

Fixes: cf2749079011 ("RDMA/bnxt_re: Add a debugfs entry for CQE coalescing tuning")
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Link: https://patch.msgid.link/20251117061306.1140588-1-kalesh-anakkur.purayil@broadcom.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/bnxt_re/debugfs.c

index d03f5bb0d890fdc337402ab502418c6568f6672d..88817c86ae243358dac413ed05a9999ae45549fd 100644 (file)
@@ -454,7 +454,7 @@ static void bnxt_re_init_cq_coal_debugfs(struct bnxt_re_dev *rdev)
        struct bnxt_re_dbg_cq_coal_params *dbg_cq_coal_params;
        int i;
 
-       if (_is_cq_coalescing_supported(rdev->dev_attr->dev_cap_flags2))
+       if (!_is_cq_coalescing_supported(rdev->dev_attr->dev_cap_flags2))
                return;
 
        dbg_cq_coal_params = kzalloc(sizeof(*dbg_cq_coal_params), GFP_KERNEL);