]> git.openfabrics.org - ~ardavis/dapl.git/commitdiff
MCM MIX: When mmap req from MIC return with fail stat print WARN.
authorAmir Hanania <amir.hanania@intel.com>
Mon, 19 Sep 2016 23:42:39 +0000 (16:42 -0700)
committerArlin Davis <arlin.r.davis@intel.com>
Mon, 19 Sep 2016 23:42:39 +0000 (16:42 -0700)
When MIC mmap req response return with fail stat, print WARN as it only means that the host is not in polling mode and does not support send op via mmap.
Not an ERR.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
Signed-off-by: Amir Hanania <amir.hanania@intel.com>
dapl/openib_common/util.c
dapl/openib_mcm/mix.c

index b24b26b33bc72f955f2ed21714eac3928723188b..95c9a4e4fcd628d2ce67c7b81b2676117cb24157 100644 (file)
@@ -420,7 +420,7 @@ DAT_RETURN dapls_ib_query_hca(IN DAPL_HCA * hca_ptr,
                        if (tp->pr_attr.cap & DAT_MIX_MMAP_CAP) {
                                if (dapli_mix_mmap_alloc(tp)) {
                                        dapl_log(DAPL_DBG_TYPE_WARN,
-                                                "mmap ERR: run compat mode\n");
+                                                "mmap WARN: run compat mode\n");
                                }
                        }
                }
index e94629292536194b70a57d4cf46310f56bcba519..1463b05e91ae61e3cd56ea35d4ab0747e9726199 100644 (file)
@@ -172,9 +172,14 @@ int dapli_mix_mmap_alloc(ib_hca_transport_t *tp)
        }
 
        if (msg.addr == SCIF_REGISTER_FAILED || msg.hdr.op != MIX_MMAP_ALLOC ||
-               msg.hdr.flags != MIX_OP_RSP || msg.hdr.status != MIX_SUCCESS) {
-               dapl_log(1, " ERR: send op exg: op %s, flags 0x%x, stat 0x%x peer addr 0x%llx\n",
-                            mix_op_str(msg.hdr.op), msg.hdr.flags, msg.hdr.status, msg.addr);
+               msg.hdr.flags != MIX_OP_RSP) {
+               dapl_log(1, " ERR: send op exg: op %s, flags 0x%x, peer addr 0x%llx\n",
+                            mix_op_str(msg.hdr.op), msg.hdr.flags, msg.addr);
+               goto remote_err;
+       }
+
+       if (msg.hdr.status != MIX_SUCCESS) {
+               dapl_log(1, " Note: Host side disabled this mode\n");
                goto remote_err;
        }