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

IB/mlx4: Fix reading SL field out of cqe->sl_vid

Commit f780a9f1

 ("mlx4_core: Add ethernet fields to CQE struct")
introduced a bug in how wc->sl is set in mlx4_ib_poll_one() -- since
cqe->sl_vid is a big-endian value, the shift must be done after
converting to host endianness.

This bug was found using sparse endianness checking.

Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 541ef5cb
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