]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/core: Avoid copying ifindex twice
authorParav Pandit <parav@mellanox.com>
Tue, 14 Nov 2017 12:52:11 +0000 (14:52 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 18 Dec 2017 22:37:10 +0000 (15:37 -0700)
commitb3d7376f367bd40a18ac786fa767097f5af8d5ea
treed40d23ff1d87ed05d817b24bf1cd251c8fe12db0
parent33d63afa09518e1e274e17ee6e73399c6272e8ee
RDMA/core: Avoid copying ifindex twice

rdma_copy_addr copies the ifndex to bound_dev_if.
Therefore avoid copying it again after rdma_copy_addr call is completed.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/addr.c