]> www.infradead.org Git - users/hch/misc.git/commitdiff
net/mlx5: HWS, log the unsupported mask in definer
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Wed, 12 Mar 2025 11:49:54 +0000 (13:49 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Wed, 19 Mar 2025 17:17:15 +0000 (18:17 +0100)
If a user requested to match on an unsupported combination of fields,
print the unsupported combination in the error message.

Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Vlad Dogaru <vdogaru@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/1741780194-137519-4-git-send-email-tariqt@nvidia.com
Reviewed-by: Dawid Osuchowski <dawid.osuchowski@linux.intel.com>
Reviewed-by: Michal Kubiak <michal.kubiak@intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c

index c4851d5584b7546b1a1650a5b1e9e62945568f38..c8cc0c8115f5372184bb78ae879d2731e073080f 100644 (file)
@@ -500,7 +500,8 @@ hws_definer_check_match_flags(struct mlx5hws_definer_conv_data *cd)
        return 0;
 
 err_conflict:
-       mlx5hws_err(cd->ctx, "Invalid definer fields combination\n");
+       mlx5hws_err(cd->ctx, "Invalid definer fields combination: match_flags = 0x%08x\n",
+                   cd->match_flags);
        return -EINVAL;
 }