Skip to content
Commit 1c69fc2a authored by Roland Dreier's avatar Roland Dreier
Browse files

IB/mlx4: Consolidate code to get an entry from a struct mlx4_buf



We use struct mlx4_buf for kernel QP, CQ and SRQ buffers, and the code
to look up an entry is duplicated in get_cqe_from_buf() and the QP and
SRQ versions of get_wqe().  Factor this out into mlx4_buf_offset().

This will also make it easier to switch over to using vmap() for buffers.

Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 21511abd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment