net/mlx5: Query and cache PCAM, MCAM registers on initialization
authorGal Pressman <galp@mellanox.com>
Thu, 8 Dec 2016 14:03:31 +0000 (16:03 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 19 Jan 2017 21:19:59 +0000 (23:19 +0200)
commit71862561f3a62015a11de16d1c306481e8415c08
tree857e6e11eca5f2b4beccfde120212b519daf22a8
parentc835ad64683bd3e2d1b31ed2cb1ff4366932edb1
net/mlx5: Query and cache PCAM, MCAM registers on initialization

On load_one, we now cache our capabilities registers internally, similar
to QUERY_HCA_CAP. Capabilities can later be queried using macros
introduced in this patch.

Signed-off-by: Gal Pressman <galp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fw.c
include/linux/mlx5/device.h
include/linux/mlx5/driver.h