]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
IB/mlx5: Report CapabilityMask2 in ib_query_port
authorMichael Guralnik <michaelgur@mellanox.com>
Sun, 9 Dec 2018 09:49:51 +0000 (11:49 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 11 Dec 2018 20:22:45 +0000 (13:22 -0700)
commit4106a758f791de11502cc6be89c971735cab360f
treee523c097e5d3023c5c38a067c918a16c03cbd1f9
parenta5a5d1993696419e7d5357fc3128e53d219d382e
IB/mlx5: Report CapabilityMask2 in ib_query_port

CapabilityMask2 exists when IB_PORT_CAP_MASK2_SUP is set in the original
capability mask. In such cases, query its value and report it in query
port.

Signed-off-by: Michael Guralnik <michaelgur@mellanox.com>
Reviewed-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/mad.c
drivers/infiniband/hw/mlx5/main.c
include/linux/mlx5/driver.h