Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
* Question about IB_QP_CUR_STATE
@ 2020-07-08  9:41 liweihang
  2020-07-08 12:20 ` Leon Romanovsky
  2020-07-08 12:42 ` Gal Pressman
  0 siblings, 2 replies; 9+ messages in thread
From: liweihang @ 2020-07-08  9:41 UTC (permalink / raw)
  To: linux-rdma@vger.kernel.org; +Cc: Linuxarm

Hi all,

I'm a little confused about the role of IB_QP_CUR_STATE in the enumeration
ib_qp_attr_mask.

In manual page of ibv_modify_qp(), comments of cur_qp_state is "Assume this
is the current QP state". Why we need to get current qp state from users
instead of drivers?

For example, why the users are allowed to modify qp from RTR to RTS again
even if the qp's state in driver and hardware has already been RTS.

I would be appretiate it if someone can help with this.

Weihang

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-07-12 11:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-08  9:41 Question about IB_QP_CUR_STATE liweihang
2020-07-08 12:20 ` Leon Romanovsky
2020-07-08 12:42 ` Gal Pressman
2020-07-08 15:44   ` Leon Romanovsky
2020-07-09  6:13     ` Gal Pressman
2020-07-10 10:11       ` liweihang
2020-07-12 10:44       ` Leon Romanovsky
2020-07-12 10:53         ` Gal Pressman
2020-07-12 11:01           ` Leon Romanovsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox