IB/rdmavt: Add AH to rdmavt
Original patch is from Kamal Heib <kamalh@mellanox.com>. It has been split into three separate patches. This one for rdmavt, a follow on for qib, and one for hfi1. Create datastructure for address handle and implement the create/destroy/modify/query of address handle for rdmavt. Reviewed-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Kamal Heib <kamalh@mellanox.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
@@ -221,7 +221,8 @@ int rvt_register_device(struct rvt_dev_info *rdi)
|
||||
|
||||
if ((!rdi->driver_f.port_callback) ||
|
||||
(!rdi->driver_f.get_card_name) ||
|
||||
(!rdi->driver_f.get_pci_dev)) {
|
||||
(!rdi->driver_f.get_pci_dev) ||
|
||||
(!rdi->driver_f.check_ah)) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -252,6 +253,8 @@ int rvt_register_device(struct rvt_dev_info *rdi)
|
||||
CHECK_DRIVER_OVERRIDE(rdi, destroy_ah);
|
||||
CHECK_DRIVER_OVERRIDE(rdi, modify_ah);
|
||||
CHECK_DRIVER_OVERRIDE(rdi, query_ah);
|
||||
spin_lock_init(&rdi->n_ahs_lock);
|
||||
rdi->n_ahs_allocated = 0;
|
||||
|
||||
/* Shared Receive Queue */
|
||||
CHECK_DRIVER_OVERRIDE(rdi, create_srq);
|
||||
|
Reference in New Issue
Block a user