net/mlx5: Fix masking of reserved bits in XRCD number
authorMajd Dibbiny <majd@mellanox.com>
Thu, 9 Jun 2016 21:07:29 +0000 (00:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Jun 2016 05:06:25 +0000 (22:06 -0700)
commit9cd3411c42c5d5ba55d6e745edfe7df53c1ffa41
treeb8a64e6c85f67c64f7d1d1849708853d7df83222
parent418f8399a8bedf376ec13eb01088f04a76ebdd6f
net/mlx5: Fix masking of reserved bits in XRCD number

Mask the reserved bits when reading the number of newly
created XRCD.

Fixes: e126ba97dba9 ('mlx5: Add driver for Mellanox Connect-IB adapters')
Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/qp.c