linux-stable/drivers/infiniband
Jack Wang 93b1f29de7 RDMA/cma: resolve to first active ib port
When we try to resolve a dest addr, if we don't give src addr,
cma core will try to resolve to our source ib device automatically.
The current logic only checks if a given port has the same
subnet_prefix as our dest, which is not enough if we use default
well known subnet_prefix on our active port, as it will be the same
as the subnet_prefix on inactive ports and we might match against
an inactive port by accident.  To resolve this, we should also check
if port is active before we resolve it as a suitable src address for
a given dest.

Signed-off-by: Jack Wang <jinpu.wang@profitbricks.com>
Reviewed-by: Michael Wang <yun.wang@profitbricks.com>
Acked-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-01-12 23:00:04 -05:00
..
core RDMA/cma: resolve to first active ib port 2017-01-12 23:00:04 -05:00
hw RDMA/ocrdma: Replace BUG() with BUG_ON() 2017-01-12 12:21:52 -05:00
sw IB/rxe: Fix an skb leak 2017-01-10 16:52:47 -05:00
ulp IB/ipoib: Change list_del to list_del_init in the tx object 2017-01-12 14:01:06 -05:00
Kconfig IB: Add vmw_pvrdma driver 2016-12-14 14:55:10 -05:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00