]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Make sure that PSN does not overflow
authorMajd Dibbiny <majd@mellanox.com>
Tue, 14 Nov 2017 12:51:56 +0000 (14:51 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 27 Dec 2017 22:40:35 +0000 (15:40 -0700)
commit4a7ffb9a7d4f2e976672384cadbe29f08fd43658
tree60eb18e715075ccba5abcf43eb849462930eb388
parente61680bccccad1083c424e7d429c4d5535850919
IB/core: Make sure that PSN does not overflow

The rq/sq->psn is 24 bits as defined in the IB spec, therefore we mask
out the 8 most significant bits to avoid overflow in modify_qp.

Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/verbs.c