OSDN Git Service

RDMA/bnxt_re: Drop L2 async events silently
authorDevesh Sharma <devesh.sharma@broadcom.com>
Mon, 8 Oct 2018 10:27:57 +0000 (03:27 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 16 Oct 2018 06:03:50 +0000 (00:03 -0600)
In some FW versions, RoCE driver also receives an async notification which
was directed to L2 driver.  RoCE driver does not handle this and print a
message to syslog.  Drop these notifications silently.

Signed-off-by: Devesh Sharma <devesh.sharma@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/bnxt_re/qplib_rcfw.c

index 5d1504e..a3d9447 100644 (file)
@@ -391,9 +391,10 @@ static void bnxt_qplib_service_creq(unsigned long data)
                                         "aeqe:%#x Not handled\n", type);
                        break;
                default:
-                       dev_warn(&rcfw->pdev->dev,
-                                "creqe with op_event = 0x%x not handled\n",
-                                type);
+                       if (type != ASYNC_EVENT_CMPL_TYPE_HWRM_ASYNC_EVENT)
+                               dev_warn(&rcfw->pdev->dev,
+                                        "creqe with event 0x%x not handled\n",
+                                        type);
                        break;
                }
                raw_cons++;