IB/Verbs: Implement new callback query_protocol()
Add new callback query_protocol() and implement for each HW. Mapping List: node-type link-layer transport protocol nes RNIC ETH IWARP IWARP amso1100 RNIC ETH IWARP IWARP cxgb3 RNIC ETH IWARP IWARP cxgb4 RNIC ETH IWARP IWARP usnic USNIC_UDP ETH USNIC_UDP USNIC_UDP ocrdma IB_CA ETH IB IBOE mlx4 IB_CA IB/ETH IB IB/IBOE mlx5 IB_CA IB IB IB ehca IB_CA IB IB IB ipath IB_CA IB IB IB mthca IB_CA IB IB IB qib IB_CA IB IB IB Signed-off-by: Michael Wang <yun.wang@profitbricks.com> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Tested-by: Ira Weiny <ira.weiny@intel.com> Reviewed-by: Sean Hefty <sean.hefty@intel.com> Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Tested-by: Doug Ledford <dledford@redhat.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:

committed by
Doug Ledford

parent
e26081808e
commit
6b90a6d66b
@@ -179,6 +179,12 @@ static int mthca_query_port(struct ib_device *ibdev,
|
||||
return err;
|
||||
}
|
||||
|
||||
static enum rdma_protocol_type
|
||||
mthca_query_protocol(struct ib_device *device, u8 port_num)
|
||||
{
|
||||
return RDMA_PROTOCOL_IB;
|
||||
}
|
||||
|
||||
static int mthca_modify_device(struct ib_device *ibdev,
|
||||
int mask,
|
||||
struct ib_device_modify *props)
|
||||
@@ -1281,6 +1287,7 @@ int mthca_register_device(struct mthca_dev *dev)
|
||||
dev->ib_dev.dma_device = &dev->pdev->dev;
|
||||
dev->ib_dev.query_device = mthca_query_device;
|
||||
dev->ib_dev.query_port = mthca_query_port;
|
||||
dev->ib_dev.query_protocol = mthca_query_protocol;
|
||||
dev->ib_dev.modify_device = mthca_modify_device;
|
||||
dev->ib_dev.modify_port = mthca_modify_port;
|
||||
dev->ib_dev.query_pkey = mthca_query_pkey;
|
||||
|
Reference in New Issue
Block a user