net/mlx5: Use helper to get CQE opcode

Introduce and use a helper that extracts the opcode
from a CQE (completion queue entry) structure.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
This commit is contained in:
Tariq Toukan 2018-12-04 18:03:01 -08:00 • committed by Saeed Mahameed
commit 6254adeb1f
4 changed files with 12 additions and 7 deletions