]> 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)
commitaeccb80b8085a8f7070cfa0625f16a6ef126e317
treed40d23ff1d87ed05d817b24bf1cd251c8fe12db0
parent1b50d1ec80c491ab213b7554d3b2d9de79b1aeb3
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