]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Support rate limit for packet pacing
authorBodong Wang <bodong@mellanox.com>
Thu, 1 Dec 2016 11:43:14 +0000 (13:43 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 13 Dec 2016 18:39:50 +0000 (13:39 -0500)
commit06dde21999fb3314620fcf4b88ec4363c420ba22
tree0578a99a085a57b799bd4797ad25eeef336f1f5b
parentc0a11f410cee6430a2e9124d5ae84aecf20e2b12
IB/core: Support rate limit for packet pacing

Add new member rate_limit to ib_qp_attr which holds the packet pacing rate
in kbps, 0 means unlimited.

IB_QP_RATE_LIMIT is added to ib_attr_mask and could be used by RAW
QPs when changing QP state from RTR to RTS, RTS to RTS.

Signed-off-by: Bodong Wang <bodong@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/verbs.c
include/rdma/ib_verbs.h