OSDN Git Service

RDMA/mlx5: Rewrite MAD processing logic to be readable
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 29 Oct 2019 06:27:42 +0000 (08:27 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 6 Nov 2019 20:00:06 +0000 (16:00 -0400)
commitffa2fd1323e32093abc23e7d71ed92b85e566ffe
tree8fcebd202a29040746936a9655de49ea5fc9aa77
parent84b56d57cf3cc9640b69cbb3a5d023d010ccb62a
RDMA/mlx5: Rewrite MAD processing logic to be readable

Multiple "if"s and "||" make extension of process_mad() function
as a tedious task, rewrite that function to be more readable.

Link: https://lore.kernel.org/r/20191029062745.7932-14-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/mad.c