]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Add masking for a few queries on HCA caps
authorAya Levin <ayal@mellanox.com>
Tue, 22 Jan 2019 13:19:44 +0000 (15:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Jan 2019 05:48:26 +0000 (21:48 -0800)
commitdc60078a25cf9e2b32ddccbe1f4fd8de1392f2e0
tree4f6d168ca6e2d04128d8c9bc7e66be8495646af9
parent2e65678a96dfcb92d8c4470125fcfc522de33a8d
net/mlx4_core: Add masking for a few queries on HCA caps

Driver reads the query HCA capabilities without the corresponding masks.
Without the correct masks, the base addresses of the queues are
unaligned.  In addition some reserved bits were wrongly read.  Using the
correct masks, ensures alignment of the base addresses and allows future
firmware versions safe use of the reserved bits.

Fixes: bfa3f2377fe3 ("mlx4_core: Modify driver initialization flow to accommodate SRIOV for Ethernet")
Fixes: 46890974bc92 ("{NET, IB}/mlx4: Add device managed flow steering firmware API")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/fw.c