diff options
author | Jack Wang <[email protected]> | 2017-01-02 13:20:44 +0100 |
---|---|---|
committer | Doug Ledford <[email protected]> | 2017-01-12 23:00:04 -0500 |
commit | 93b1f29de71f3bd3b88ec8a2c2874c3847cd38bc (patch) | |
tree | b121114f9a8ba1e4bff4ff42e5ba3990c83fd0a4 /tools/perf/util/trace-event-scripting.c | |
parent | 9e2c3f1c7f3edc6bdd83dab601418ac6c3b6df73 (diff) |
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 <[email protected]>
Reviewed-by: Michael Wang <[email protected]>
Acked-by: Sean Hefty <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions