IB/core: Rename struct ib_ah_attr to rdma_ah_attr
This patch simply renames struct ib_ah_attr to rdma_ah_attr as these fields specify attributes that are not necessarily specific to IB. Reviewed-by: Ira Weiny <ira.weiny@intel.com> Reviewed-by: Don Hiatt <don.hiatt@intel.com> Reviewed-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com> Reviewed-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:

committed by
Doug Ledford

parent
eca7ddf965
commit
90898850ec
@@ -42,7 +42,7 @@ void ib_copy_qp_attr_to_user(struct ib_uverbs_qp_attr *dst,
|
||||
struct ib_qp_attr *src);
|
||||
|
||||
void ib_copy_ah_attr_to_user(struct ib_uverbs_ah_attr *dst,
|
||||
struct ib_ah_attr *src);
|
||||
struct rdma_ah_attr *src);
|
||||
|
||||
void ib_copy_path_rec_to_user(struct ib_user_path_rec *dst,
|
||||
struct ib_sa_path_rec *src);
|
||||
|
@@ -421,7 +421,7 @@ int ib_init_ah_from_mcmember(struct ib_device *device, u8 port_num,
|
||||
struct ib_sa_mcmember_rec *rec,
|
||||
struct net_device *ndev,
|
||||
enum ib_gid_type gid_type,
|
||||
struct ib_ah_attr *ah_attr);
|
||||
struct rdma_ah_attr *ah_attr);
|
||||
|
||||
/**
|
||||
* ib_init_ah_from_path - Initialize address handle attributes based on an SA
|
||||
@@ -429,7 +429,7 @@ int ib_init_ah_from_mcmember(struct ib_device *device, u8 port_num,
|
||||
*/
|
||||
int ib_init_ah_from_path(struct ib_device *device, u8 port_num,
|
||||
struct ib_sa_path_rec *rec,
|
||||
struct ib_ah_attr *ah_attr);
|
||||
struct rdma_ah_attr *ah_attr);
|
||||
|
||||
/**
|
||||
* ib_sa_pack_path - Conert a path record from struct ib_sa_path_rec
|
||||
|
@@ -840,7 +840,7 @@ struct ib_mr_status {
|
||||
*/
|
||||
__attribute_const__ enum ib_rate mult_to_ib_rate(int mult);
|
||||
|
||||
struct ib_ah_attr {
|
||||
struct rdma_ah_attr {
|
||||
struct ib_global_route grh;
|
||||
u16 dlid;
|
||||
u8 sl;
|
||||
@@ -1167,8 +1167,8 @@ struct ib_qp_attr {
|
||||
u32 dest_qp_num;
|
||||
int qp_access_flags;
|
||||
struct ib_qp_cap cap;
|
||||
struct ib_ah_attr ah_attr;
|
||||
struct ib_ah_attr alt_ah_attr;
|
||||
struct rdma_ah_attr ah_attr;
|
||||
struct rdma_ah_attr alt_ah_attr;
|
||||
u16 pkey_index;
|
||||
u16 alt_pkey_index;
|
||||
u8 en_sqd_async_notify;
|
||||
@@ -2032,12 +2032,12 @@ struct ib_device {
|
||||
struct ib_udata *udata);
|
||||
int (*dealloc_pd)(struct ib_pd *pd);
|
||||
struct ib_ah * (*create_ah)(struct ib_pd *pd,
|
||||
struct ib_ah_attr *ah_attr,
|
||||
struct rdma_ah_attr *ah_attr,
|
||||
struct ib_udata *udata);
|
||||
int (*modify_ah)(struct ib_ah *ah,
|
||||
struct ib_ah_attr *ah_attr);
|
||||
struct rdma_ah_attr *ah_attr);
|
||||
int (*query_ah)(struct ib_ah *ah,
|
||||
struct ib_ah_attr *ah_attr);
|
||||
struct rdma_ah_attr *ah_attr);
|
||||
int (*destroy_ah)(struct ib_ah *ah);
|
||||
struct ib_srq * (*create_srq)(struct ib_pd *pd,
|
||||
struct ib_srq_init_attr *srq_init_attr,
|
||||
@@ -2727,7 +2727,7 @@ void ib_dealloc_pd(struct ib_pd *pd);
|
||||
* The address handle is used to reference a local or global destination
|
||||
* in all UD QP post sends.
|
||||
*/
|
||||
struct ib_ah *ib_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr);
|
||||
struct ib_ah *ib_create_ah(struct ib_pd *pd, struct rdma_ah_attr *ah_attr);
|
||||
|
||||
/**
|
||||
* ib_get_gids_from_rdma_hdr - Get sgid and dgid from GRH or IPv4 header
|
||||
@@ -2760,7 +2760,7 @@ int ib_get_rdma_header_version(const union rdma_network_hdr *hdr);
|
||||
*/
|
||||
int ib_init_ah_from_wc(struct ib_device *device, u8 port_num,
|
||||
const struct ib_wc *wc, const struct ib_grh *grh,
|
||||
struct ib_ah_attr *ah_attr);
|
||||
struct rdma_ah_attr *ah_attr);
|
||||
|
||||
/**
|
||||
* ib_create_ah_from_wc - Creates an address handle associated with the
|
||||
@@ -2784,7 +2784,7 @@ struct ib_ah *ib_create_ah_from_wc(struct ib_pd *pd, const struct ib_wc *wc,
|
||||
* @ah_attr: The new address vector attributes to associate with the
|
||||
* address handle.
|
||||
*/
|
||||
int ib_modify_ah(struct ib_ah *ah, struct ib_ah_attr *ah_attr);
|
||||
int ib_modify_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr);
|
||||
|
||||
/**
|
||||
* ib_query_ah - Queries the address vector associated with an address
|
||||
@@ -2793,7 +2793,7 @@ int ib_modify_ah(struct ib_ah *ah, struct ib_ah_attr *ah_attr);
|
||||
* @ah_attr: The address vector attributes associated with the address
|
||||
* handle.
|
||||
*/
|
||||
int ib_query_ah(struct ib_ah *ah, struct ib_ah_attr *ah_attr);
|
||||
int ib_query_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr);
|
||||
|
||||
/**
|
||||
* ib_destroy_ah - Destroys an address handle.
|
||||
@@ -3464,5 +3464,5 @@ void ib_drain_sq(struct ib_qp *qp);
|
||||
void ib_drain_qp(struct ib_qp *qp);
|
||||
|
||||
int ib_resolve_eth_dmac(struct ib_device *device,
|
||||
struct ib_ah_attr *ah_attr);
|
||||
struct rdma_ah_attr *ah_attr);
|
||||
#endif /* IB_VERBS_H */
|
||||
|
@@ -106,7 +106,7 @@ struct rdma_conn_param {
|
||||
struct rdma_ud_param {
|
||||
const void *private_data;
|
||||
u8 private_data_len;
|
||||
struct ib_ah_attr ah_attr;
|
||||
struct rdma_ah_attr ah_attr;
|
||||
u32 qp_num;
|
||||
u32 qkey;
|
||||
};
|
||||
|
@@ -170,7 +170,7 @@ struct rvt_pd {
|
||||
/* Address handle */
|
||||
struct rvt_ah {
|
||||
struct ib_ah ibah;
|
||||
struct ib_ah_attr attr;
|
||||
struct rdma_ah_attr attr;
|
||||
atomic_t refcount;
|
||||
u8 vl;
|
||||
u8 log_pmtu;
|
||||
@@ -311,10 +311,10 @@ struct rvt_driver_provided {
|
||||
unsigned (*free_all_qps)(struct rvt_dev_info *rdi);
|
||||
|
||||
/* Driver specific AH validation */
|
||||
int (*check_ah)(struct ib_device *, struct ib_ah_attr *);
|
||||
int (*check_ah)(struct ib_device *, struct rdma_ah_attr *);
|
||||
|
||||
/* Inform the driver a new AH has been created */
|
||||
void (*notify_new_ah)(struct ib_device *, struct ib_ah_attr *,
|
||||
void (*notify_new_ah)(struct ib_device *, struct rdma_ah_attr *,
|
||||
struct rvt_ah *);
|
||||
|
||||
/* Let the driver pick the next queue pair number*/
|
||||
@@ -506,7 +506,7 @@ struct rvt_dev_info *rvt_alloc_device(size_t size, int nports);
|
||||
void rvt_dealloc_device(struct rvt_dev_info *rdi);
|
||||
int rvt_register_device(struct rvt_dev_info *rvd);
|
||||
void rvt_unregister_device(struct rvt_dev_info *rvd);
|
||||
int rvt_check_ah(struct ib_device *ibdev, struct ib_ah_attr *ah_attr);
|
||||
int rvt_check_ah(struct ib_device *ibdev, struct rdma_ah_attr *ah_attr);
|
||||
int rvt_init_port(struct rvt_dev_info *rdi, struct rvt_ibport *port,
|
||||
int port_index, u16 *pkey_table);
|
||||
int rvt_fast_reg_mr(struct rvt_qp *qp, struct ib_mr *ibmr, u32 key,
|
||||
|
@@ -269,8 +269,8 @@ struct rvt_qp {
|
||||
struct ib_qp ibqp;
|
||||
void *priv; /* Driver private data */
|
||||
/* read mostly fields above and below */
|
||||
struct ib_ah_attr remote_ah_attr;
|
||||
struct ib_ah_attr alt_ah_attr;
|
||||
struct rdma_ah_attr remote_ah_attr;
|
||||
struct rdma_ah_attr alt_ah_attr;
|
||||
struct rvt_qp __rcu *next; /* link list for QPN hash table */
|
||||
struct rvt_swqe *s_wq; /* send work queue */
|
||||
struct rvt_mmap_info *ip;
|
||||
|
Reference in New Issue
Block a user