summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/efa/efa.h
diff options
context:
space:
mode:
authorYonatan Nachum <ynachum@amazon.com>2025-01-05 13:14:21 +0000
committerLeon Romanovsky <leon@kernel.org>2025-01-06 08:24:33 -0500
commit802a9f8792c4b4f81f36e90302067bf55ababed7 (patch)
tree9d1a749c89551d4257b3b0b0aa93a78eaec06134 /drivers/infiniband/hw/efa/efa.h
parentc84f0f4f49d81645f49c3269fdcc3b84ce61e795 (diff)
RDMA/efa: Align interrupt related fields to same type
There is a lot of implicit casting of interrupt related fields. Use u32 as common type since this is what the device use as type for max supported EQs and what IB core expects in num_comp_vectors field. Reviewed-by: Daniel Kranzdorf <dkkranzd@amazon.com> Reviewed-by: Michael Margolin <mrgolin@amazon.com> Signed-off-by: Yonatan Nachum <ynachum@amazon.com> Link: https://patch.msgid.link/20250105131421.29030-1-ynachum@amazon.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/efa/efa.h')
-rw-r--r--drivers/infiniband/hw/efa/efa.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/efa/efa.h b/drivers/infiniband/hw/efa/efa.h
index d7fc9d5eeefd..838182d0409c 100644
--- a/drivers/infiniband/hw/efa/efa.h
+++ b/drivers/infiniband/hw/efa/efa.h
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */
/*
- * Copyright 2018-2024 Amazon.com, Inc. or its affiliates. All rights reserved.
+ * Copyright 2018-2025 Amazon.com, Inc. or its affiliates. All rights reserved.
*/
#ifndef _EFA_H_
@@ -57,15 +57,15 @@ struct efa_dev {
u64 db_bar_addr;
u64 db_bar_len;
- unsigned int num_irq_vectors;
- int admin_msix_vector_idx;
+ u32 num_irq_vectors;
+ u32 admin_msix_vector_idx;
struct efa_irq admin_irq;
struct efa_stats stats;
/* Array of completion EQs */
struct efa_eq *eqs;
- unsigned int neqs;
+ u32 neqs;
/* Only stores CQs with interrupts enabled */
struct xarray cqs_xa;