RDMA/core: Avoid redundant memcpy in rdma_addr_find_l2_eth_by_grh
authorParav Pandit <parav@mellanox.com>
Tue, 14 Nov 2017 12:52:08 +0000 (14:52 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 18 Dec 2017 22:37:09 +0000 (15:37 -0700)
commit86937fcd6ed28a2c253119998e0eebfb73dd289e
tree414004b90352e54e0ebd40762277463ffcf7ae1a
parent1c43d5d308f0858e763f46bc2bd01cd32b67c63e
RDMA/core: Avoid redundant memcpy in rdma_addr_find_l2_eth_by_grh

rdma_resolve_ip already copies 'addr' to its dev_addr argument.
Remove the duplicate memcpy and since it was the only user, remove the
'addr' member from resolve_cb_context.

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