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

Configure Feed

Select the types of activity you want to include in your feed.

RDMA/mana_ib: Extend modify QP

Extend modify QP to support further attributes: local_ack_timeout, UD qkey,
rate_limit, qp_access_flags, flow_label, max_rd_atomic.

Signed-off-by: Shiraz Saleem <shirazsaleem@microsoft.com>
Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com>
Link: https://patch.msgid.link/1757923172-4475-1-git-send-email-kotaranov@linux.microsoft.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>

authored by

Shiraz Saleem and committed by
Leon Romanovsky
2bd7dd38 2bbe1255

+18 -2
+9 -2
drivers/infiniband/hw/mana/mana_ib.h
··· 412 412 u8 traffic_class; 413 413 u16 src_port; 414 414 u16 dest_port; 415 - u32 reserved; 415 + u32 flow_label; 416 416 }; 417 417 418 418 struct mana_rnic_set_qp_state_req { ··· 429 429 u32 retry_cnt; 430 430 u32 rnr_retry; 431 431 u32 min_rnr_timer; 432 - u32 reserved; 432 + u32 rate_limit; 433 433 struct mana_ib_ah_attr ah_attr; 434 + u64 reserved1; 435 + u32 qkey; 436 + u32 qp_access_flags; 437 + u8 local_ack_timeout; 438 + u8 max_rd_atomic; 439 + u16 reserved2; 440 + u32 reserved3; 434 441 }; /* HW Data */ 435 442 436 443 struct mana_rnic_set_qp_state_resp {
+9
drivers/infiniband/hw/mana/qp.c
··· 735 735 int err; 736 736 737 737 mana_gd_init_req_hdr(&req.hdr, MANA_IB_SET_QP_STATE, sizeof(req), sizeof(resp)); 738 + 739 + req.hdr.req.msg_version = GDMA_MESSAGE_V3; 738 740 req.hdr.dev_id = mdev->gdma_dev->dev_id; 739 741 req.adapter = mdev->adapter_handle; 740 742 req.qp_handle = qp->qp_handle; ··· 750 748 req.retry_cnt = attr->retry_cnt; 751 749 req.rnr_retry = attr->rnr_retry; 752 750 req.min_rnr_timer = attr->min_rnr_timer; 751 + req.rate_limit = attr->rate_limit; 752 + req.qkey = attr->qkey; 753 + req.local_ack_timeout = attr->timeout; 754 + req.qp_access_flags = attr->qp_access_flags; 755 + req.max_rd_atomic = attr->max_rd_atomic; 756 + 753 757 if (attr_mask & IB_QP_AV) { 754 758 ndev = mana_ib_get_netdev(&mdev->ib_dev, ibqp->port); 755 759 if (!ndev) { ··· 782 774 ibqp->qp_num, attr->dest_qp_num); 783 775 req.ah_attr.traffic_class = attr->ah_attr.grh.traffic_class >> 2; 784 776 req.ah_attr.hop_limit = attr->ah_attr.grh.hop_limit; 777 + req.ah_attr.flow_label = attr->ah_attr.grh.flow_label; 785 778 } 786 779 787 780 err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp);