linux_dsm_epyc7002/drivers/infiniband/hw
Or Gerlitz c4550c63b3 IB: Query ports via the core instead of direct into the driver
Change the drivers to call ib_query_port in their get port
immutable handler instead of their own query port handler.

Doing this required to set the core cap flags of this device
before the ib_query_port call is made, since the IB core might
need these caps to serve the port query.

Drivers are ensured by the IB core that the port attributes passed
to the port query verb implementation are zero, and hence we
removed the zeroing from the drivers.

This patch doesn't add any new functionality.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Acked-by: Adit Ranadive <aditr@vmware.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-02-14 11:41:22 -05:00
..
cxgb3 IB: Query ports via the core instead of direct into the driver 2017-02-14 11:41:22 -05:00
cxgb4 IB: Query ports via the core instead of direct into the driver 2017-02-14 11:41:22 -05:00
hfi1 IB: Query ports via the core instead of direct into the driver 2017-02-14 11:41:22 -05:00
hns IB: Query ports via the core instead of direct into the driver 2017-02-14 11:41:22 -05:00
i40iw IB: Query ports via the core instead of direct into the driver 2017-02-14 11:41:22 -05:00
mlx4 IB: Query ports via the core instead of direct into the driver 2017-02-14 11:41:22 -05:00
mlx5 IB: Query ports via the core instead of direct into the driver 2017-02-14 11:41:22 -05:00
mthca IB: Query ports via the core instead of direct into the driver 2017-02-14 11:41:22 -05:00
nes IB: Query ports via the core instead of direct into the driver 2017-02-14 11:41:22 -05:00
ocrdma IB: Query ports via the core instead of direct into the driver 2017-02-14 11:41:22 -05:00
qedr IB: Query ports via the core instead of direct into the driver 2017-02-14 11:41:22 -05:00
qib IB: Query ports via the core instead of direct into the driver 2017-02-14 11:41:22 -05:00
usnic IB: Query ports via the core instead of direct into the driver 2017-02-14 11:41:22 -05:00
vmw_pvrdma IB: Query ports via the core instead of direct into the driver 2017-02-14 11:41:22 -05:00
Makefile IB: Add vmw_pvrdma driver 2016-12-14 14:55:10 -05:00