RDMA/bnxt_re: Fix wrong check for CQ coalesc support

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: cf27490790 ("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>
This commit is contained in:
Kalesh AP 2025-11-17 11:43:06 +05:30 committed by Leon Romanovsky
parent d056bc45b6
commit fecaa0c74f
1 changed files with 1 additions and 1 deletions

View 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; struct bnxt_re_dbg_cq_coal_params *dbg_cq_coal_params;
int i; 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; return;
dbg_cq_coal_params = kzalloc(sizeof(*dbg_cq_coal_params), GFP_KERNEL); dbg_cq_coal_params = kzalloc(sizeof(*dbg_cq_coal_params), GFP_KERNEL);