From: Saeed Mahameed <saeedm@mellanox.com>
To: Leon Romanovsky <leonro@mellanox.com>, saeedm@mellanox.com
Cc: netdev@vger.kernel.org, linux-rdma@vger.kernel.org,
Jason Gunthorpe <jgg@mellanox.com>,
Daniel Jurgens <danielj@mellanox.com>
Subject: [PATCH mlx5-next 1/4] net/mlx5: When fetching CQEs return CQE instead of void pointer
Date: Tue, 4 Dec 2018 18:03:00 -0800 [thread overview]
Message-ID: <20181205020303.16318-2-saeedm@mellanox.com> (raw)
In-Reply-To: <20181205020303.16318-1-saeedm@mellanox.com>
From: Daniel Jurgens <danielj@mellanox.com>
The function is only used to retrieve CQEs, use the proper type as the
return value.
Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
---
drivers/net/ethernet/mellanox/mlx5/core/wq.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/wq.h b/drivers/net/ethernet/mellanox/mlx5/core/wq.h
index b1293d153a58..9bc2184a46bc 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/wq.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/wq.h
@@ -177,7 +177,7 @@ static inline u32 mlx5_cqwq_get_ci(struct mlx5_cqwq *wq)
return mlx5_cqwq_ctr2ix(wq, wq->cc);
}
-static inline void *mlx5_cqwq_get_wqe(struct mlx5_cqwq *wq, u32 ix)
+static inline struct mlx5_cqe64 *mlx5_cqwq_get_wqe(struct mlx5_cqwq *wq, u32 ix)
{
return mlx5_frag_buf_get_wqe(&wq->fbc, ix);
}
--
2.19.2
next prev parent reply other threads:[~2018-12-05 2:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-05 2:02 [PATCH mlx5-next 0/4] mlx5 core CQE API and misc updates Saeed Mahameed
2018-12-05 2:03 ` Saeed Mahameed [this message]
2018-12-05 2:03 ` [PATCH mlx5-next 2/4] net/mlx5: Use helper to get CQE opcode Saeed Mahameed
2018-12-05 4:55 ` Cong Wang
2018-12-05 22:37 ` Saeed Mahameed
2018-12-05 2:03 ` [PATCH mlx5-next 3/4] IB/mlx5: " Saeed Mahameed
2018-12-05 8:09 ` Leon Romanovsky
2018-12-05 22:27 ` Saeed Mahameed
2018-12-05 2:03 ` [PATCH mlx5-next 4/4] net/mlx5: Move flow counters data structures from flow steering header Saeed Mahameed
2018-12-05 5:04 ` Cong Wang
2018-12-05 22:26 ` Saeed Mahameed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181205020303.16318-2-saeedm@mellanox.com \
--to=saeedm@mellanox.com \
--cc=danielj@mellanox.com \
--cc=jgg@mellanox.com \
--cc=leonro@mellanox.com \
--cc=linux-rdma@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox