Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dasaratharaman Chandramouli and committed by
Doug Ledford
90898850 eca7ddf9

+155 -144
+1 -1
drivers/infiniband/core/cm.c
··· 228 228 struct cm_av { 229 229 struct cm_port *port; 230 230 union ib_gid dgid; 231 - struct ib_ah_attr ah_attr; 231 + struct rdma_ah_attr ah_attr; 232 232 u16 pkey_index; 233 233 u8 timeout; 234 234 };
+1 -1
drivers/infiniband/core/mad.c
··· 1833 1833 const struct ib_mad_send_wr_private *wr, 1834 1834 const struct ib_mad_recv_wc *rwc ) 1835 1835 { 1836 - struct ib_ah_attr attr; 1836 + struct rdma_ah_attr attr; 1837 1837 u8 send_resp, rcv_resp; 1838 1838 union ib_gid sgid; 1839 1839 struct ib_device *device = mad_agent_priv->agent.device;
+1 -1
drivers/infiniband/core/mad_rmpp.c
··· 852 852 struct ib_mad_agent_private *agent = mad_send_wr->mad_agent_priv; 853 853 struct ib_mad_hdr *mad_hdr = mad_send_wr->send_buf.mad; 854 854 struct mad_rmpp_recv *rmpp_recv; 855 - struct ib_ah_attr ah_attr; 855 + struct rdma_ah_attr ah_attr; 856 856 unsigned long flags; 857 857 int newwin = 1; 858 858
+1 -1
drivers/infiniband/core/multicast.c
··· 720 720 struct ib_sa_mcmember_rec *rec, 721 721 struct net_device *ndev, 722 722 enum ib_gid_type gid_type, 723 - struct ib_ah_attr *ah_attr) 723 + struct rdma_ah_attr *ah_attr) 724 724 { 725 725 int ret; 726 726 u16 gid_index;
+3 -2
drivers/infiniband/core/sa_query.c
··· 1099 1099 } 1100 1100 1101 1101 int ib_init_ah_from_path(struct ib_device *device, u8 port_num, 1102 - struct ib_sa_path_rec *rec, struct ib_ah_attr *ah_attr) 1102 + struct ib_sa_path_rec *rec, 1103 + struct rdma_ah_attr *ah_attr) 1103 1104 { 1104 1105 int ret; 1105 1106 u16 gid_index; ··· 2012 2011 container_of(work, struct ib_sa_port, update_task); 2013 2012 struct ib_sa_sm_ah *new_ah; 2014 2013 struct ib_port_attr port_attr; 2015 - struct ib_ah_attr ah_attr; 2014 + struct rdma_ah_attr ah_attr; 2016 2015 2017 2016 if (ib_query_port(port->agent->device, port->port_num, &port_attr)) { 2018 2017 pr_warn("Couldn't query port\n");
+2 -2
drivers/infiniband/core/user_mad.c
··· 235 235 packet->mad.hdr.pkey_index = mad_recv_wc->wc->pkey_index; 236 236 packet->mad.hdr.grh_present = !!(mad_recv_wc->wc->wc_flags & IB_WC_GRH); 237 237 if (packet->mad.hdr.grh_present) { 238 - struct ib_ah_attr ah_attr; 238 + struct rdma_ah_attr ah_attr; 239 239 240 240 ib_init_ah_from_wc(agent->device, agent->port_num, 241 241 mad_recv_wc->wc, mad_recv_wc->recv_buf.grh, ··· 449 449 struct ib_umad_file *file = filp->private_data; 450 450 struct ib_umad_packet *packet; 451 451 struct ib_mad_agent *agent; 452 - struct ib_ah_attr ah_attr; 452 + struct rdma_ah_attr ah_attr; 453 453 struct ib_ah *ah; 454 454 struct ib_rmpp_mad *rmpp_mad; 455 455 __be64 *tid;
+1 -1
drivers/infiniband/core/uverbs_cmd.c
··· 2519 2519 struct ib_uobject *uobj; 2520 2520 struct ib_pd *pd; 2521 2521 struct ib_ah *ah; 2522 - struct ib_ah_attr attr; 2522 + struct rdma_ah_attr attr; 2523 2523 int ret; 2524 2524 struct ib_udata udata; 2525 2525
+1 -1
drivers/infiniband/core/uverbs_marshall.c
··· 34 34 #include <rdma/ib_marshall.h> 35 35 36 36 void ib_copy_ah_attr_to_user(struct ib_uverbs_ah_attr *dst, 37 - struct ib_ah_attr *src) 37 + struct rdma_ah_attr *src) 38 38 { 39 39 memset(&dst->grh.reserved, 0, sizeof(dst->grh.reserved)); 40 40 dst->dlid = src->dlid;
+6 -6
drivers/infiniband/core/verbs.c
··· 311 311 312 312 /* Address handles */ 313 313 314 - struct ib_ah *ib_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr) 314 + struct ib_ah *ib_create_ah(struct ib_pd *pd, struct rdma_ah_attr *ah_attr) 315 315 { 316 316 struct ib_ah *ah; 317 317 ··· 452 452 453 453 int ib_init_ah_from_wc(struct ib_device *device, u8 port_num, 454 454 const struct ib_wc *wc, const struct ib_grh *grh, 455 - struct ib_ah_attr *ah_attr) 455 + struct rdma_ah_attr *ah_attr) 456 456 { 457 457 u32 flow_class; 458 458 u16 gid_index; ··· 560 560 struct ib_ah *ib_create_ah_from_wc(struct ib_pd *pd, const struct ib_wc *wc, 561 561 const struct ib_grh *grh, u8 port_num) 562 562 { 563 - struct ib_ah_attr ah_attr; 563 + struct rdma_ah_attr ah_attr; 564 564 int ret; 565 565 566 566 ret = ib_init_ah_from_wc(pd->device, port_num, wc, grh, &ah_attr); ··· 571 571 } 572 572 EXPORT_SYMBOL(ib_create_ah_from_wc); 573 573 574 - int ib_modify_ah(struct ib_ah *ah, struct ib_ah_attr *ah_attr) 574 + int ib_modify_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr) 575 575 { 576 576 return ah->device->modify_ah ? 577 577 ah->device->modify_ah(ah, ah_attr) : ··· 579 579 } 580 580 EXPORT_SYMBOL(ib_modify_ah); 581 581 582 - int ib_query_ah(struct ib_ah *ah, struct ib_ah_attr *ah_attr) 582 + int ib_query_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr) 583 583 { 584 584 return ah->device->query_ah ? 585 585 ah->device->query_ah(ah, ah_attr) : ··· 1201 1201 EXPORT_SYMBOL(ib_modify_qp_is_ok); 1202 1202 1203 1203 int ib_resolve_eth_dmac(struct ib_device *device, 1204 - struct ib_ah_attr *ah_attr) 1204 + struct rdma_ah_attr *ah_attr) 1205 1205 { 1206 1206 int ret = 0; 1207 1207
+3 -3
drivers/infiniband/hw/bnxt_re/ib_verbs.c
··· 524 524 } 525 525 526 526 struct ib_ah *bnxt_re_create_ah(struct ib_pd *ib_pd, 527 - struct ib_ah_attr *ah_attr, 527 + struct rdma_ah_attr *ah_attr, 528 528 struct ib_udata *udata) 529 529 { 530 530 struct bnxt_re_pd *pd = container_of(ib_pd, struct bnxt_re_pd, ib_pd); ··· 634 634 return ERR_PTR(rc); 635 635 } 636 636 637 - int bnxt_re_modify_ah(struct ib_ah *ib_ah, struct ib_ah_attr *ah_attr) 637 + int bnxt_re_modify_ah(struct ib_ah *ib_ah, struct rdma_ah_attr *ah_attr) 638 638 { 639 639 return 0; 640 640 } 641 641 642 - int bnxt_re_query_ah(struct ib_ah *ib_ah, struct ib_ah_attr *ah_attr) 642 + int bnxt_re_query_ah(struct ib_ah *ib_ah, struct rdma_ah_attr *ah_attr) 643 643 { 644 644 struct bnxt_re_ah *ah = container_of(ib_ah, struct bnxt_re_ah, ib_ah); 645 645
+3 -3
drivers/infiniband/hw/bnxt_re/ib_verbs.h
··· 150 150 struct ib_udata *udata); 151 151 int bnxt_re_dealloc_pd(struct ib_pd *pd); 152 152 struct ib_ah *bnxt_re_create_ah(struct ib_pd *pd, 153 - struct ib_ah_attr *ah_attr, 153 + struct rdma_ah_attr *ah_attr, 154 154 struct ib_udata *udata); 155 - int bnxt_re_modify_ah(struct ib_ah *ah, struct ib_ah_attr *ah_attr); 156 - int bnxt_re_query_ah(struct ib_ah *ah, struct ib_ah_attr *ah_attr); 155 + int bnxt_re_modify_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr); 156 + int bnxt_re_query_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr); 157 157 int bnxt_re_destroy_ah(struct ib_ah *ah); 158 158 struct ib_qp *bnxt_re_create_qp(struct ib_pd *pd, 159 159 struct ib_qp_init_attr *qp_init_attr,
+1 -1
drivers/infiniband/hw/cxgb3/iwch_provider.c
··· 62 62 #include "common.h" 63 63 64 64 static struct ib_ah *iwch_ah_create(struct ib_pd *pd, 65 - struct ib_ah_attr *ah_attr, 65 + struct rdma_ah_attr *ah_attr, 66 66 struct ib_udata *udata) 67 67 { 68 68 return ERR_PTR(-ENOSYS);
+1 -1
drivers/infiniband/hw/cxgb4/provider.c
··· 59 59 MODULE_PARM_DESC(fastreg_support, "Advertise fastreg support (default=1)"); 60 60 61 61 static struct ib_ah *c4iw_ah_create(struct ib_pd *pd, 62 - struct ib_ah_attr *ah_attr, 62 + struct rdma_ah_attr *ah_attr, 63 63 struct ib_udata *udata) 64 64 65 65 {
+2 -2
drivers/infiniband/hw/hfi1/ud.c
··· 68 68 struct hfi1_ibport *ibp = to_iport(sqp->ibqp.device, sqp->port_num); 69 69 struct hfi1_pportdata *ppd; 70 70 struct rvt_qp *qp; 71 - struct ib_ah_attr *ah_attr; 71 + struct rdma_ah_attr *ah_attr; 72 72 unsigned long flags; 73 73 struct rvt_sge_state ssge; 74 74 struct rvt_sge *sge; ··· 272 272 { 273 273 struct hfi1_qp_priv *priv = qp->priv; 274 274 struct ib_other_headers *ohdr; 275 - struct ib_ah_attr *ah_attr; 275 + struct rdma_ah_attr *ah_attr; 276 276 struct hfi1_pportdata *ppd; 277 277 struct hfi1_ibport *ibp; 278 278 struct rvt_swqe *wqe;
+4 -4
drivers/infiniband/hw/hfi1/verbs.c
··· 1459 1459 /* 1460 1460 * convert ah port,sl to sc 1461 1461 */ 1462 - u8 ah_to_sc(struct ib_device *ibdev, struct ib_ah_attr *ah) 1462 + u8 ah_to_sc(struct ib_device *ibdev, struct rdma_ah_attr *ah) 1463 1463 { 1464 1464 struct hfi1_ibport *ibp = to_iport(ibdev, ah->port_num); 1465 1465 1466 1466 return ibp->sl_to_sc[ah->sl]; 1467 1467 } 1468 1468 1469 - static int hfi1_check_ah(struct ib_device *ibdev, struct ib_ah_attr *ah_attr) 1469 + static int hfi1_check_ah(struct ib_device *ibdev, struct rdma_ah_attr *ah_attr) 1470 1470 { 1471 1471 struct hfi1_ibport *ibp; 1472 1472 struct hfi1_pportdata *ppd; ··· 1484 1484 } 1485 1485 1486 1486 static void hfi1_notify_new_ah(struct ib_device *ibdev, 1487 - struct ib_ah_attr *ah_attr, 1487 + struct rdma_ah_attr *ah_attr, 1488 1488 struct rvt_ah *ah) 1489 1489 { 1490 1490 struct hfi1_ibport *ibp; ··· 1508 1508 1509 1509 struct ib_ah *hfi1_create_qp0_ah(struct hfi1_ibport *ibp, u16 dlid) 1510 1510 { 1511 - struct ib_ah_attr attr; 1511 + struct rdma_ah_attr attr; 1512 1512 struct ib_ah *ah = ERR_PTR(-EINVAL); 1513 1513 struct rvt_qp *qp0; 1514 1514
+1 -1
drivers/infiniband/hw/hfi1/verbs.h
··· 308 308 u32 rcv_flags, 309 309 struct rvt_qp *qp); 310 310 311 - u8 ah_to_sc(struct ib_device *ibdev, struct ib_ah_attr *ah_attr); 311 + u8 ah_to_sc(struct ib_device *ibdev, struct rdma_ah_attr *ah_attr); 312 312 313 313 struct ib_ah *hfi1_create_qp0_ah(struct hfi1_ibport *ibp, u16 dlid); 314 314
+3 -2
drivers/infiniband/hw/hns/hns_roce_ah.c
··· 39 39 #define HNS_ROCE_VLAN_SL_BIT_MASK 7 40 40 #define HNS_ROCE_VLAN_SL_SHIFT 13 41 41 42 - struct ib_ah *hns_roce_create_ah(struct ib_pd *ibpd, struct ib_ah_attr *ah_attr, 42 + struct ib_ah *hns_roce_create_ah(struct ib_pd *ibpd, 43 + struct rdma_ah_attr *ah_attr, 43 44 struct ib_udata *udata) 44 45 { 45 46 struct hns_roce_dev *hr_dev = to_hr_dev(ibpd->device); ··· 99 98 return &ah->ibah; 100 99 } 101 100 102 - int hns_roce_query_ah(struct ib_ah *ibah, struct ib_ah_attr *ah_attr) 101 + int hns_roce_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr) 103 102 { 104 103 struct hns_roce_ah *ah = to_hr_ah(ibah); 105 104
+3 -2
drivers/infiniband/hw/hns/hns_roce_device.h
··· 687 687 unsigned long obj, int cnt, 688 688 int rr); 689 689 690 - struct ib_ah *hns_roce_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr, 690 + struct ib_ah *hns_roce_create_ah(struct ib_pd *pd, 691 + struct rdma_ah_attr *ah_attr, 691 692 struct ib_udata *udata); 692 - int hns_roce_query_ah(struct ib_ah *ibah, struct ib_ah_attr *ah_attr); 693 + int hns_roce_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr); 693 694 int hns_roce_destroy_ah(struct ib_ah *ah); 694 695 695 696 struct ib_pd *hns_roce_alloc_pd(struct ib_device *ib_dev,
+1 -1
drivers/infiniband/hw/i40iw/i40iw_verbs.c
··· 2696 2696 * @ah_attr: address handle attributes 2697 2697 */ 2698 2698 static struct ib_ah *i40iw_create_ah(struct ib_pd *ibpd, 2699 - struct ib_ah_attr *attr, 2699 + struct rdma_ah_attr *attr, 2700 2700 struct ib_udata *udata) 2701 2701 2702 2702 {
+6 -4
drivers/infiniband/hw/mlx4/ah.c
··· 40 40 41 41 #include "mlx4_ib.h" 42 42 43 - static struct ib_ah *create_ib_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr, 43 + static struct ib_ah *create_ib_ah(struct ib_pd *pd, 44 + struct rdma_ah_attr *ah_attr, 44 45 struct mlx4_ib_ah *ah) 45 46 { 46 47 struct mlx4_dev *dev = to_mdev(pd->device)->dev; ··· 70 69 return &ah->ibah; 71 70 } 72 71 73 - static struct ib_ah *create_iboe_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr, 72 + static struct ib_ah *create_iboe_ah(struct ib_pd *pd, 73 + struct rdma_ah_attr *ah_attr, 74 74 struct mlx4_ib_ah *ah) 75 75 { 76 76 struct mlx4_ib_dev *ibdev = to_mdev(pd->device); ··· 131 129 return &ah->ibah; 132 130 } 133 131 134 - struct ib_ah *mlx4_ib_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr, 132 + struct ib_ah *mlx4_ib_create_ah(struct ib_pd *pd, struct rdma_ah_attr *ah_attr, 135 133 struct ib_udata *udata) 136 134 137 135 { ··· 165 163 return create_ib_ah(pd, ah_attr, ah); /* never fails */ 166 164 } 167 165 168 - int mlx4_ib_query_ah(struct ib_ah *ibah, struct ib_ah_attr *ah_attr) 166 + int mlx4_ib_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr) 169 167 { 170 168 struct mlx4_ib_ah *ah = to_mah(ibah); 171 169 enum rdma_link_layer ll;
+5 -5
drivers/infiniband/hw/mlx4/mad.c
··· 189 189 static void update_sm_ah(struct mlx4_ib_dev *dev, u8 port_num, u16 lid, u8 sl) 190 190 { 191 191 struct ib_ah *new_ah; 192 - struct ib_ah_attr ah_attr; 192 + struct rdma_ah_attr ah_attr; 193 193 unsigned long flags; 194 194 195 195 if (!dev->send_agent[port_num - 1][0]) ··· 509 509 struct mlx4_ib_demux_pv_ctx *tun_ctx; 510 510 struct mlx4_ib_demux_pv_qp *tun_qp; 511 511 struct mlx4_rcv_tunnel_mad *tun_mad; 512 - struct ib_ah_attr attr; 512 + struct rdma_ah_attr attr; 513 513 struct ib_ah *ah; 514 514 struct ib_qp *src_qp = NULL; 515 515 unsigned tun_tx_ix = 0; ··· 1352 1352 1353 1353 int mlx4_ib_send_to_wire(struct mlx4_ib_dev *dev, int slave, u8 port, 1354 1354 enum ib_qp_type dest_qpt, u16 pkey_index, 1355 - u32 remote_qpn, u32 qkey, struct ib_ah_attr *attr, 1355 + u32 remote_qpn, u32 qkey, struct rdma_ah_attr *attr, 1356 1356 u8 *s_mac, u16 vlan_id, struct ib_mad *mad) 1357 1357 { 1358 1358 struct ib_sge list; ··· 1467 1467 } 1468 1468 1469 1469 static void fill_in_real_sgid_index(struct mlx4_ib_dev *dev, int slave, int port, 1470 - struct ib_ah_attr *ah_attr) 1470 + struct rdma_ah_attr *ah_attr) 1471 1471 { 1472 1472 if (rdma_port_get_link_layer(&dev->ib_dev, port) == IB_LINK_LAYER_INFINIBAND) 1473 1473 ah_attr->grh.sgid_index = slave; ··· 1482 1482 int wr_ix = wc->wr_id & (MLX4_NUM_TUNNEL_BUFS - 1); 1483 1483 struct mlx4_tunnel_mad *tunnel = tun_qp->ring[wr_ix].addr; 1484 1484 struct mlx4_ib_ah ah; 1485 - struct ib_ah_attr ah_attr; 1485 + struct rdma_ah_attr ah_attr; 1486 1486 u8 *slave_id; 1487 1487 int slave; 1488 1488 int port;
+2 -2
drivers/infiniband/hw/mlx4/mcg.c
··· 209 209 static int send_mad_to_wire(struct mlx4_ib_demux_ctx *ctx, struct ib_mad *mad) 210 210 { 211 211 struct mlx4_ib_dev *dev = ctx->dev; 212 - struct ib_ah_attr ah_attr; 212 + struct rdma_ah_attr ah_attr; 213 213 unsigned long flags; 214 214 215 215 spin_lock_irqsave(&dev->sm_lock, flags); ··· 231 231 struct mlx4_ib_dev *dev = ctx->dev; 232 232 struct ib_mad_agent *agent = dev->send_agent[ctx->port - 1][1]; 233 233 struct ib_wc wc; 234 - struct ib_ah_attr ah_attr; 234 + struct rdma_ah_attr ah_attr; 235 235 236 236 /* Our agent might not yet be registered when mads start to arrive */ 237 237 if (!agent)
+3 -3
drivers/infiniband/hw/mlx4/mlx4_ib.h
··· 742 742 void __mlx4_ib_cq_clean(struct mlx4_ib_cq *cq, u32 qpn, struct mlx4_ib_srq *srq); 743 743 void mlx4_ib_cq_clean(struct mlx4_ib_cq *cq, u32 qpn, struct mlx4_ib_srq *srq); 744 744 745 - struct ib_ah *mlx4_ib_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr, 745 + struct ib_ah *mlx4_ib_create_ah(struct ib_pd *pd, struct rdma_ah_attr *ah_attr, 746 746 struct ib_udata *udata); 747 - int mlx4_ib_query_ah(struct ib_ah *ibah, struct ib_ah_attr *ah_attr); 747 + int mlx4_ib_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr); 748 748 int mlx4_ib_destroy_ah(struct ib_ah *ah); 749 749 750 750 struct ib_srq *mlx4_ib_create_srq(struct ib_pd *pd, ··· 833 833 834 834 int mlx4_ib_send_to_wire(struct mlx4_ib_dev *dev, int slave, u8 port, 835 835 enum ib_qp_type dest_qpt, u16 pkey_index, u32 remote_qpn, 836 - u32 qkey, struct ib_ah_attr *attr, u8 *s_mac, 836 + u32 qkey, struct rdma_ah_attr *attr, u8 *s_mac, 837 837 u16 vlan_id, struct ib_mad *mad); 838 838 839 839 __be64 mlx4_ib_get_new_demux_tid(struct mlx4_ib_demux_ctx *ctx);
+5 -3
drivers/infiniband/hw/mlx4/qp.c
··· 1383 1383 path->sched_queue = (path->sched_queue & 0xbf) | ((port - 1) << 6); 1384 1384 } 1385 1385 1386 - static int _mlx4_set_path(struct mlx4_ib_dev *dev, const struct ib_ah_attr *ah, 1386 + static int _mlx4_set_path(struct mlx4_ib_dev *dev, 1387 + const struct rdma_ah_attr *ah, 1387 1388 u64 smac, u16 vlan_tag, struct mlx4_qp_path *path, 1388 1389 struct mlx4_roce_smac_vlan_info *smac_info, u8 port) 1389 1390 { ··· 3395 3394 return ib_flags; 3396 3395 } 3397 3396 3398 - static void to_ib_ah_attr(struct mlx4_ib_dev *ibdev, struct ib_ah_attr *ib_ah_attr, 3399 - struct mlx4_qp_path *path) 3397 + static void to_ib_ah_attr(struct mlx4_ib_dev *ibdev, 3398 + struct rdma_ah_attr *ib_ah_attr, 3399 + struct mlx4_qp_path *path) 3400 3400 { 3401 3401 struct mlx4_dev *dev = ibdev->dev; 3402 3402 int is_eth;
+3 -3
drivers/infiniband/hw/mlx5/ah.c
··· 34 34 35 35 static struct ib_ah *create_ib_ah(struct mlx5_ib_dev *dev, 36 36 struct mlx5_ib_ah *ah, 37 - struct ib_ah_attr *ah_attr, 37 + struct rdma_ah_attr *ah_attr, 38 38 enum rdma_link_layer ll) 39 39 { 40 40 if (ah_attr->ah_flags & IB_AH_GRH) { ··· 64 64 return &ah->ibah; 65 65 } 66 66 67 - struct ib_ah *mlx5_ib_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr, 67 + struct ib_ah *mlx5_ib_create_ah(struct ib_pd *pd, struct rdma_ah_attr *ah_attr, 68 68 struct ib_udata *udata) 69 69 70 70 { ··· 105 105 return create_ib_ah(dev, ah, ah_attr, ll); /* never fails */ 106 106 } 107 107 108 - int mlx5_ib_query_ah(struct ib_ah *ibah, struct ib_ah_attr *ah_attr) 108 + int mlx5_ib_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr) 109 109 { 110 110 struct mlx5_ib_ah *ah = to_mah(ibah); 111 111 u32 tmp;
+2 -2
drivers/infiniband/hw/mlx5/mlx5_ib.h
··· 740 740 int mlx5_MAD_IFC(struct mlx5_ib_dev *dev, int ignore_mkey, int ignore_bkey, 741 741 u8 port, const struct ib_wc *in_wc, const struct ib_grh *in_grh, 742 742 const void *in_mad, void *response_mad); 743 - struct ib_ah *mlx5_ib_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr, 743 + struct ib_ah *mlx5_ib_create_ah(struct ib_pd *pd, struct rdma_ah_attr *ah_attr, 744 744 struct ib_udata *udata); 745 - int mlx5_ib_query_ah(struct ib_ah *ibah, struct ib_ah_attr *ah_attr); 745 + int mlx5_ib_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr); 746 746 int mlx5_ib_destroy_ah(struct ib_ah *ah); 747 747 struct ib_srq *mlx5_ib_create_srq(struct ib_pd *pd, 748 748 struct ib_srq_init_attr *init_attr,
+4 -3
drivers/infiniband/hw/mlx5/qp.c
··· 2206 2206 } 2207 2207 2208 2208 static int mlx5_set_path(struct mlx5_ib_dev *dev, struct mlx5_ib_qp *qp, 2209 - const struct ib_ah_attr *ah, 2209 + const struct rdma_ah_attr *ah, 2210 2210 struct mlx5_qp_path *path, u8 port, int attr_mask, 2211 2211 u32 path_flags, const struct ib_qp_attr *attr, 2212 2212 bool alt) ··· 4249 4249 return ib_flags; 4250 4250 } 4251 4251 4252 - static void to_ib_ah_attr(struct mlx5_ib_dev *ibdev, struct ib_ah_attr *ib_ah_attr, 4253 - struct mlx5_qp_path *path) 4252 + static void to_ib_ah_attr(struct mlx5_ib_dev *ibdev, 4253 + struct rdma_ah_attr *ib_ah_attr, 4254 + struct mlx5_qp_path *path) 4254 4255 { 4255 4256 struct mlx5_core_dev *dev = ibdev->mdev; 4256 4257
+2 -2
drivers/infiniband/hw/mthca/mthca_av.c
··· 152 152 153 153 int mthca_create_ah(struct mthca_dev *dev, 154 154 struct mthca_pd *pd, 155 - struct ib_ah_attr *ah_attr, 155 + struct rdma_ah_attr *ah_attr, 156 156 struct mthca_ah *ah) 157 157 { 158 158 u32 index = -1; ··· 287 287 return 0; 288 288 } 289 289 290 - int mthca_ah_query(struct ib_ah *ibah, struct ib_ah_attr *attr) 290 + int mthca_ah_query(struct ib_ah *ibah, struct rdma_ah_attr *attr) 291 291 { 292 292 struct mthca_ah *ah = to_mah(ibah); 293 293 struct mthca_dev *dev = to_mdev(ibah->device);
+2 -2
drivers/infiniband/hw/mthca/mthca_dev.h
··· 560 560 void mthca_free_qp(struct mthca_dev *dev, struct mthca_qp *qp); 561 561 int mthca_create_ah(struct mthca_dev *dev, 562 562 struct mthca_pd *pd, 563 - struct ib_ah_attr *ah_attr, 563 + struct rdma_ah_attr *ah_attr, 564 564 struct mthca_ah *ah); 565 565 int mthca_destroy_ah(struct mthca_dev *dev, struct mthca_ah *ah); 566 566 int mthca_read_ah(struct mthca_dev *dev, struct mthca_ah *ah, 567 567 struct ib_ud_header *header); 568 - int mthca_ah_query(struct ib_ah *ibah, struct ib_ah_attr *attr); 568 + int mthca_ah_query(struct ib_ah *ibah, struct rdma_ah_attr *attr); 569 569 int mthca_ah_grh_present(struct mthca_ah *ah); 570 570 u8 mthca_get_rate(struct mthca_dev *dev, int static_rate, u8 port); 571 571 enum ib_rate mthca_rate_to_ib(struct mthca_dev *dev, u8 mthca_rate, u8 port);
+1 -1
drivers/infiniband/hw/mthca/mthca_mad.c
··· 75 75 u8 port_num, u16 lid, u8 sl) 76 76 { 77 77 struct ib_ah *new_ah; 78 - struct ib_ah_attr ah_attr; 78 + struct rdma_ah_attr ah_attr; 79 79 unsigned long flags; 80 80 81 81 if (!dev->send_agent[port_num - 1][0])
+1 -1
drivers/infiniband/hw/mthca/mthca_provider.c
··· 410 410 } 411 411 412 412 static struct ib_ah *mthca_ah_create(struct ib_pd *pd, 413 - struct ib_ah_attr *ah_attr, 413 + struct rdma_ah_attr *ah_attr, 414 414 struct ib_udata *udata) 415 415 416 416 {
+4 -3
drivers/infiniband/hw/mthca/mthca_qp.c
··· 393 393 return ib_flags; 394 394 } 395 395 396 - static void to_ib_ah_attr(struct mthca_dev *dev, struct ib_ah_attr *ib_ah_attr, 397 - struct mthca_qp_path *path) 396 + static void to_ib_ah_attr(struct mthca_dev *dev, 397 + struct rdma_ah_attr *ib_ah_attr, 398 + struct mthca_qp_path *path) 398 399 { 399 400 memset(ib_ah_attr, 0, sizeof *ib_ah_attr); 400 401 ib_ah_attr->port_num = (be32_to_cpu(path->port_pkey) >> 24) & 0x3; ··· 513 512 return err; 514 513 } 515 514 516 - static int mthca_path_set(struct mthca_dev *dev, const struct ib_ah_attr *ah, 515 + static int mthca_path_set(struct mthca_dev *dev, const struct rdma_ah_attr *ah, 517 516 struct mthca_qp_path *path, u8 port) 518 517 { 519 518 path->g_mylmc = ah->src_path_bits & 0x7f;
+2 -1
drivers/infiniband/hw/nes/nes_verbs.c
··· 761 761 /** 762 762 * nes_create_ah 763 763 */ 764 - static struct ib_ah *nes_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr, 764 + static struct ib_ah *nes_create_ah(struct ib_pd *pd, 765 + struct rdma_ah_attr *ah_attr, 765 766 struct ib_udata *udata) 766 767 { 767 768 return ERR_PTR(-ENOSYS);
+1 -1
drivers/infiniband/hw/ocrdma/ocrdma.h
··· 527 527 } 528 528 529 529 static inline int ocrdma_resolve_dmac(struct ocrdma_dev *dev, 530 - struct ib_ah_attr *ah_attr, u8 *mac_addr) 530 + struct rdma_ah_attr *ah_attr, u8 *mac_addr) 531 531 { 532 532 struct in6_addr in6; 533 533
+4 -4
drivers/infiniband/hw/ocrdma/ocrdma_ah.c
··· 71 71 } 72 72 73 73 static inline int set_av_attr(struct ocrdma_dev *dev, struct ocrdma_ah *ah, 74 - struct ib_ah_attr *attr, union ib_gid *sgid, 74 + struct rdma_ah_attr *attr, union ib_gid *sgid, 75 75 int pdid, bool *isvlan, u16 vlan_tag) 76 76 { 77 77 int status; ··· 154 154 return status; 155 155 } 156 156 157 - struct ib_ah *ocrdma_create_ah(struct ib_pd *ibpd, struct ib_ah_attr *attr, 157 + struct ib_ah *ocrdma_create_ah(struct ib_pd *ibpd, struct rdma_ah_attr *attr, 158 158 struct ib_udata *udata) 159 159 { 160 160 u32 *ahid_addr; ··· 248 248 return 0; 249 249 } 250 250 251 - int ocrdma_query_ah(struct ib_ah *ibah, struct ib_ah_attr *attr) 251 + int ocrdma_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *attr) 252 252 { 253 253 struct ocrdma_ah *ah = get_ocrdma_ah(ibah); 254 254 struct ocrdma_av *av = ah->av; ··· 271 271 return 0; 272 272 } 273 273 274 - int ocrdma_modify_ah(struct ib_ah *ibah, struct ib_ah_attr *attr) 274 + int ocrdma_modify_ah(struct ib_ah *ibah, struct rdma_ah_attr *attr) 275 275 { 276 276 /* modify_ah is unsupported */ 277 277 return -ENOSYS;
+3 -3
drivers/infiniband/hw/ocrdma/ocrdma_ah.h
··· 51 51 OCRDMA_AH_L3_TYPE_SHIFT = 0x1D /* 29 bits */ 52 52 }; 53 53 54 - struct ib_ah *ocrdma_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr, 54 + struct ib_ah *ocrdma_create_ah(struct ib_pd *pd, struct rdma_ah_attr *ah_attr, 55 55 struct ib_udata *udata); 56 56 int ocrdma_destroy_ah(struct ib_ah *ah); 57 - int ocrdma_query_ah(struct ib_ah *ah, struct ib_ah_attr *ah_attr); 58 - int ocrdma_modify_ah(struct ib_ah *ah, struct ib_ah_attr *ah_attr); 57 + int ocrdma_query_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr); 58 + int ocrdma_modify_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr); 59 59 60 60 int ocrdma_process_mad(struct ib_device *, 61 61 int process_mad_flags,
+1 -1
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
··· 2499 2499 int attr_mask) 2500 2500 { 2501 2501 int status; 2502 - struct ib_ah_attr *ah_attr = &attrs->ah_attr; 2502 + struct rdma_ah_attr *ah_attr = &attrs->ah_attr; 2503 2503 union ib_gid sgid, zgid; 2504 2504 struct ib_gid_attr sgid_attr; 2505 2505 u32 vlan_id = 0xFFFF;
+2 -2
drivers/infiniband/hw/qedr/qedr.h
··· 392 392 393 393 struct qedr_ah { 394 394 struct ib_ah ibah; 395 - struct ib_ah_attr attr; 395 + struct rdma_ah_attr attr; 396 396 }; 397 397 398 398 enum qedr_mr_type { ··· 446 446 } 447 447 448 448 static inline int qedr_get_dmac(struct qedr_dev *dev, 449 - struct ib_ah_attr *ah_attr, u8 *mac_addr) 449 + struct rdma_ah_attr *ah_attr, u8 *mac_addr) 450 450 { 451 451 union ib_gid zero_sgid = { { 0 } }; 452 452 struct in6_addr in6;
+1 -1
drivers/infiniband/hw/qedr/qedr_cm.c
··· 243 243 int *roce_mode) 244 244 { 245 245 bool has_vlan = false, has_grh_ipv6 = true; 246 - struct ib_ah_attr *ah_attr = &get_qedr_ah(ud_wr(swr)->ah)->attr; 246 + struct rdma_ah_attr *ah_attr = &get_qedr_ah(ud_wr(swr)->ah)->attr; 247 247 struct ib_global_route *grh = &ah_attr->grh; 248 248 union ib_gid sgid; 249 249 int send_size = 0;
+1 -1
drivers/infiniband/hw/qedr/verbs.c
··· 2112 2112 return rc; 2113 2113 } 2114 2114 2115 - struct ib_ah *qedr_create_ah(struct ib_pd *ibpd, struct ib_ah_attr *attr, 2115 + struct ib_ah *qedr_create_ah(struct ib_pd *ibpd, struct rdma_ah_attr *attr, 2116 2116 struct ib_udata *udata) 2117 2117 { 2118 2118 struct qedr_ah *ah;
+1 -1
drivers/infiniband/hw/qedr/verbs.h
··· 70 70 int qp_attr_mask, struct ib_qp_init_attr *); 71 71 int qedr_destroy_qp(struct ib_qp *ibqp); 72 72 73 - struct ib_ah *qedr_create_ah(struct ib_pd *ibpd, struct ib_ah_attr *attr, 73 + struct ib_ah *qedr_create_ah(struct ib_pd *ibpd, struct rdma_ah_attr *attr, 74 74 struct ib_udata *udata); 75 75 int qedr_destroy_ah(struct ib_ah *ibah); 76 76
+2 -2
drivers/infiniband/hw/qib/qib_ud.c
··· 54 54 struct qib_devdata *dd = ppd->dd; 55 55 struct rvt_dev_info *rdi = &dd->verbs_dev.rdi; 56 56 struct rvt_qp *qp; 57 - struct ib_ah_attr *ah_attr; 57 + struct rdma_ah_attr *ah_attr; 58 58 unsigned long flags; 59 59 struct rvt_sge_state ssge; 60 60 struct rvt_sge *sge; ··· 246 246 { 247 247 struct qib_qp_priv *priv = qp->priv; 248 248 struct ib_other_headers *ohdr; 249 - struct ib_ah_attr *ah_attr; 249 + struct rdma_ah_attr *ah_attr; 250 250 struct qib_pportdata *ppd; 251 251 struct qib_ibport *ibp; 252 252 struct rvt_swqe *wqe;
+3 -3
drivers/infiniband/hw/qib/qib_verbs.c
··· 1336 1336 return 0; 1337 1337 } 1338 1338 1339 - int qib_check_ah(struct ib_device *ibdev, struct ib_ah_attr *ah_attr) 1339 + int qib_check_ah(struct ib_device *ibdev, struct rdma_ah_attr *ah_attr) 1340 1340 { 1341 1341 if (ah_attr->sl > 15) 1342 1342 return -EINVAL; ··· 1345 1345 } 1346 1346 1347 1347 static void qib_notify_new_ah(struct ib_device *ibdev, 1348 - struct ib_ah_attr *ah_attr, 1348 + struct rdma_ah_attr *ah_attr, 1349 1349 struct rvt_ah *ah) 1350 1350 { 1351 1351 struct qib_ibport *ibp; ··· 1364 1364 1365 1365 struct ib_ah *qib_create_qp0_ah(struct qib_ibport *ibp, u16 dlid) 1366 1366 { 1367 - struct ib_ah_attr attr; 1367 + struct rdma_ah_attr attr; 1368 1368 struct ib_ah *ah = ERR_PTR(-EINVAL); 1369 1369 struct rvt_qp *qp0; 1370 1370
+1 -1
drivers/infiniband/hw/qib/qib_verbs.h
··· 310 310 void qib_rc_rcv(struct qib_ctxtdata *rcd, struct ib_header *hdr, 311 311 int has_grh, void *data, u32 tlen, struct rvt_qp *qp); 312 312 313 - int qib_check_ah(struct ib_device *ibdev, struct ib_ah_attr *ah_attr); 313 + int qib_check_ah(struct ib_device *ibdev, struct rdma_ah_attr *ah_attr); 314 314 315 315 int qib_check_send_wqe(struct rvt_qp *qp, struct rvt_swqe *wqe); 316 316
+1 -1
drivers/infiniband/hw/usnic/usnic_ib_verbs.c
··· 740 740 741 741 /* In ib callbacks section - Start of stub funcs */ 742 742 struct ib_ah *usnic_ib_create_ah(struct ib_pd *pd, 743 - struct ib_ah_attr *ah_attr, 743 + struct rdma_ah_attr *ah_attr, 744 744 struct ib_udata *udata) 745 745 746 746 {
+1 -1
drivers/infiniband/hw/usnic/usnic_ib_verbs.h
··· 75 75 int usnic_ib_mmap(struct ib_ucontext *context, 76 76 struct vm_area_struct *vma); 77 77 struct ib_ah *usnic_ib_create_ah(struct ib_pd *pd, 78 - struct ib_ah_attr *ah_attr, 78 + struct rdma_ah_attr *ah_attr, 79 79 struct ib_udata *udata); 80 80 81 81 int usnic_ib_destroy_ah(struct ib_ah *ah);
+2 -2
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h
··· 440 440 const struct pvrdma_global_route *src); 441 441 void ib_global_route_to_pvrdma(struct pvrdma_global_route *dst, 442 442 const struct ib_global_route *src); 443 - void pvrdma_ah_attr_to_ib(struct ib_ah_attr *dst, 443 + void pvrdma_ah_attr_to_ib(struct rdma_ah_attr *dst, 444 444 const struct pvrdma_ah_attr *src); 445 445 void ib_ah_attr_to_pvrdma(struct pvrdma_ah_attr *dst, 446 - const struct ib_ah_attr *src); 446 + const struct rdma_ah_attr *src); 447 447 448 448 int pvrdma_uar_table_init(struct pvrdma_dev *dev); 449 449 void pvrdma_uar_table_cleanup(struct pvrdma_dev *dev);
+2 -2
drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c
··· 277 277 dst->traffic_class = src->traffic_class; 278 278 } 279 279 280 - void pvrdma_ah_attr_to_ib(struct ib_ah_attr *dst, 280 + void pvrdma_ah_attr_to_ib(struct rdma_ah_attr *dst, 281 281 const struct pvrdma_ah_attr *src) 282 282 { 283 283 pvrdma_global_route_to_ib(&dst->grh, &src->grh); ··· 291 291 } 292 292 293 293 void ib_ah_attr_to_pvrdma(struct pvrdma_ah_attr *dst, 294 - const struct ib_ah_attr *src) 294 + const struct rdma_ah_attr *src) 295 295 { 296 296 ib_global_route_to_pvrdma(&dst->grh, &src->grh); 297 297 dst->dlid = src->dlid;
+1 -1
drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c
··· 520 520 * 521 521 * @return: the ib_ah pointer on success, otherwise errno. 522 522 */ 523 - struct ib_ah *pvrdma_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr, 523 + struct ib_ah *pvrdma_create_ah(struct ib_pd *pd, struct rdma_ah_attr *ah_attr, 524 524 struct ib_udata *udata) 525 525 { 526 526 struct pvrdma_dev *dev = to_vdev(pd->device);
+1 -1
drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h
··· 417 417 int pvrdma_destroy_cq(struct ib_cq *cq); 418 418 int pvrdma_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc); 419 419 int pvrdma_req_notify_cq(struct ib_cq *cq, enum ib_cq_notify_flags flags); 420 - struct ib_ah *pvrdma_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr, 420 + struct ib_ah *pvrdma_create_ah(struct ib_pd *pd, struct rdma_ah_attr *ah_attr, 421 421 struct ib_udata *udata); 422 422 int pvrdma_destroy_ah(struct ib_ah *ah); 423 423 struct ib_qp *pvrdma_create_qp(struct ib_pd *pd,
+4 -4
drivers/infiniband/sw/rdmavt/ah.c
··· 60 60 * Return: 0 on success 61 61 */ 62 62 int rvt_check_ah(struct ib_device *ibdev, 63 - struct ib_ah_attr *ah_attr) 63 + struct rdma_ah_attr *ah_attr) 64 64 { 65 65 int err; 66 66 struct ib_port_attr port_attr; ··· 104 104 * Return: newly allocated ah 105 105 */ 106 106 struct ib_ah *rvt_create_ah(struct ib_pd *pd, 107 - struct ib_ah_attr *ah_attr) 107 + struct rdma_ah_attr *ah_attr) 108 108 { 109 109 struct rvt_ah *ah; 110 110 struct rvt_dev_info *dev = ib_to_rvt(pd->device); ··· 167 167 * 168 168 * Return: 0 on success 169 169 */ 170 - int rvt_modify_ah(struct ib_ah *ibah, struct ib_ah_attr *ah_attr) 170 + int rvt_modify_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr) 171 171 { 172 172 struct rvt_ah *ah = ibah_to_rvtah(ibah); 173 173 ··· 186 186 * 187 187 * Return: always 0 188 188 */ 189 - int rvt_query_ah(struct ib_ah *ibah, struct ib_ah_attr *ah_attr) 189 + int rvt_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr) 190 190 { 191 191 struct rvt_ah *ah = ibah_to_rvtah(ibah); 192 192
+3 -3
drivers/infiniband/sw/rdmavt/ah.h
··· 51 51 #include <rdma/rdma_vt.h> 52 52 53 53 struct ib_ah *rvt_create_ah(struct ib_pd *pd, 54 - struct ib_ah_attr *ah_attr); 54 + struct rdma_ah_attr *ah_attr); 55 55 int rvt_destroy_ah(struct ib_ah *ibah); 56 - int rvt_modify_ah(struct ib_ah *ibah, struct ib_ah_attr *ah_attr); 57 - int rvt_query_ah(struct ib_ah *ibah, struct ib_ah_attr *ah_attr); 56 + int rvt_modify_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr); 57 + int rvt_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr); 58 58 59 59 #endif /* DEF_RVTAH_H */
+4 -4
drivers/infiniband/sw/rxe/rxe_av.c
··· 34 34 #include "rxe.h" 35 35 #include "rxe_loc.h" 36 36 37 - int rxe_av_chk_attr(struct rxe_dev *rxe, struct ib_ah_attr *attr) 37 + int rxe_av_chk_attr(struct rxe_dev *rxe, struct rdma_ah_attr *attr) 38 38 { 39 39 struct rxe_port *port; 40 40 ··· 57 57 } 58 58 59 59 int rxe_av_from_attr(struct rxe_dev *rxe, u8 port_num, 60 - struct rxe_av *av, struct ib_ah_attr *attr) 60 + struct rxe_av *av, struct rdma_ah_attr *attr) 61 61 { 62 62 memset(av, 0, sizeof(*av)); 63 63 memcpy(&av->grh, &attr->grh, sizeof(attr->grh)); ··· 66 66 } 67 67 68 68 int rxe_av_to_attr(struct rxe_dev *rxe, struct rxe_av *av, 69 - struct ib_ah_attr *attr) 69 + struct rdma_ah_attr *attr) 70 70 { 71 71 memcpy(&attr->grh, &av->grh, sizeof(av->grh)); 72 72 attr->ah_flags = IB_AH_GRH; ··· 76 76 77 77 int rxe_av_fill_ip_info(struct rxe_dev *rxe, 78 78 struct rxe_av *av, 79 - struct ib_ah_attr *attr, 79 + struct rdma_ah_attr *attr, 80 80 struct ib_gid_attr *sgid_attr, 81 81 union ib_gid *sgid) 82 82 {
+4 -4
drivers/infiniband/sw/rxe/rxe_loc.h
··· 36 36 37 37 /* rxe_av.c */ 38 38 39 - int rxe_av_chk_attr(struct rxe_dev *rxe, struct ib_ah_attr *attr); 39 + int rxe_av_chk_attr(struct rxe_dev *rxe, struct rdma_ah_attr *attr); 40 40 41 41 int rxe_av_from_attr(struct rxe_dev *rxe, u8 port_num, 42 - struct rxe_av *av, struct ib_ah_attr *attr); 42 + struct rxe_av *av, struct rdma_ah_attr *attr); 43 43 44 44 int rxe_av_to_attr(struct rxe_dev *rxe, struct rxe_av *av, 45 - struct ib_ah_attr *attr); 45 + struct rdma_ah_attr *attr); 46 46 47 47 int rxe_av_fill_ip_info(struct rxe_dev *rxe, 48 48 struct rxe_av *av, 49 - struct ib_ah_attr *attr, 49 + struct rdma_ah_attr *attr, 50 50 struct ib_gid_attr *sgid_attr, 51 51 union ib_gid *sgid); 52 52
+5 -4
drivers/infiniband/sw/rxe/rxe_verbs.c
··· 297 297 return 0; 298 298 } 299 299 300 - static int rxe_init_av(struct rxe_dev *rxe, struct ib_ah_attr *attr, 300 + static int rxe_init_av(struct rxe_dev *rxe, struct rdma_ah_attr *attr, 301 301 struct rxe_av *av) 302 302 { 303 303 int err; ··· 321 321 return err; 322 322 } 323 323 324 - static struct ib_ah *rxe_create_ah(struct ib_pd *ibpd, struct ib_ah_attr *attr, 324 + static struct ib_ah *rxe_create_ah(struct ib_pd *ibpd, 325 + struct rdma_ah_attr *attr, 325 326 struct ib_udata *udata) 326 327 327 328 { ··· 357 356 return ERR_PTR(err); 358 357 } 359 358 360 - static int rxe_modify_ah(struct ib_ah *ibah, struct ib_ah_attr *attr) 359 + static int rxe_modify_ah(struct ib_ah *ibah, struct rdma_ah_attr *attr) 361 360 { 362 361 int err; 363 362 struct rxe_dev *rxe = to_rdev(ibah->device); ··· 374 373 return 0; 375 374 } 376 375 377 - static int rxe_query_ah(struct ib_ah *ibah, struct ib_ah_attr *attr) 376 + static int rxe_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *attr) 378 377 { 379 378 struct rxe_dev *rxe = to_rdev(ibah->device); 380 379 struct rxe_ah *ah = to_rah(ibah);
+1 -1
drivers/infiniband/ulp/ipoib/ipoib.h
··· 479 479 void ipoib_send_comp_handler(struct ib_cq *cq, void *dev_ptr); 480 480 481 481 struct ipoib_ah *ipoib_create_ah(struct net_device *dev, 482 - struct ib_pd *pd, struct ib_ah_attr *attr); 482 + struct ib_pd *pd, struct rdma_ah_attr *attr); 483 483 void ipoib_free_ah(struct kref *kref); 484 484 static inline void ipoib_put_ah(struct ipoib_ah *ah) 485 485 {
+1 -1
drivers/infiniband/ulp/ipoib/ipoib_ib.c
··· 52 52 #endif 53 53 54 54 struct ipoib_ah *ipoib_create_ah(struct net_device *dev, 55 - struct ib_pd *pd, struct ib_ah_attr *attr) 55 + struct ib_pd *pd, struct rdma_ah_attr *attr) 56 56 { 57 57 struct ipoib_ah *ah; 58 58 struct ib_ah *vah;
+1 -1
drivers/infiniband/ulp/ipoib/ipoib_main.c
··· 739 739 skb_queue_head_init(&skqueue); 740 740 741 741 if (!status) { 742 - struct ib_ah_attr av; 742 + struct rdma_ah_attr av; 743 743 744 744 if (!ib_init_ah_from_path(priv->ca, priv->port, pathrec, &av)) 745 745 ah = ipoib_create_ah(dev, priv->pd, &av);
+1 -1
drivers/infiniband/ulp/ipoib/ipoib_multicast.c
··· 274 274 } 275 275 276 276 { 277 - struct ib_ah_attr av = { 277 + struct rdma_ah_attr av = { 278 278 .dlid = be16_to_cpu(mcast->mcmember.mlid), 279 279 .port_num = priv->port, 280 280 .sl = mcast->mcmember.sl,
+1 -1
drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c
··· 730 730 struct ib_device *ibp; 731 731 struct opa_vnic_vema_mad_trap *trap_mad; 732 732 struct opa_class_port_info *class; 733 - struct ib_ah_attr ah_attr; 733 + struct rdma_ah_attr ah_attr; 734 734 struct ib_ah *ah; 735 735 struct opa_veswport_trap *trap; 736 736 u32 trap_lid;
+1 -1
include/rdma/ib_marshall.h
··· 42 42 struct ib_qp_attr *src); 43 43 44 44 void ib_copy_ah_attr_to_user(struct ib_uverbs_ah_attr *dst, 45 - struct ib_ah_attr *src); 45 + struct rdma_ah_attr *src); 46 46 47 47 void ib_copy_path_rec_to_user(struct ib_user_path_rec *dst, 48 48 struct ib_sa_path_rec *src);
+2 -2
include/rdma/ib_sa.h
··· 421 421 struct ib_sa_mcmember_rec *rec, 422 422 struct net_device *ndev, 423 423 enum ib_gid_type gid_type, 424 - struct ib_ah_attr *ah_attr); 424 + struct rdma_ah_attr *ah_attr); 425 425 426 426 /** 427 427 * ib_init_ah_from_path - Initialize address handle attributes based on an SA ··· 429 429 */ 430 430 int ib_init_ah_from_path(struct ib_device *device, u8 port_num, 431 431 struct ib_sa_path_rec *rec, 432 - struct ib_ah_attr *ah_attr); 432 + struct rdma_ah_attr *ah_attr); 433 433 434 434 /** 435 435 * ib_sa_pack_path - Conert a path record from struct ib_sa_path_rec
+11 -11
include/rdma/ib_verbs.h
··· 840 840 */ 841 841 __attribute_const__ enum ib_rate mult_to_ib_rate(int mult); 842 842 843 - struct ib_ah_attr { 843 + struct rdma_ah_attr { 844 844 struct ib_global_route grh; 845 845 u16 dlid; 846 846 u8 sl; ··· 1167 1167 u32 dest_qp_num; 1168 1168 int qp_access_flags; 1169 1169 struct ib_qp_cap cap; 1170 - struct ib_ah_attr ah_attr; 1171 - struct ib_ah_attr alt_ah_attr; 1170 + struct rdma_ah_attr ah_attr; 1171 + struct rdma_ah_attr alt_ah_attr; 1172 1172 u16 pkey_index; 1173 1173 u16 alt_pkey_index; 1174 1174 u8 en_sqd_async_notify; ··· 2032 2032 struct ib_udata *udata); 2033 2033 int (*dealloc_pd)(struct ib_pd *pd); 2034 2034 struct ib_ah * (*create_ah)(struct ib_pd *pd, 2035 - struct ib_ah_attr *ah_attr, 2035 + struct rdma_ah_attr *ah_attr, 2036 2036 struct ib_udata *udata); 2037 2037 int (*modify_ah)(struct ib_ah *ah, 2038 - struct ib_ah_attr *ah_attr); 2038 + struct rdma_ah_attr *ah_attr); 2039 2039 int (*query_ah)(struct ib_ah *ah, 2040 - struct ib_ah_attr *ah_attr); 2040 + struct rdma_ah_attr *ah_attr); 2041 2041 int (*destroy_ah)(struct ib_ah *ah); 2042 2042 struct ib_srq * (*create_srq)(struct ib_pd *pd, 2043 2043 struct ib_srq_init_attr *srq_init_attr, ··· 2727 2727 * The address handle is used to reference a local or global destination 2728 2728 * in all UD QP post sends. 2729 2729 */ 2730 - struct ib_ah *ib_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr); 2730 + struct ib_ah *ib_create_ah(struct ib_pd *pd, struct rdma_ah_attr *ah_attr); 2731 2731 2732 2732 /** 2733 2733 * ib_get_gids_from_rdma_hdr - Get sgid and dgid from GRH or IPv4 header ··· 2760 2760 */ 2761 2761 int ib_init_ah_from_wc(struct ib_device *device, u8 port_num, 2762 2762 const struct ib_wc *wc, const struct ib_grh *grh, 2763 - struct ib_ah_attr *ah_attr); 2763 + struct rdma_ah_attr *ah_attr); 2764 2764 2765 2765 /** 2766 2766 * ib_create_ah_from_wc - Creates an address handle associated with the ··· 2784 2784 * @ah_attr: The new address vector attributes to associate with the 2785 2785 * address handle. 2786 2786 */ 2787 - int ib_modify_ah(struct ib_ah *ah, struct ib_ah_attr *ah_attr); 2787 + int ib_modify_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr); 2788 2788 2789 2789 /** 2790 2790 * ib_query_ah - Queries the address vector associated with an address ··· 2793 2793 * @ah_attr: The address vector attributes associated with the address 2794 2794 * handle. 2795 2795 */ 2796 - int ib_query_ah(struct ib_ah *ah, struct ib_ah_attr *ah_attr); 2796 + int ib_query_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr); 2797 2797 2798 2798 /** 2799 2799 * ib_destroy_ah - Destroys an address handle. ··· 3464 3464 void ib_drain_qp(struct ib_qp *qp); 3465 3465 3466 3466 int ib_resolve_eth_dmac(struct ib_device *device, 3467 - struct ib_ah_attr *ah_attr); 3467 + struct rdma_ah_attr *ah_attr); 3468 3468 #endif /* IB_VERBS_H */
+1 -1
include/rdma/rdma_cm.h
··· 106 106 struct rdma_ud_param { 107 107 const void *private_data; 108 108 u8 private_data_len; 109 - struct ib_ah_attr ah_attr; 109 + struct rdma_ah_attr ah_attr; 110 110 u32 qp_num; 111 111 u32 qkey; 112 112 };
+4 -4
include/rdma/rdma_vt.h
··· 170 170 /* Address handle */ 171 171 struct rvt_ah { 172 172 struct ib_ah ibah; 173 - struct ib_ah_attr attr; 173 + struct rdma_ah_attr attr; 174 174 atomic_t refcount; 175 175 u8 vl; 176 176 u8 log_pmtu; ··· 311 311 unsigned (*free_all_qps)(struct rvt_dev_info *rdi); 312 312 313 313 /* Driver specific AH validation */ 314 - int (*check_ah)(struct ib_device *, struct ib_ah_attr *); 314 + int (*check_ah)(struct ib_device *, struct rdma_ah_attr *); 315 315 316 316 /* Inform the driver a new AH has been created */ 317 - void (*notify_new_ah)(struct ib_device *, struct ib_ah_attr *, 317 + void (*notify_new_ah)(struct ib_device *, struct rdma_ah_attr *, 318 318 struct rvt_ah *); 319 319 320 320 /* Let the driver pick the next queue pair number*/ ··· 506 506 void rvt_dealloc_device(struct rvt_dev_info *rdi); 507 507 int rvt_register_device(struct rvt_dev_info *rvd); 508 508 void rvt_unregister_device(struct rvt_dev_info *rvd); 509 - int rvt_check_ah(struct ib_device *ibdev, struct ib_ah_attr *ah_attr); 509 + int rvt_check_ah(struct ib_device *ibdev, struct rdma_ah_attr *ah_attr); 510 510 int rvt_init_port(struct rvt_dev_info *rdi, struct rvt_ibport *port, 511 511 int port_index, u16 *pkey_table); 512 512 int rvt_fast_reg_mr(struct rvt_qp *qp, struct ib_mr *ibmr, u32 key,
+2 -2
include/rdma/rdmavt_qp.h
··· 269 269 struct ib_qp ibqp; 270 270 void *priv; /* Driver private data */ 271 271 /* read mostly fields above and below */ 272 - struct ib_ah_attr remote_ah_attr; 273 - struct ib_ah_attr alt_ah_attr; 272 + struct rdma_ah_attr remote_ah_attr; 273 + struct rdma_ah_attr alt_ah_attr; 274 274 struct rvt_qp __rcu *next; /* link list for QPN hash table */ 275 275 struct rvt_swqe *s_wq; /* send work queue */ 276 276 struct rvt_mmap_info *ip;