net/mlx5: Take only bit 24-26 of wqe.pftype_wq for page fault type
authorHuy Nguyen <huyn@mellanox.com>
Tue, 11 Sep 2018 19:58:22 +0000 (14:58 -0500)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 11 Oct 2018 01:26:16 +0000 (18:26 -0700)
commita48bc513159d4767f9988f0d857b2b0c38a4d614
treef02f183ec867840d8b4074242f057d090c4ce29c
parentfd7e848077c1a466b9187537adce16658f7cb94b
net/mlx5: Take only bit 24-26 of wqe.pftype_wq for page fault type

The HW spec defines only bits 24-26 of pftype_wq as the page fault type,
use the required mask to ensure that.

Fixes: d9aaed838765 ("{net,IB}/mlx5: Refactor page fault handling")
Signed-off-by: Huy Nguyen <huyn@mellanox.com>
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eq.c