mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Reviewed-by: Matan Barak <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
This commit is contained in:
parent
d949167d68
commit
528e5a1bd3
2 changed files with 4 additions and 0 deletions
|
|
@ -1102,6 +1102,7 @@ enum ib_qp_attr_mask {
|
|||
IB_QP_RESERVED2 = (1<<22),
|
||||
IB_QP_RESERVED3 = (1<<23),
|
||||
IB_QP_RESERVED4 = (1<<24),
|
||||
IB_QP_RATE_LIMIT = (1<<25),
|
||||
};
|
||||
|
||||
enum ib_qp_state {
|
||||
|
|
@ -1151,6 +1152,7 @@ struct ib_qp_attr {
|
|||
u8 rnr_retry;
|
||||
u8 alt_port_num;
|
||||
u8 alt_timeout;
|
||||
u32 rate_limit;
|
||||
};
|
||||
|
||||
enum ib_wr_opcode {
|
||||
|
|
|
|||
Loading…
Reference in a new issue