OSDN Git Service

RDMA/core: Let protocol specific function typecast sockaddr structure
authorParav Pandit <parav@mellanox.com>
Wed, 5 Sep 2018 09:54:18 +0000 (12:54 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 12 Sep 2018 21:48:08 +0000 (15:48 -0600)
commit89c5691cdd95ab39f43bd102ec3f0ff39716ae85
tree1eef3d1054a8697ddc6bae7360906e229e9acf34
parentf89b7dfa33537bba9ee082a17a55242fc727e9f4
RDMA/core: Let protocol specific function typecast sockaddr structure

Current code typecasts destination address using extra variable but uses
source address as is.

Even though the compiler optimizes such code well, just let each protocol
specific function typecast for src and dest both and have symmetric code.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/addr.c