rdma: Add bind option
authorStephen Bates <sbates@raithlin.com>
Wed, 22 Nov 2017 18:24:56 +0000 (11:24 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 22 Nov 2017 18:24:56 +0000 (11:24 -0700)
commit2f28bb35f2b62ba865e083be63773295a10692ad
treed95fe39acbc717c06c365e42dd8615439f3e3cb0
parent40e5f1bf1aca5970528724873a4544c43712a75d
rdma: Add bind option

In certain configurations it can be useful to bind a rdma_cm to a
particular network interface. For example in multi-path or loopback.

Add a bindname option that the local rdma_cm will try and bind too.

The bind code is based off that used in rping [1].

[1] https://github.com/linux-rdma/rdma-core/blob/ \
    master/librdmacm/examples/rping.c

Signed-off-by: Stephen Bates <sbates@raithlin.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/rdma.c