diff options
author | Ira Weiny <ira.weiny@intel.com> | 2019-03-19 14:11:45 -0700 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-03-27 15:52:00 -0300 |
commit | 821bf1de45a1a084e2e11b1a2308777434194bfe (patch) | |
tree | 77eae3cbe982c36b3175dabd3ef831e598942988 /drivers | |
parent | 4d60cad5db7fb450e64532afbbaba85af235fa5d (diff) |
IB/MAD: Add recv path trace point
Trace received MAD details.
Reviewed-by: "Ruhl, Michael J" <michael.j.ruhl@intel.com>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/core/mad.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/core/mad.c b/drivers/infiniband/core/mad.c index 2acb44bc5ade..7164db34bd4d 100644 --- a/drivers/infiniband/core/mad.c +++ b/drivers/infiniband/core/mad.c @@ -2305,6 +2305,9 @@ static void ib_mad_recv_done(struct ib_cq *cq, struct ib_wc *wc) if (!validate_mad((const struct ib_mad_hdr *)recv->mad, qp_info, opa)) goto out; + trace_ib_mad_recv_done_handler(qp_info, wc, + (struct ib_mad_hdr *)recv->mad); + mad_size = recv->mad_size; response = alloc_mad_private(mad_size, GFP_KERNEL); if (!response) |