]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx5: Refactor mlx5_post_send() to improve readability
authorMax Gurtovoy <maxg@mellanox.com>
Wed, 6 May 2020 06:55:12 +0000 (09:55 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 6 May 2020 20:42:45 +0000 (17:42 -0300)
commit2deb02790d892c5bb1ffc1b637f3ec5cad75d04b
treef7b71cbddb020b09f2790a38c794201c97555181
parentcffb62f8fe7b9ca0d82c8097eae1b86e520ef447
RDMA/mlx5: Refactor mlx5_post_send() to improve readability

Add small helpers in order to avoid code duplication and improve code
readability. Decrease the amount of code in the gigantic post_send
function and divide it to readable methods that will help in code
maintenance in the future.

Link: https://lore.kernel.org/r/20200506065513.4668-3-leon@kernel.org
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/qp.c